mercurial: explicit dependency on cmd:python2.

otherwise HaikuPorter resolves the "< 3" with specific version requirement "== 2.7.12".
This commit is contained in:
Jerome Duval
2017-04-09 11:07:10 +02:00
parent 58a10a894d
commit 39530d71d9

View File

@@ -4,7 +4,7 @@ tool."
HOMEPAGE="http://mercurial.selenic.com/" HOMEPAGE="http://mercurial.selenic.com/"
COPYRIGHT="2005-2014 Matt Mackall et al." COPYRIGHT="2005-2014 Matt Mackall et al."
LICENSE="GNU GPL v2" LICENSE="GNU GPL v2"
REVISION="2" REVISION="3"
SOURCE_URI="http://mercurial.selenic.com/release/mercurial-$portVersion.tar.gz" SOURCE_URI="http://mercurial.selenic.com/release/mercurial-$portVersion.tar.gz"
CHECKSUM_SHA256="26418276fbc36850782f1f4feb30da4a83800b48493082985c4d3ac29ad0ca0f" CHECKSUM_SHA256="26418276fbc36850782f1f4feb30da4a83800b48493082985c4d3ac29ad0ca0f"
PATCHES="mercurial-3.2.1.patch" PATCHES="mercurial-3.2.1.patch"
@@ -16,16 +16,18 @@ PROVIDES="
cmd:hg = $portVersion compat >= 3 cmd:hg = $portVersion compat >= 3
" "
REQUIRES=" REQUIRES="
haiku
haiku_devel haiku_devel
cmd:python < 3 cmd:python2
cmd:nano cmd:nano
lib:libpython2.7
" "
BUILD_REQUIRES=" BUILD_REQUIRES="
haiku_devel haiku_devel
" "
BUILD_PREREQUIRES=" BUILD_PREREQUIRES="
cmd:python < 3 cmd:python2
cmd:gcc cmd:gcc
cmd:gettext cmd:gettext
cmd:ld cmd:ld
@@ -35,12 +37,12 @@ BUILD_PREREQUIRES="
BUILD() BUILD()
{ {
$portPackageLinksDir/cmd~python/bin/python setup.py build --force $portPackageLinksDir/cmd~python2/bin/python2 setup.py build --force
} }
INSTALL() INSTALL()
{ {
$portPackageLinksDir/cmd~python/bin/python setup.py install \ $portPackageLinksDir/cmd~python2/bin/python2 setup.py install \
--prefix="$prefix" \ --prefix="$prefix" \
--force --force
} }
@@ -48,5 +50,5 @@ INSTALL()
TEST() TEST()
{ {
cd tests cd tests
python run-tests.py python2 run-tests.py
} }