From f9b27f3b4b515d2447f7074c8fa3769ee75c8099 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 9 Aug 2015 15:00:33 -0500 Subject: [PATCH] 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 --- sys-apps/haikuporter/haikuporter-1.0.0.recipe | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 sys-apps/haikuporter/haikuporter-1.0.0.recipe diff --git a/sys-apps/haikuporter/haikuporter-1.0.0.recipe b/sys-apps/haikuporter/haikuporter-1.0.0.recipe new file mode 100644 index 000000000..1b89dc72f --- /dev/null +++ b/sys-apps/haikuporter/haikuporter-1.0.0.recipe @@ -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 +}