wok view mercurial/receipt @ rev 24121
updated xfig again (3.2.5b -> 3.2.8b)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Oct 05 17:05:03 2021 +0100 (2021-10-05) |
parents | 7ec4ec445340 |
children | 453c249b6219 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="5.3.1"
5 CATEGORY="development"
6 SHORT_DESC="Revision tools system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.mercurial-scm.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}release/$TARBALL"
14 PROVIDE="hg"
15 DEPENDS="libssl patch python"
16 BUILD_DEPENDS="openssl-dev patch python-dev"
17 SUGGESTED="cacerts"
19 CONFIG_FILES="/etc/mercurial/hgweb.config"
21 HOST_ARCH="i486 arm"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # Cross compilation hack to avoid using compiler which build python
27 # itself.
28 case "$ARCH" in
29 arm*)
30 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
31 ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \
32 /usr/bin/i486-slitaz-linux-gcc ;;
33 esac &&
35 python setup.py install \
36 --root="$DESTDIR" \
37 --optimize=1 &&
38 mkdir -p $DESTDIR/usr/share/examples/mercurial &&
39 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial &&
41 case "$ARCH" in
42 arm*)
43 rm /usr/bin/i486-slitaz-linux-gcc &&
44 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
45 esac
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share/examples/mercurial
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/lib $fs/usr
56 # Examples
57 cp -a $stuff/hgwebdir.cgi \
58 $fs/usr/share/examples/mercurial
59 cp -a $stuff/lighttpd-hg-vhost.conf \
60 $fs/usr/share/examples/mercurial
62 # Configuration file for hgweb
63 mkdir -p $fs/etc/mercurial
64 cp -a $stuff/hgweb.config $fs/etc/mercurial
66 chown -R root.root $fs
67 }