wok view mercurial/receipt @ rev 10362
talloc: make it build (bug in CROSS)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 23 01:44:08 2011 +0200 (2011-05-23) |
parents | 46940aa15a05 |
children | 49fd188e08d1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="1.8.3"
5 CATEGORY="development"
6 SHORT_DESC="Revision tools system."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="python patch libssl"
9 BUILD_DEPENDS="python python-dev patch openssl-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://mercurial.selenic.com/"
12 WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL"
13 CONFIG_FILES="/etc/mercurial/hgweb.config"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 python setup.py install --root="$DESTDIR" --optimize=1
20 mkdir -p $DESTDIR/usr/share/examples/mercurial
21 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/examples/mercurial
28 cp -a $_pkg/usr/bin $fs/usr
29 cp -a $_pkg/usr/lib $fs/usr
31 # Examples
32 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
33 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
35 # Config file for hgweb
36 mkdir -p $fs/etc/mercurial
37 cp -a $stuff/hgweb.config $fs/etc/mercurial
39 chown -R root.root $fs
40 }