wok annotate mercurial/receipt @ rev 16328

mercurial: fix receipt (Thanks Alexandr) and ARM up slitaz-configs
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 10 19:44:57 2014 +0200 (2014-04-10)
parents e3c24dc3326c
children 87646c0eaba7
rev   line source
pankso@29 1 # SliTaz package receipt.
pankso@29 2
pankso@29 3 PACKAGE="mercurial"
devl547@16275 4 VERSION="2.9.2"
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@16313 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"
pankso@10472 17
pankso@29 18 # Rules to configure and make the package.
pankso@29 19 compile_rules()
pankso@29 20 {
pankso@16328 21 python setup.py install --root="$DESTDIR" --optimize=1
pankso@16328 22 mkdir -p $DESTDIR/usr/share/examples/mercurial
pankso@16328 23 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial
pankso@29 24 }
pankso@29 25
pankso@29 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@29 27 genpkg_rules()
pankso@29 28 {
pankso@29 29 mkdir -p $fs/usr/share/examples/mercurial
slaxemulator@12998 30 cp -a $install/usr/bin $fs/usr
slaxemulator@12998 31 cp -a $install/usr/lib $fs/usr
pankso@4464 32
pankso@29 33 # Examples
slaxemulator@9446 34 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
slaxemulator@9446 35 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
pankso@4464 36
pankso@29 37 # Config file for hgweb
pankso@29 38 mkdir -p $fs/etc/mercurial
slaxemulator@9446 39 cp -a $stuff/hgweb.config $fs/etc/mercurial
slaxemulator@7117 40
pankso@29 41 chown -R root.root $fs
pankso@29 42 }