wok-next view mercurial/receipt @ rev 20896

dialog: up (1.3-20180621); dropbear: up (2018.76); e2fsprogs: up (1.44.3); elfutils: up (0.173); eudev: up (3.2.5); expat: up (2.2.5); fontconfig: up (2.13.0); freetype: up (2.9.1).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jul 20 16:59:33 2018 +0300 (2018-07-20)
parents 0e7893ac206d
children f48456621a9d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mercurial"
4 VERSION="4.5"
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/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/mercurial.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://www.mercurial-scm.org/release/$TARBALL"
15 BUILD_DEPENDS="python-dev patch openssl-dev glib-dev gettext python-docutils"
17 compile_rules() {
18 make build &&
19 make doc &&
20 make PREFIX=/usr install-bin install-doc || return 1
22 install -dm0755 $install/etc/mercurial
23 cat > $install/etc/mercurial/hgrc <<EOF
24 [web]
25 cacerts = /etc/ssl/ca-bundle.crt
26 EOF
28 # Examples
29 install -Dm0755 $src/hgweb.cgi $install/usr/share/examples/mercurial/hgweb.cgi
30 install -Dm0755 $stuff/hgwebdir.cgi $install/usr/share/examples/mercurial/hgwebdir.cgi
31 install -Dm0644 $stuff/lighttpd-hg-vhost.conf $install/usr/share/examples/mercurial/lighttpd-hg-vhost.conf
33 # Config file for hgweb
34 install -Dm0644 $stuff/hgweb.config $install/etc/mercurial/hgweb.config
35 }
37 genpkg_rules() {
38 copy @std
39 DEPENDS="python patch openssl cacerts"
40 CONFIG_FILES="/etc/mercurial/hgweb.config"
41 PROVIDE="hg"
42 }