wok view mercurial/receipt @ rev 16313

ARM: add tslib
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 09 12:00:04 2014 +0200 (2014-04-09)
parents c0003b8e85c9
children 08a3c649e683
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 export PYTHONXCPREFIX=/cross/$ARCH/sysroot/usr
22 export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib"
23 export PYTHONPATH="/usr/lib/python2.7/site-packages"
24 make all CC=${HOST_SYSTEM}-gcc
25 #ARCH_ARGS=""
26 #python setup.py install ${ARCH_ARGS} --root="$DESTDIR" --optimize=1
27 #mkdir -p $DESTDIR/usr/share/examples/mercurial
28 #cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/examples/mercurial
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib $fs/usr
38 # Examples
39 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
40 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
42 # Config file for hgweb
43 mkdir -p $fs/etc/mercurial
44 cp -a $stuff/hgweb.config $fs/etc/mercurial
46 chown -R root.root $fs
47 }