wok-6.x annotate mercurial/receipt @ rev 22508
updated astromenace (1.3.2 -> 1.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 01 15:09:58 2020 +0100 (2020-01-01) |
parents | 36f7c3d0cb91 |
children | 7ec4ec445340 |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="mercurial" |
Hans-G?nter@21431 | 4 VERSION="4.9.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" |
Hans-G?nter@21431 | 9 WEB_SITE="https://www.mercurial-scm.org/" |
Hans-G?nter@21431 | 10 |
pankso@29 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21431 | 12 WGET_URL="${WEB_SITE}release/$TARBALL" |
Hans-G?nter@21431 | 13 |
Hans-G?nter@21431 | 14 PROVIDE="hg" |
Hans-G?nter@21431 | 15 DEPENDS="libssl patch python" |
Hans-G?nter@21431 | 16 BUILD_DEPENDS="openssl-dev patch python-dev" |
pankso@5646 | 17 CONFIG_FILES="/etc/mercurial/hgweb.config" |
Hans-G?nter@21431 | 18 |
pankso@16492 | 19 HOST_ARCH="i486 arm" |
pankso@29 | 20 |
pankso@29 | 21 # Rules to configure and make the package. |
pankso@29 | 22 compile_rules() |
pankso@29 | 23 { |
Hans-G?nter@21431 | 24 # Cross compilation hack to avoid using compiler which build python |
pankso@16506 | 25 # itself. |
pankso@16491 | 26 case "$ARCH" in |
pankso@16491 | 27 arm*) |
pankso@16491 | 28 mv /usr/bin/i486-slitaz-linux-gcc /tmp && |
pankso@16575 | 29 ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \ |
pankso@16491 | 30 /usr/bin/i486-slitaz-linux-gcc ;; |
pankso@16491 | 31 esac && |
Hans-G?nter@21431 | 32 |
Hans-G?nter@21431 | 33 python setup.py install \ |
Hans-G?nter@21431 | 34 --root="$DESTDIR" \ |
Hans-G?nter@21431 | 35 --optimize=1 && |
pankso@16491 | 36 mkdir -p $DESTDIR/usr/share/examples/mercurial && |
pankso@16491 | 37 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial && |
Hans-G?nter@21431 | 38 |
pankso@16491 | 39 case "$ARCH" in |
pankso@16491 | 40 arm*) |
pankso@16491 | 41 rm /usr/bin/i486-slitaz-linux-gcc && |
pankso@16491 | 42 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; |
pankso@16491 | 43 esac |
pankso@29 | 44 } |
pankso@29 | 45 |
pankso@29 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 47 genpkg_rules() |
pankso@29 | 48 { |
pankso@29 | 49 mkdir -p $fs/usr/share/examples/mercurial |
Hans-G?nter@21431 | 50 |
slaxemulator@12998 | 51 cp -a $install/usr/bin $fs/usr |
slaxemulator@12998 | 52 cp -a $install/usr/lib $fs/usr |
pankso@4464 | 53 |
pankso@29 | 54 # Examples |
Hans-G?nter@21431 | 55 cp -a $stuff/hgwebdir.cgi \ |
Hans-G?nter@21431 | 56 $fs/usr/share/examples/mercurial |
Hans-G?nter@21431 | 57 cp -a $stuff/lighttpd-hg-vhost.conf \ |
Hans-G?nter@21431 | 58 $fs/usr/share/examples/mercurial |
pankso@4464 | 59 |
pankso@29 | 60 # Config file for hgweb |
pankso@29 | 61 mkdir -p $fs/etc/mercurial |
slaxemulator@9446 | 62 cp -a $stuff/hgweb.config $fs/etc/mercurial |
slaxemulator@7117 | 63 |
pankso@29 | 64 chown -R root.root $fs |
pankso@29 | 65 } |