wok-6.x annotate mercurial/receipt @ rev 24049
Up openvpn (2.5.2), openssh (8.6p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 10 20:32:02 2021 +0000 (2021-05-10) |
parents | 7ec4ec445340 |
children | 453c249b6219 |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="mercurial" |
Hans-G?nter@23173 | 4 VERSION="5.3.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" |
pascal@24004 | 17 SUGGESTED="cacerts" |
Hans-G?nter@23173 | 18 |
pankso@5646 | 19 CONFIG_FILES="/etc/mercurial/hgweb.config" |
Hans-G?nter@21431 | 20 |
pankso@16492 | 21 HOST_ARCH="i486 arm" |
pankso@29 | 22 |
pankso@29 | 23 # Rules to configure and make the package. |
pankso@29 | 24 compile_rules() |
pankso@29 | 25 { |
Hans-G?nter@21431 | 26 # Cross compilation hack to avoid using compiler which build python |
pankso@16506 | 27 # itself. |
pankso@16491 | 28 case "$ARCH" in |
pankso@16491 | 29 arm*) |
pankso@16491 | 30 mv /usr/bin/i486-slitaz-linux-gcc /tmp && |
pankso@16575 | 31 ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \ |
pankso@16491 | 32 /usr/bin/i486-slitaz-linux-gcc ;; |
pankso@16491 | 33 esac && |
Hans-G?nter@21431 | 34 |
Hans-G?nter@21431 | 35 python setup.py install \ |
Hans-G?nter@21431 | 36 --root="$DESTDIR" \ |
Hans-G?nter@21431 | 37 --optimize=1 && |
pankso@16491 | 38 mkdir -p $DESTDIR/usr/share/examples/mercurial && |
pankso@16491 | 39 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial && |
Hans-G?nter@21431 | 40 |
pankso@16491 | 41 case "$ARCH" in |
pankso@16491 | 42 arm*) |
pankso@16491 | 43 rm /usr/bin/i486-slitaz-linux-gcc && |
pankso@16491 | 44 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; |
pankso@16491 | 45 esac |
pankso@29 | 46 } |
pankso@29 | 47 |
pankso@29 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 49 genpkg_rules() |
pankso@29 | 50 { |
pankso@29 | 51 mkdir -p $fs/usr/share/examples/mercurial |
Hans-G?nter@21431 | 52 |
slaxemulator@12998 | 53 cp -a $install/usr/bin $fs/usr |
slaxemulator@12998 | 54 cp -a $install/usr/lib $fs/usr |
pankso@4464 | 55 |
pankso@29 | 56 # Examples |
Hans-G?nter@21431 | 57 cp -a $stuff/hgwebdir.cgi \ |
Hans-G?nter@21431 | 58 $fs/usr/share/examples/mercurial |
Hans-G?nter@21431 | 59 cp -a $stuff/lighttpd-hg-vhost.conf \ |
Hans-G?nter@21431 | 60 $fs/usr/share/examples/mercurial |
pankso@4464 | 61 |
Hans-G?nter@23173 | 62 # Configuration file for hgweb |
pankso@29 | 63 mkdir -p $fs/etc/mercurial |
slaxemulator@9446 | 64 cp -a $stuff/hgweb.config $fs/etc/mercurial |
slaxemulator@7117 | 65 |
pankso@29 | 66 chown -R root.root $fs |
pankso@29 | 67 } |