wok-next annotate mercurial/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents b1a1deb20f42
children d5aab818505e
rev   line source
al@20443 1 # SliTaz package receipt v2.
pankso@29 2
pankso@29 3 PACKAGE="mercurial"
al@20659 4 VERSION="4.5"
pankso@204 5 CATEGORY="development"
al@20443 6 SHORT_DESC="Revision tools system"
pankso@29 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20443 9 WEB_SITE="https://www.mercurial-scm.org/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/mercurial.html"
al@20443 11
pankso@29 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20443 13 WGET_URL="https://www.mercurial-scm.org/release/$TARBALL"
pankso@29 14
al@20443 15 BUILD_DEPENDS="python-dev patch openssl-dev glib-dev gettext python-docutils"
pankso@10472 16
al@20443 17 compile_rules() {
al@20443 18 make build &&
al@20443 19 make doc &&
al@20443 20 make PREFIX=/usr install-bin install-doc || return 1
al@20443 21
al@20443 22 install -dm0755 $install/etc/mercurial
al@20443 23 cat > $install/etc/mercurial/hgrc <<EOF
al@20443 24 [web]
al@20443 25 cacerts = /etc/ssl/ca-bundle.crt
al@20443 26 EOF
al@20443 27
al@20443 28 # Examples
al@20443 29 install -Dm0755 $src/hgweb.cgi $install/usr/share/examples/mercurial/hgweb.cgi
al@20443 30 install -Dm0755 $stuff/hgwebdir.cgi $install/usr/share/examples/mercurial/hgwebdir.cgi
al@20443 31 install -Dm0644 $stuff/lighttpd-hg-vhost.conf $install/usr/share/examples/mercurial/lighttpd-hg-vhost.conf
al@20443 32
al@20443 33 # Config file for hgweb
al@20443 34 install -Dm0644 $stuff/hgweb.config $install/etc/mercurial/hgweb.config
pankso@29 35 }
pankso@29 36
al@20443 37 genpkg_rules() {
al@20443 38 copy @std
al@20659 39 DEPENDS="python patch openssl cacerts"
al@20443 40 CONFIG_FILES="/etc/mercurial/hgweb.config"
al@20443 41 PROVIDE="hg"
pankso@29 42 }