wok-4.x view mercurial/receipt @ rev 10816
apr: force apr to use /dev/*random
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Jun 06 01:57:27 2011 +0200 (2011-06-06) |
parents | 2f2ae382c2e0 |
children | 5235900045b7 |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://mercurial.selenic.com/"
10 WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL"
11 CONFIG_FILES="/etc/mercurial/hgweb.config"
13 DEPENDS="python patch libssl"
14 BUILD_DEPENDS="python-dev patch openssl-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 python setup.py install --root="$DESTDIR" --optimize=1
21 mkdir -p $DESTDIR/usr/share/examples/mercurial
22 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/examples/mercurial
29 cp -a $_pkg/usr/bin $fs/usr
30 cp -a $_pkg/usr/lib $fs/usr
32 # Examples
33 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
34 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
36 # Config file for hgweb
37 mkdir -p $fs/etc/mercurial
38 cp -a $stuff/hgweb.config $fs/etc/mercurial
40 chown -R root.root $fs
41 }