59 lines
1.1 KiB
Bash
59 lines
1.1 KiB
Bash
SUMMARY="Free, distributed source control management tool"
|
|
DESCRIPTION="Mercurial (hg) is a free, distributed source control management \
|
|
tool."
|
|
HOMEPAGE="http://mercurial.selenic.com/"
|
|
COPYRIGHT="2005-2012 Matt Mackall et al."
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="5"
|
|
SOURCE_URI="http://mercurial.selenic.com/release/mercurial-2.2.2.tar.gz"
|
|
CHECKSUM_SHA256="3489110ec11fefbd2cbdefb8d715d0a869cef3dd729aaf4d5141108f8be1600a"
|
|
PATCHES="mercurial-2.2.2.patch"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
mercurial = $portVersion compat >= 2
|
|
cmd:hg = $portVersion compat >= 2
|
|
"
|
|
REQUIRES="
|
|
haiku_devel
|
|
cmd:python
|
|
cmd:nano
|
|
lib:libintl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:python
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc
|
|
cmd:gettext
|
|
cmd:ld
|
|
cmd:libtoolize
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
$portPackageLinksDir/cmd~python/bin/python setup.py build --force
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
$portPackageLinksDir/cmd~python/bin/python setup.py install \
|
|
--prefix="$prefix" \
|
|
--install-headers="$includedir" \
|
|
--force
|
|
}
|
|
|
|
shopt -s extglob
|
|
TEST()
|
|
{
|
|
cd tests
|
|
sed -i 's,/usr/bin/env,/bin/env,' !(blacklists|bundles|gpg|svn)
|
|
python run-tests.py
|
|
}
|