diff --git a/haiku-apps/haikuporter/haikuporter-1.2.1.recipe b/haiku-apps/haikuporter/haikuporter-1.2.1.recipe new file mode 100644 index 000000000..52728a6c6 --- /dev/null +++ b/haiku-apps/haikuporter/haikuporter-1.2.1.recipe @@ -0,0 +1,57 @@ +SUMMARY="Build packages for the Haiku operating system" +DESCRIPTION="The HaikuPorter tool is provided to ease the fetching, patching \ +and building of source code. It can be compared to a slim version of Gentoo \ +Portage. Each port contains the Haiku-specific patches to the original source \ +code. It fetches the original source code, applies the Haiku-specific \ +patches, builds the software, and packages it according to so-called 'recipes'. + +See the wiki on the HaikuPorter website for more information on its usage \ +and details on how to create those recipes." +HOMEPAGE="http://github.com/haikuports/haikuporter" +COPYRIGHT="2013-2017 Haiku, Inc." +LICENSE="MIT" +REVISION="1" +SOURCE_URI="http://github.com/haikuports/haikuporter/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="e924e9eeea0b7628ccda22ded1ac512485d363b223045c71b36d763d2ce0e6c4" + +ARCHITECTURES="any" + +PROVIDES=" + haikuporter = $portVersion + cmd:haikuporter = $portVersion + " +REQUIRES=" + haiku + cmd:git + cmd:python2 + " + +BUILD_REQUIRES=" + " +BUILD_PREREQUIRES=" + cmd:cp + " + +GLOBAL_WRITABLE_FILES=" + settings/haikuports.conf auto-merge + " + +BUILD() +{ + true +} + +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 +}