wok annotate mercurial/receipt @ rev 23975

Up matio (1.5.18), mutt (1.14.7), nasm (2.15.05), net-snmp (5.9), nethack (3.6.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 28 17:24:13 2020 +0000 (2020-10-28)
parents d04587ff8cb7
children 670e65815150
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"
Hans-G?nter@23173 17
pankso@5646 18 CONFIG_FILES="/etc/mercurial/hgweb.config"
Hans-G?nter@21431 19
pankso@16492 20 HOST_ARCH="i486 arm"
pankso@29 21
pankso@29 22 # Rules to configure and make the package.
pankso@29 23 compile_rules()
pankso@29 24 {
Hans-G?nter@21431 25 # Cross compilation hack to avoid using compiler which build python
pankso@16506 26 # itself.
pankso@16491 27 case "$ARCH" in
pankso@16491 28 arm*)
pankso@16491 29 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
pankso@16575 30 ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \
pankso@16491 31 /usr/bin/i486-slitaz-linux-gcc ;;
pankso@16491 32 esac &&
Hans-G?nter@21431 33
Hans-G?nter@21431 34 python setup.py install \
Hans-G?nter@21431 35 --root="$DESTDIR" \
Hans-G?nter@21431 36 --optimize=1 &&
pankso@16491 37 mkdir -p $DESTDIR/usr/share/examples/mercurial &&
pankso@16491 38 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial &&
Hans-G?nter@21431 39
pankso@16491 40 case "$ARCH" in
pankso@16491 41 arm*)
pankso@16491 42 rm /usr/bin/i486-slitaz-linux-gcc &&
pankso@16491 43 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
pankso@16491 44 esac
pankso@29 45 }
pankso@29 46
pankso@29 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@29 48 genpkg_rules()
pankso@29 49 {
pankso@29 50 mkdir -p $fs/usr/share/examples/mercurial
Hans-G?nter@21431 51
slaxemulator@12998 52 cp -a $install/usr/bin $fs/usr
slaxemulator@12998 53 cp -a $install/usr/lib $fs/usr
pankso@4464 54
pankso@29 55 # Examples
Hans-G?nter@21431 56 cp -a $stuff/hgwebdir.cgi \
Hans-G?nter@21431 57 $fs/usr/share/examples/mercurial
Hans-G?nter@21431 58 cp -a $stuff/lighttpd-hg-vhost.conf \
Hans-G?nter@21431 59 $fs/usr/share/examples/mercurial
pankso@4464 60
Hans-G?nter@23173 61 # Configuration file for hgweb
pankso@29 62 mkdir -p $fs/etc/mercurial
slaxemulator@9446 63 cp -a $stuff/hgweb.config $fs/etc/mercurial
slaxemulator@7117 64
pankso@29 65 chown -R root.root $fs
pankso@29 66 }