wok-6.x view mercurial/receipt @ rev 23992

linld: skip xmm_alloc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 12 10:41:29 2020 +0000 (2020-12-12)
parents d04587ff8cb7
children 670e65815150
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"
18 CONFIG_FILES="/etc/mercurial/hgweb.config"
20 HOST_ARCH="i486 arm"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Cross compilation hack to avoid using compiler which build python
26 # itself.
27 case "$ARCH" in
28 arm*)
29 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
30 ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \
31 /usr/bin/i486-slitaz-linux-gcc ;;
32 esac &&
34 python setup.py install \
35 --root="$DESTDIR" \
36 --optimize=1 &&
37 mkdir -p $DESTDIR/usr/share/examples/mercurial &&
38 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial &&
40 case "$ARCH" in
41 arm*)
42 rm /usr/bin/i486-slitaz-linux-gcc &&
43 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
44 esac
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/examples/mercurial
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib $fs/usr
55 # Examples
56 cp -a $stuff/hgwebdir.cgi \
57 $fs/usr/share/examples/mercurial
58 cp -a $stuff/lighttpd-hg-vhost.conf \
59 $fs/usr/share/examples/mercurial
61 # Configuration file for hgweb
62 mkdir -p $fs/etc/mercurial
63 cp -a $stuff/hgweb.config $fs/etc/mercurial
65 chown -R root.root $fs
66 }