wok view mercurial/receipt @ rev 19418
cdrkit: add efi boot support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 29 13:47:18 2016 +0200 (2016-09-29) |
parents | 327440b6512b |
children | d04587ff8cb7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="3.5.1"
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"
17 PROVIDE="hg"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Cross compilation hack to avoid using compiler wich build python
23 # itself.
24 case "$ARCH" in
25 arm*)
26 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
27 ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \
28 /usr/bin/i486-slitaz-linux-gcc ;;
29 esac &&
30 python setup.py install --root="$DESTDIR" --optimize=1 &&
31 mkdir -p $DESTDIR/usr/share/examples/mercurial &&
32 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial &&
33 case "$ARCH" in
34 arm*)
35 rm /usr/bin/i486-slitaz-linux-gcc &&
36 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
37 esac
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/examples/mercurial
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib $fs/usr
47 # Examples
48 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
49 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
51 # Config file for hgweb
52 mkdir -p $fs/etc/mercurial
53 cp -a $stuff/hgweb.config $fs/etc/mercurial
55 chown -R root.root $fs
56 }