wok annotate mercurial/receipt @ rev 18978
Up tazlito(418)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Mar 14 14:14:36 2016 +0200 (2016-03-14) |
parents | 327440b6512b |
children | d04587ff8cb7 |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="mercurial" |
devl547@18341 | 4 VERSION="3.5.1" |
pankso@204 | 5 CATEGORY="development" |
pankso@29 | 6 SHORT_DESC="Revision tools system." |
pankso@29 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pankso@29 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@4464 | 10 WEB_SITE="http://mercurial.selenic.com/" |
pankso@29 | 11 WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL" |
pankso@5646 | 12 CONFIG_FILES="/etc/mercurial/hgweb.config" |
pankso@16492 | 13 HOST_ARCH="i486 arm" |
pankso@29 | 14 |
pankso@10472 | 15 DEPENDS="python patch libssl" |
pankso@10472 | 16 BUILD_DEPENDS="python-dev patch openssl-dev" |
psychomaniak@18060 | 17 PROVIDE="hg" |
pankso@10472 | 18 |
pankso@29 | 19 # Rules to configure and make the package. |
pankso@29 | 20 compile_rules() |
pankso@29 | 21 { |
pankso@16506 | 22 # Cross compilation hack to avoid using compiler wich build python |
pankso@16506 | 23 # itself. |
pankso@16491 | 24 case "$ARCH" in |
pankso@16491 | 25 arm*) |
pankso@16491 | 26 mv /usr/bin/i486-slitaz-linux-gcc /tmp && |
pankso@16575 | 27 ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \ |
pankso@16491 | 28 /usr/bin/i486-slitaz-linux-gcc ;; |
pankso@16491 | 29 esac && |
pankso@16491 | 30 python setup.py install --root="$DESTDIR" --optimize=1 && |
pankso@16491 | 31 mkdir -p $DESTDIR/usr/share/examples/mercurial && |
pankso@16491 | 32 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial && |
pankso@16491 | 33 case "$ARCH" in |
pankso@16491 | 34 arm*) |
pankso@16491 | 35 rm /usr/bin/i486-slitaz-linux-gcc && |
pankso@16491 | 36 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; |
pankso@16491 | 37 esac |
pankso@29 | 38 } |
pankso@29 | 39 |
pankso@29 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 41 genpkg_rules() |
pankso@29 | 42 { |
pankso@29 | 43 mkdir -p $fs/usr/share/examples/mercurial |
slaxemulator@12998 | 44 cp -a $install/usr/bin $fs/usr |
slaxemulator@12998 | 45 cp -a $install/usr/lib $fs/usr |
pankso@4464 | 46 |
pankso@29 | 47 # Examples |
slaxemulator@9446 | 48 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial |
slaxemulator@9446 | 49 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial |
pankso@4464 | 50 |
pankso@29 | 51 # Config file for hgweb |
pankso@29 | 52 mkdir -p $fs/etc/mercurial |
slaxemulator@9446 | 53 cp -a $stuff/hgweb.config $fs/etc/mercurial |
slaxemulator@7117 | 54 |
pankso@29 | 55 chown -R root.root $fs |
pankso@29 | 56 } |