wok-next view mercurial/receipt @ rev 21044

Change tags a bit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 24 12:56:54 2018 +0200 (2018-11-24)
parents f48456621a9d
children
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.mercurial-scm.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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-dev 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 }