wok-stable view mercurial/receipt @ rev 8728
Fixed linux not to put a tmp folder in WOK. Instead its WOK/PACKAGE/tmp now. This fixes a problem with update-repository dying out cause of WOK/tmp folder.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 19 01:35:37 2011 +0000 (2011-02-19) |
parents | d512f9912ab7 |
children | da11c5611f49 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="1.7.5"
5 CATEGORY="development"
6 SHORT_DESC="Revision tools system."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="python patch openssl"
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 #make install PREFIX=$PWD/_pkg/usr
20 python setup.py install --root="$PWD/_pkg/" --optimize=1
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/examples/mercurial
27 cp -a $_pkg/usr/bin $fs/usr
28 cp -a $_pkg/usr/lib $fs/usr
30 # Examples
31 cp -a $src/hgweb.cgi $fs/usr/share/examples/mercurial
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 find $fs -name "*.pyc" -delete
40 find $fs -name "*.pyo" -delete
41 chown -R root.root $fs
42 }