diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2009-11-19 13:57:57 +0000 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2009-11-19 13:57:57 +0000 |
commit | 5fca80982a4fba9c5b45b80045db4bb49cd724eb (patch) | |
tree | 1ad49ab2691bb89e116f27927bd1aa1855789056 /pkgs/build-support/release | |
parent | d9aae7cb65850e477615e51bf156c2df8f29ce28 (diff) | |
download | nixlib-5fca80982a4fba9c5b45b80045db4bb49cd724eb.tar nixlib-5fca80982a4fba9c5b45b80045db4bb49cd724eb.tar.gz nixlib-5fca80982a4fba9c5b45b80045db4bb49cd724eb.tar.bz2 nixlib-5fca80982a4fba9c5b45b80045db4bb49cd724eb.tar.lz nixlib-5fca80982a4fba9c5b45b80045db4bb49cd724eb.tar.xz nixlib-5fca80982a4fba9c5b45b80045db4bb49cd724eb.tar.zst nixlib-5fca80982a4fba9c5b45b80045db4bb49cd724eb.zip |
move autoconfPhase so it can be overriden
svn path=/nixpkgs/trunk/; revision=18458
Diffstat (limited to 'pkgs/build-support/release')
-rw-r--r-- | pkgs/build-support/release/source-tarball.nix | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/pkgs/build-support/release/source-tarball.nix b/pkgs/build-support/release/source-tarball.nix index a3ddc62deeb0..7cd3208d105c 100644 --- a/pkgs/build-support/release/source-tarball.nix +++ b/pkgs/build-support/release/source-tarball.nix @@ -36,6 +36,32 @@ stdenv.mkDerivation ( preConfigurePhases = "autoconfPhase"; postPhases = "finalPhase"; + + # Autoconfiscate the sources. + autoconfPhase = '' + export VERSION=${version} + export VERSION_SUFFIX=${versionSuffix} + + # `svn-revision' is set for backwards compatibility with the old + # Nix buildfarm. (Stratego/XT's autoxt uses it. We should + # update it eventually.) + echo ${versionSuffix} | sed -e s/pre// > svn-revision + + eval "$preAutoconf" + + if test -x ./bootstrap; then ./bootstrap + elif test -x ./bootstrap.sh; then ./bootstrap.sh + elif test -x ./autogen.sh; then ./autogen.sh + elif test -x ./autogen ; then ./autogen + elif test -x ./reconf; then ./reconf + elif test -f ./configure.in || test -f ./configure.ac; then + autoreconf --install --force --verbose + else + echo "No bootstrap, bootstrap.sh, configure.in or configure.ac. Assuming this is not an GNU Autotools package." + fi + + eval "$postAutoconf" + ''; } # Then, the caller-supplied attributes. @@ -64,32 +90,6 @@ stdenv.mkDerivation ( nextPostUnpack = if args ? postUnpack then args.postUnpack else ""; - # Autoconfiscate the sources. - autoconfPhase = '' - export VERSION=${version} - export VERSION_SUFFIX=${versionSuffix} - - # `svn-revision' is set for backwards compatibility with the old - # Nix buildfarm. (Stratego/XT's autoxt uses it. We should - # update it eventually.) - echo ${versionSuffix} | sed -e s/pre// > svn-revision - - eval "$preAutoconf" - - if test -x ./bootstrap; then ./bootstrap - elif test -x ./bootstrap.sh; then ./bootstrap.sh - elif test -x ./autogen.sh; then ./autogen.sh - elif test -x ./autogen ; then ./autogen - elif test -x ./reconf; then ./reconf - elif test -f ./configure.in || test -f ./configure.ac; then - autoreconf --install --force --verbose - else - echo "No bootstrap, bootstrap.sh, configure.in or configure.ac. Assuming this is not an GNU Autotools package." - fi - - eval "$postAutoconf" - ''; - # Cause distPhase to copy tar.bz2 in addition to tar.gz. tarballs = "*.tar.gz *.tar.bz2 *.tar.xz"; |