wok-6.x view mercurial/receipt @ rev 16511
Improve pyglow support
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 24 20:43:02 2014 +0200 (2014-04-24) |
parents | abc3060c2af2 |
children | 00bcf95c294c |
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="i486 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 to avoid using compiler wich build python
22 # itself.
23 case "$ARCH" in
24 arm*)
25 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
27 /usr/bin/i486-slitaz-linux-gcc ;;
28 esac &&
29 python setup.py install --root="$DESTDIR" --optimize=1 &&
30 mkdir -p $DESTDIR/usr/share/examples/mercurial &&
31 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial &&
32 case "$ARCH" in
33 arm*)
34 rm /usr/bin/i486-slitaz-linux-gcc &&
35 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
36 esac
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/examples/mercurial
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib $fs/usr
46 # Examples
47 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
48 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
50 # Config file for hgweb
51 mkdir -p $fs/etc/mercurial
52 cp -a $stuff/hgweb.config $fs/etc/mercurial
54 chown -R root.root $fs
55 }