# HG changeset patch # User Hans-G?nter Theisgen # Date 1556357200 -3600 # Node ID d04587ff8cb767b5582f0a08bde84290bc433a42 # Parent b2c38c5ce89ff48605dc784a3f32477c4caf23e5 updated mercurial (3.5.1 -> 4.9.1) diff -r b2c38c5ce89f -r d04587ff8cb7 mercurial/receipt --- a/mercurial/receipt Sat Apr 27 09:47:46 2019 +0100 +++ b/mercurial/receipt Sat Apr 27 10:26:40 2019 +0100 @@ -1,25 +1,27 @@ # SliTaz package receipt. PACKAGE="mercurial" -VERSION="3.5.1" +VERSION="4.9.1" CATEGORY="development" SHORT_DESC="Revision tools system." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" +WEB_SITE="https://www.mercurial-scm.org/" + TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://mercurial.selenic.com/" -WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL" +WGET_URL="${WEB_SITE}release/$TARBALL" + +PROVIDE="hg" +DEPENDS="libssl patch python" +BUILD_DEPENDS="openssl-dev patch python-dev" CONFIG_FILES="/etc/mercurial/hgweb.config" + HOST_ARCH="i486 arm" -DEPENDS="python patch libssl" -BUILD_DEPENDS="python-dev patch openssl-dev" -PROVIDE="hg" - # Rules to configure and make the package. compile_rules() { - # Cross compilation hack to avoid using compiler wich build python + # Cross compilation hack to avoid using compiler which build python # itself. case "$ARCH" in arm*) @@ -27,9 +29,13 @@ ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \ /usr/bin/i486-slitaz-linux-gcc ;; esac && - python setup.py install --root="$DESTDIR" --optimize=1 && + + python setup.py install \ + --root="$DESTDIR" \ + --optimize=1 && mkdir -p $DESTDIR/usr/share/examples/mercurial && cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial && + case "$ARCH" in arm*) rm /usr/bin/i486-slitaz-linux-gcc && @@ -41,12 +47,15 @@ genpkg_rules() { mkdir -p $fs/usr/share/examples/mercurial + cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr # Examples - cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial - cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial + cp -a $stuff/hgwebdir.cgi \ + $fs/usr/share/examples/mercurial + cp -a $stuff/lighttpd-hg-vhost.conf \ + $fs/usr/share/examples/mercurial # Config file for hgweb mkdir -p $fs/etc/mercurial