wok-next view mercurial/receipt @ rev 15197
Add ncftp
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 04 09:30:00 2013 +0000 (2013-09-04) |
parents | a93f37871107 |
children | c0003b8e85c9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="2.4.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"
14 DEPENDS="python patch libssl"
15 BUILD_DEPENDS="python-dev patch openssl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
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 $install/usr/bin $fs/usr
30 cp -a $install/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 }