0
0
Fork 0
haikuports/dev-cpp/hugen/hugen-1.recipe

52 lines
1.4 KiB
Bash
Raw Permalink Normal View History

2016-02-17 19:26:37 +00:00
SUMMARY="Code generator for Haiku"
2014-01-01 21:19:08 +00:00
DESCRIPTION="
Hugen is a simply python script for generating code for Haiku \
applications. It is based on templates. You can define your own \
one and quick generate some files with adequate names and content \
instead creating it manually. Templates for class and simple \
2016-02-26 15:33:51 +00:00
application with Makefile and Jamfile are provided by default."
2014-01-01 17:48:29 +00:00
HOMEPAGE="https://github.com/aldeck/hugen"
COPYRIGHT="2009 Alexandre Deckner"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/aldeck/hugen/archive/a5e42390e6d4435d9d81fe3670670e18a52dee9c.tar.gz"
CHECKSUM_SHA256="d462579c612e03c42997e225635a8d8fa05a45669d58c0d6d789463a38abc173"
SOURCE_DIR="hugen-a5e42390e6d4435d9d81fe3670670e18a52dee9c"
ARCHITECTURES="?all x86_gcc2"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
2014-01-01 17:48:29 +00:00
PROVIDES="
hugen$secondaryArchSuffix = $portVersion
cmd:hugen$secondaryArchSuffix = $portVersion
"
REQUIRES="
cmd:python$secondaryArchSuffix
"
2014-01-01 17:48:29 +00:00
BUILD_REQUIRES="
cmd:python
2014-01-01 17:48:29 +00:00
"
BUILD_PREREQUIRES="
cmd:python
2014-01-01 17:48:29 +00:00
"
BUILD()
{
# simply do nothing
echo
}
INSTALL()
{
2014-12-09 23:59:38 +00:00
mkdir -p $binDir
python=$portPackageLinksDir/cmd~python/bin/python
2014-12-09 23:15:16 +00:00
version=$($python --version 2>&1 | sed 's/Python //' | head -c3)
2014-12-09 23:19:48 +00:00
installLocation=$prefix/lib/python$version/vendor-packages
mkdir -p $installLocation/hugen_app
cp -R hugen.py configs/ templates/ $installLocation/hugen_app
2014-12-09 23:52:28 +00:00
echo python $installLocation/hugen_app/hugen.py > $binDir/hugen
2014-12-09 23:54:57 +00:00
chmod +x $binDir/hugen
2014-01-01 17:48:29 +00:00
}