wok view mercurial/receipt @ rev 22125

updated cmake (3.7.1 -> 3.15.5)
author Hans-G?nter Theisgen
date Mon Nov 04 09:25:11 2019 +0100 (2019-11-04)
parents 36f7c3d0cb91
children 7ec4ec445340
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="4.9.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 CONFIG_FILES="/etc/mercurial/hgweb.config"
19 HOST_ARCH="i486 arm"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 # Cross compilation hack to avoid using compiler which build python
25 # itself.
26 case "$ARCH" in
27 arm*)
28 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
29 ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \
30 /usr/bin/i486-slitaz-linux-gcc ;;
31 esac &&
33 python setup.py install \
34 --root="$DESTDIR" \
35 --optimize=1 &&
36 mkdir -p $DESTDIR/usr/share/examples/mercurial &&
37 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial &&
39 case "$ARCH" in
40 arm*)
41 rm /usr/bin/i486-slitaz-linux-gcc &&
42 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
43 esac
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/examples/mercurial
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib $fs/usr
54 # Examples
55 cp -a $stuff/hgwebdir.cgi \
56 $fs/usr/share/examples/mercurial
57 cp -a $stuff/lighttpd-hg-vhost.conf \
58 $fs/usr/share/examples/mercurial
60 # Config file for hgweb
61 mkdir -p $fs/etc/mercurial
62 cp -a $stuff/hgweb.config $fs/etc/mercurial
64 chown -R root.root $fs
65 }