haikuporter: Add haikuporter recipe.

* There is a workaround for python vendor-packages paths
  containing the version-revision.
* I actually think we don't want to depend on setuptools
  to minimize dependencies for something so core to our
  package building process.
* See https://github.com/haikuports/haikuports/issues/286
This commit is contained in:
Alexander von Gluck IV
2015-08-09 15:00:33 -05:00
parent 7683bcde43
commit f9b27f3b4b

View File

@@ -0,0 +1,50 @@
SUMMARY="Build packages for the Haiku operating system"
DESCRIPTION="
Haikuporter allows you to build ports (and native) applications for the Haiku \
operating system into installable packages.
"
HOMEPAGE="http://github.com/haikuports/haikuporter"
SOURCE_URI="http://github.com/haikuports/haikuporter/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="66b171b3078b03c8a89126f1de6e061f8fb5a96194e1f3ce8d755b6ee30510af"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="
2013-2015 Haiku, Inc.
"
ARCHITECTURES="any"
PROVIDES="
haikuporter = $portVersion
cmd:haikuporter = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
cmd:cp
"
GLOBAL_WRITABLE_FILES="
settings/haikuports.conf auto-merge
"
INSTALL()
{
# This is very manual, however was done due to
# https://github.com/haikuports/haikuports/issues/286
# TODO: Setuptools once #286 is investigated
mkdir -p $binDir
cp haikuporter $binDir/
mkdir -p $libDir/python2.7/vendor-packages/
cp -R HaikuPorter $libDir/python2.7/vendor-packages/
mkdir -p $settingsDir
cp haikuports-sample.conf $settingsDir/haikuports.conf
}