wok view mercurial/receipt @ rev 16491

ARM: add mercurial with a fancy compile hack \o/
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 14:37:13 2014 +0200 (2014-04-23)
parents 87646c0eaba7
children abc3060c2af2
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="2.9.2"
5 CATEGORY="development"
6 SHORT_DESC="Revision tools system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://mercurial.selenic.com/"
11 WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL"
12 CONFIG_FILES="/etc/mercurial/hgweb.config"
13 HOST_ARCH="arm"
15 DEPENDS="python patch libssl"
16 BUILD_DEPENDS="python-dev patch openssl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Cross compilation hack
22 case "$ARCH" in
23 arm*)
24 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
25 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
26 /usr/bin/i486-slitaz-linux-gcc ;;
27 esac &&
28 python setup.py install --root="$DESTDIR" --optimize=1 &&
29 mkdir -p $DESTDIR/usr/share/examples/mercurial &&
30 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial &&
31 case "$ARCH" in
32 arm*)
33 rm /usr/bin/i486-slitaz-linux-gcc &&
34 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
35 esac
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share/examples/mercurial
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib $fs/usr
45 # Examples
46 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
47 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
49 # Config file for hgweb
50 mkdir -p $fs/etc/mercurial
51 cp -a $stuff/hgweb.config $fs/etc/mercurial
53 chown -R root.root $fs
54 }