diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-10-14 17:57:29 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-10-14 17:57:29 +0000 |
commit | 5f71011cb96066ece74c6138978d1aa0611544e9 (patch) | |
tree | c44fecbd77af45e12f1241c25d2b20d416286f0c | |
parent | 4f2fdb6b6d28f76c10f90dd991c9f8bba5ea3d14 (diff) | |
download | simplepkg-5f71011cb96066ece74c6138978d1aa0611544e9.tar.gz simplepkg-5f71011cb96066ece74c6138978d1aa0611544e9.tar.bz2 |
new mkbuild sections acting as hooks
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@824 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r-- | trunk/doc/CHANGELOG | 12 | ||||
-rw-r--r-- | trunk/mkbuild/generic.mkSlackBuild | 16 | ||||
-rw-r--r-- | trunk/mkbuild/kde4.mkSlackBuild | 24 | ||||
-rw-r--r-- | trunk/mkbuild/model.mkbuild | 4 | ||||
-rw-r--r-- | trunk/mkbuild/perl.mkSlackBuild | 16 | ||||
-rw-r--r-- | trunk/mkbuild/python.mkSlackBuild | 16 |
6 files changed, 84 insertions, 4 deletions
diff --git a/trunk/doc/CHANGELOG b/trunk/doc/CHANGELOG index f6d68e8..68cecf2 100644 --- a/trunk/doc/CHANGELOG +++ b/trunk/doc/CHANGELOG @@ -1,6 +1,18 @@ simplepkg changelog =================== +current +======= + + - new mkbuild sections acting as hooks: + - pre_configure + - configure + - pre_make_package + - make_package + - pre_install_package + - install_package + - post_install_package + 0.6 === diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild index 8d98026..985485a 100644 --- a/trunk/mkbuild/generic.mkSlackBuild +++ b/trunk/mkbuild/generic.mkSlackBuild @@ -357,6 +357,10 @@ find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 644 {} \; </files_permissions> +<pre_configure> off +# Placeholder for customization +</pre_configure> + <configure> off # Configure CFLAGS="$SLKCFLAGS" \ @@ -365,16 +369,28 @@ CFLAGS="$SLKCFLAGS" \ --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF </configure> +<pre_make_package> off +# Placeholder for customization +</pre_make_package> + <make_package> off # Compile make $NUMJOBS || exit $ERROR_MAKE </make_package> +<pre_install_package> off +# Placeholder for customization +</pre_install_package> + <install_package> off # Install make install DESTDIR="$PKG" || exit $ERROR_INSTALL </install_package> +<post_install_package> off +# Placeholder for customization +</post_install_package> + <strip_binaries> off # Strip binaries ( cd "$PKG" diff --git a/trunk/mkbuild/kde4.mkSlackBuild b/trunk/mkbuild/kde4.mkSlackBuild index 0052319..ac42474 100644 --- a/trunk/mkbuild/kde4.mkSlackBuild +++ b/trunk/mkbuild/kde4.mkSlackBuild @@ -344,6 +344,10 @@ find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 644 {} \; </files_permissions> +<pre_configure> off +# Placeholder for customization +</pre_configure> + <configure> off # Configure mkdir -p build @@ -359,17 +363,29 @@ cd build .. </configure> +<pre_make_package> off +# Placeholder for customization +</pre_make_package> + <make_package> off - # Compile - make $NUMJOBS || exit $ERROR_MAKE +# Compile +make $NUMJOBS || exit $ERROR_MAKE </make_package> +<pre_install_package> off +# Placeholder for customization +</pre_install_package> + <install_package> off - # Install - make install DESTDIR=$PKG || exit $ERROR_INSTALL +# Install +make install DESTDIR=$PKG || exit $ERROR_INSTALL cd - </install_package> +<post_install_package> off +# Placeholder for customization +</post_install_package> + <strip_binaries> off # Strip binaries ( cd "$PKG" diff --git a/trunk/mkbuild/model.mkbuild b/trunk/mkbuild/model.mkbuild index d5f05f0..cb3d980 100644 --- a/trunk/mkbuild/model.mkbuild +++ b/trunk/mkbuild/model.mkbuild @@ -150,9 +150,13 @@ off: gpg_signature_check on: manifest_check on: untar_source off: patch_source +off: pre_configure on: configure +off: pre_make_package on: make_package +off: pre_install_package on: install_package +off: post_install_package on: strip_binaries off: compress_manpages off: compress_info_files diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild index 9e07195..ea2451c 100644 --- a/trunk/mkbuild/perl.mkSlackBuild +++ b/trunk/mkbuild/perl.mkSlackBuild @@ -296,11 +296,19 @@ for patch in $patches; do done </patch_source> +<pre_configure> off +# Placeholder for customization +</pre_configure> + <configure> off # Configure perl Makefile.PL || exit $ERROR_CONF </configure> +<pre_make_package> off +# Placeholder for customization +</pre_make_package> + <make_package> off # Compile make $NUMJOBS || exit $ERROR_MAKE @@ -311,6 +319,10 @@ make $NUMJOBS || exit $ERROR_MAKE make test </test_package> +<pre_install_package> off +# Placeholder for customization +</pre_install_package> + <install_package> off # Install make install DESTDIR="$PKG" || exit $ERROR_INSTALL @@ -323,6 +335,10 @@ for file in `find $PKG -name .packlist`; do done </install_package> +<post_install_package> off +# Placeholder for customization +</post_install_package> + <strip_binaries> off # Strip binaries ( cd "$PKG" diff --git a/trunk/mkbuild/python.mkSlackBuild b/trunk/mkbuild/python.mkSlackBuild index 46fec30..9ca43a8 100644 --- a/trunk/mkbuild/python.mkSlackBuild +++ b/trunk/mkbuild/python.mkSlackBuild @@ -357,21 +357,37 @@ find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 644 {} \; </files_permissions> +<pre_configure> off +# Placeholder for customization +</pre_configure> + <configure> off # Configure #python setup.py </configure> +<pre_make_package> off +# Placeholder for customization +</pre_make_package> + <make_package> off # Compile python setup.py build || exit $ERROR_MAKE </make_package> +<pre_install_package> off +# Placeholder for customization +</pre_install_package> + <install_package> off # Install python setup.py install --root=$PKG || exit $ERROR_INSTALL </install_package> +<post_install_package> off +# Placeholder for customization +</post_install_package> + <strip_binaries> off # Strip binaries ( cd "$PKG" |