From 2b10a9677817377618e33d2b07ab7caefe316633 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 18 Aug 2014 17:05:22 +0000 Subject: Re-organise definitions with scripts/organise-morphologies.py --- strata/core/autoconf.morph | 5 +++++ strata/core/automake.morph | 8 ++++++++ strata/core/bash.morph | 8 ++++++++ strata/core/bison.morph | 9 +++++++++ strata/core/bzip2.morph | 10 ++++++++++ strata/core/cmake.morph | 8 ++++++++ strata/core/cpython.morph | 7 +++++++ strata/core/curl.morph | 9 +++++++++ strata/core/flex.morph | 12 ++++++++++++ strata/core/gdbm.morph | 8 ++++++++ strata/core/gettext.morph | 9 +++++++++ strata/core/git.morph | 6 ++++++ strata/core/gperf.morph | 3 +++ strata/core/libexpat.morph | 9 +++++++++ strata/core/libtool.morph | 6 ++++++ strata/core/m4.morph | 5 +++++ strata/core/mini-utils.morph | 6 ++++++ strata/core/ncurses.morph | 9 +++++++++ strata/core/openssl-new.morph | 15 +++++++++++++++ strata/core/perl.morph | 16 ++++++++++++++++ strata/core/pkg-config.morph | 5 +++++ strata/core/python-setuptools.morph | 6 ++++++ strata/core/pyyaml.morph | 6 ++++++ strata/core/shadow.morph | 5 +++++ strata/core/texinfo-tarball.morph | 9 +++++++++ strata/core/util-linux.morph | 6 ++++++ strata/core/xz.morph | 3 +++ 27 files changed, 208 insertions(+) create mode 100644 strata/core/autoconf.morph create mode 100644 strata/core/automake.morph create mode 100644 strata/core/bash.morph create mode 100644 strata/core/bison.morph create mode 100644 strata/core/bzip2.morph create mode 100644 strata/core/cmake.morph create mode 100644 strata/core/cpython.morph create mode 100644 strata/core/curl.morph create mode 100644 strata/core/flex.morph create mode 100644 strata/core/gdbm.morph create mode 100644 strata/core/gettext.morph create mode 100644 strata/core/git.morph create mode 100644 strata/core/gperf.morph create mode 100644 strata/core/libexpat.morph create mode 100644 strata/core/libtool.morph create mode 100644 strata/core/m4.morph create mode 100644 strata/core/mini-utils.morph create mode 100644 strata/core/ncurses.morph create mode 100644 strata/core/openssl-new.morph create mode 100644 strata/core/perl.morph create mode 100644 strata/core/pkg-config.morph create mode 100644 strata/core/python-setuptools.morph create mode 100644 strata/core/pyyaml.morph create mode 100644 strata/core/shadow.morph create mode 100644 strata/core/texinfo-tarball.morph create mode 100644 strata/core/util-linux.morph create mode 100644 strata/core/xz.morph (limited to 'strata/core') diff --git a/strata/core/autoconf.morph b/strata/core/autoconf.morph new file mode 100644 index 00000000..046bfc40 --- /dev/null +++ b/strata/core/autoconf.morph @@ -0,0 +1,5 @@ +name: autoconf +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" diff --git a/strata/core/automake.morph b/strata/core/automake.morph new file mode 100644 index 00000000..616eeddf --- /dev/null +++ b/strata/core/automake.morph @@ -0,0 +1,8 @@ +name: automake +kind: chunk +build-system: autotools +configure-commands: +- ./bootstrap +- ./configure --prefix="$PREFIX" +build-commands: +- unset DESTDIR; make diff --git a/strata/core/bash.morph b/strata/core/bash.morph new file mode 100644 index 00000000..9639593b --- /dev/null +++ b/strata/core/bash.morph @@ -0,0 +1,8 @@ +name: bash +kind: chunk +configure-commands: +- ./configure --prefix=/usr --bindir=/bin --without-bash-malloc --with-installed-readline +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/strata/core/bison.morph b/strata/core/bison.morph new file mode 100644 index 00000000..d6b3b148 --- /dev/null +++ b/strata/core/bison.morph @@ -0,0 +1,9 @@ +name: bison +kind: chunk +configure-commands: +- bash bootstrap --skip-po +- ./configure --prefix=/usr --disable-nls +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/strata/core/bzip2.morph b/strata/core/bzip2.morph new file mode 100644 index 00000000..f4bdb794 --- /dev/null +++ b/strata/core/bzip2.morph @@ -0,0 +1,10 @@ +name: bzip2 +kind: chunk +configure-commands: +- sed -i -rf bzip2.morph-makefix.sed Makefile +build-commands: +- make -f Makefile-libbz2_so +- make +install-commands: +- make DESTDIR="$DESTDIR" PREFIX="$PREFIX" install +- install libbz2.so* "$DESTDIR$PREFIX/lib" diff --git a/strata/core/cmake.morph b/strata/core/cmake.morph new file mode 100644 index 00000000..1d310ef4 --- /dev/null +++ b/strata/core/cmake.morph @@ -0,0 +1,8 @@ +name: cmake +kind: chunk +configure-commands: +- ./bootstrap --prefix="$PREFIX" --docdir=/share/doc/cmake --mandir=/share/man +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/strata/core/cpython.morph b/strata/core/cpython.morph new file mode 100644 index 00000000..551c4165 --- /dev/null +++ b/strata/core/cpython.morph @@ -0,0 +1,7 @@ +name: cpython +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --enable-shared +post-install-commands: +- ln -s python2.7 "$DESTDIR"/"$PREFIX"/bin/python2 diff --git a/strata/core/curl.morph b/strata/core/curl.morph new file mode 100644 index 00000000..e245688c --- /dev/null +++ b/strata/core/curl.morph @@ -0,0 +1,9 @@ +name: curl +kind: chunk +configure-commands: +- ./buildconf +- ./configure --disable-manual --prefix="$PREFIX" +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/strata/core/flex.morph b/strata/core/flex.morph new file mode 100644 index 00000000..7ca8f538 --- /dev/null +++ b/strata/core/flex.morph @@ -0,0 +1,12 @@ +name: flex +kind: chunk +configure-commands: +- ./configure --prefix="$PREFIX" +build-commands: +- make dist_doc_DATA= +install-commands: +- make dist_doc_DATA= DESTDIR="$DESTDIR" install +- ln -s libfl.a "$DESTDIR$PREFIX/lib/libl.a" +- echo "#!$PREFIX/bin/sh" >"$DESTDIR$PREFIX/bin/lex" +- echo 'exec '"$PREFIX"'/bin/flex -l "$@"' >>"$DESTDIR$PREFIX/bin/lex" +- chmod 755 "$DESTDIR$PREFIX/bin/lex" diff --git a/strata/core/gdbm.morph b/strata/core/gdbm.morph new file mode 100644 index 00000000..6bec33e0 --- /dev/null +++ b/strata/core/gdbm.morph @@ -0,0 +1,8 @@ +name: gdbm +kind: chunk +configure-commands: +- ./configure --prefix="$PREFIX" --enable-libgdbm-compat --disable-nls +build-commands: +- make MANS= INFO_DEPS= +install-commands: +- make MANS= INFO_DEPS= DESTDIR="$DESTDIR" install diff --git a/strata/core/gettext.morph b/strata/core/gettext.morph new file mode 100644 index 00000000..3e2c56b5 --- /dev/null +++ b/strata/core/gettext.morph @@ -0,0 +1,9 @@ +name: gettext +kind: chunk +max-jobs: 1 +configure-commands: +- ./configure --prefix=/usr +build-commands: +- make EXAMPLESPOFILES= +install-commands: +- make EXAMPLESPOFILES= DESTDIR="$DESTDIR" install diff --git a/strata/core/git.morph b/strata/core/git.morph new file mode 100644 index 00000000..62932b0d --- /dev/null +++ b/strata/core/git.morph @@ -0,0 +1,6 @@ +name: git +kind: chunk +build-commands: +- make prefix=${PREFIX-/usr} all PYTHON_PATH=${PREFIX-/usr}/bin/python NO_TCLTK=YesPlease +install-commands: +- make prefix=${PREFIX-/usr} install diff --git a/strata/core/gperf.morph b/strata/core/gperf.morph new file mode 100644 index 00000000..e4f598c5 --- /dev/null +++ b/strata/core/gperf.morph @@ -0,0 +1,3 @@ +name: gperf +kind: chunk +build-system: autotools diff --git a/strata/core/libexpat.morph b/strata/core/libexpat.morph new file mode 100644 index 00000000..1e0fe696 --- /dev/null +++ b/strata/core/libexpat.morph @@ -0,0 +1,9 @@ +name: libexpat +kind: chunk +configure-commands: +- autoreconf -i +- ./configure --prefix="${PREFIX-/usr}" +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/strata/core/libtool.morph b/strata/core/libtool.morph new file mode 100644 index 00000000..f311281d --- /dev/null +++ b/strata/core/libtool.morph @@ -0,0 +1,6 @@ +name: libtool +kind: chunk +max-jobs: 1 +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" diff --git a/strata/core/m4.morph b/strata/core/m4.morph new file mode 100644 index 00000000..b76afbe4 --- /dev/null +++ b/strata/core/m4.morph @@ -0,0 +1,5 @@ +name: m4 +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --disable-nls diff --git a/strata/core/mini-utils.morph b/strata/core/mini-utils.morph new file mode 100644 index 00000000..dc915b30 --- /dev/null +++ b/strata/core/mini-utils.morph @@ -0,0 +1,6 @@ +name: mini-utils +kind: chunk +build-system: autotools +configure-commands: [] +install-commands: +- make PREFIX="$PREFIX" DESTDIR="$DESTDIR" install diff --git a/strata/core/ncurses.morph b/strata/core/ncurses.morph new file mode 100644 index 00000000..c75495bc --- /dev/null +++ b/strata/core/ncurses.morph @@ -0,0 +1,9 @@ +name: ncurses +kind: chunk +configure-commands: +- LDCONFIG=true ./configure --with-shared --without-debug --enable-widec +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install +- sh ncurses-morph-postinstall.sh diff --git a/strata/core/openssl-new.morph b/strata/core/openssl-new.morph new file mode 100644 index 00000000..2ed14ff2 --- /dev/null +++ b/strata/core/openssl-new.morph @@ -0,0 +1,15 @@ +name: openssl-new +kind: chunk +max-jobs: 1 +configure-commands: +- sed -i -e 's,^LIBNAMES=\\(.*\\) padlock \\(.*\\),LIBNAMES=\\1 \\2,g' engines/Makefile +- | + if [ "$(uname -m)" = "ppc64" ]; then + sh ./Configure linux-ppc64 --openssldir=/etc/ssl --prefix="${PREFIX-/usr}" --libdir=lib shared + else + ./config --openssldir=/etc/ssl --prefix="${PREFIX-/usr}" --libdir=lib shared + fi +build-commands: +- make +install-commands: +- make INSTALL_PREFIX="$DESTDIR" install_sw diff --git a/strata/core/perl.morph b/strata/core/perl.morph new file mode 100644 index 00000000..ce086aa7 --- /dev/null +++ b/strata/core/perl.morph @@ -0,0 +1,16 @@ +name: perl +kind: chunk +max-jobs: 1 +configure-commands: +- sh Configure -des -Dprefix="$PREFIX" -Darchlib="$PREFIX/lib/perl" -Dprivlib="$PREFIX/share/perl" + -Dbin="$PREFIX/bin" -Dscriptdir="$PREFIX/bin" -Dman1dir="$PREFIX/share/man/man1" + -Dman3dir="$PREFIX/share/man/man3" -Dsiteprefix="$PREFIX" -Dsitearch="$PREFIX/lib/perl" + -Dsitelib="$PREFIX/share/perl" -Dsitebin="$PREFIX/bin" -Dsitescript="$PREFIX/bin" + -Dsiteman1dir="$PREFIX/share/man/man1" -Dsiteman3dir="$PREFIX/share/man/man3" -Dvendorprefix="$PREFIX" + -Dvendorarch="$PREFIX/lib/perl" -Dvendorlib="$PREFIX/share/perl" -Dvendorbin="$PREFIX/bin" + -Dvendorscript="$PREFIX/bin" -Dvendorman1dir="$PREFIX/share/man/man1" -Dvendorman3dir="$PREFIX/share/man/man3" + -Dpager="$PREFIX/bin/less -isR" -Duseshrplib +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/strata/core/pkg-config.morph b/strata/core/pkg-config.morph new file mode 100644 index 00000000..090a65e5 --- /dev/null +++ b/strata/core/pkg-config.morph @@ -0,0 +1,5 @@ +name: pkg-config +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --with-internal-glib diff --git a/strata/core/python-setuptools.morph b/strata/core/python-setuptools.morph new file mode 100644 index 00000000..fa436c60 --- /dev/null +++ b/strata/core/python-setuptools.morph @@ -0,0 +1,6 @@ +name: python-setuptools +kind: chunk +build-commands: +- python setup.py build +install-commands: +- python setup.py install --prefix=/usr --root "$DESTDIR" diff --git a/strata/core/pyyaml.morph b/strata/core/pyyaml.morph new file mode 100644 index 00000000..8ebd7b57 --- /dev/null +++ b/strata/core/pyyaml.morph @@ -0,0 +1,6 @@ +name: pyyaml +kind: chunk +build-commands: +- python setup.py --without-libyaml build +install-commands: +- python setup.py --without-libyaml install --prefix="$PREFIX" --root "$DESTDIR" diff --git a/strata/core/shadow.morph b/strata/core/shadow.morph new file mode 100644 index 00000000..6887a6b3 --- /dev/null +++ b/strata/core/shadow.morph @@ -0,0 +1,5 @@ +name: shadow +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --with-selinux=no --sysconfdir=/etc diff --git a/strata/core/texinfo-tarball.morph b/strata/core/texinfo-tarball.morph new file mode 100644 index 00000000..5f784ba2 --- /dev/null +++ b/strata/core/texinfo-tarball.morph @@ -0,0 +1,9 @@ +name: texinfo-tarball +kind: chunk +configure-commands: +- ./configure --prefix="$PREFIX" +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install +- make DESTDIR="$DESTDIR" TEXMF="$PREFIX/share/texmf" install-tex diff --git a/strata/core/util-linux.morph b/strata/core/util-linux.morph new file mode 100644 index 00000000..22f19529 --- /dev/null +++ b/strata/core/util-linux.morph @@ -0,0 +1,6 @@ +name: util-linux +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh +- ./configure --prefix="$PREFIX" --disable-use-tty-group diff --git a/strata/core/xz.morph b/strata/core/xz.morph new file mode 100644 index 00000000..8165abdc --- /dev/null +++ b/strata/core/xz.morph @@ -0,0 +1,3 @@ +name: xz +kind: chunk +build-system: autotools -- cgit v1.2.1