wok-next annotate mercurial/receipt @ rev 20634
oxine: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 27 12:51:30 2018 +0200 (2018-04-27) |
parents | 36f7c3d0cb91 |
children | b1a1deb20f42 |
rev | line source |
---|---|
al@20443 | 1 # SliTaz package receipt v2. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="mercurial" |
al@20443 | 4 VERSION="4.3.1" |
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@20443 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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@20443 | 39 DEPENDS="python patch openssl cacerts" |
al@20443 | 40 CONFIG_FILES="/etc/mercurial/hgweb.config" |
al@20443 | 41 PROVIDE="hg" |
pankso@29 | 42 } |