From 4657e6bcc8797d9d6187fe1eb478f7c7754a29c1 Mon Sep 17 00:00:00 2001 From: OscarL Date: Tue, 25 Apr 2023 07:43:57 -0300 Subject: [PATCH] hugen: retire recipe (Python 2.x only). (#8502) Last updated in 2012, not particular noteworthy, automatic convertion to Python3 didn't resulted in something functional (will need manual tweaking due to Python changes). "cookiecutter" and similar projects offer far better functionality and are properly maintained. --- dev-cpp/hugen/hugen-1.recipe | 51 ------------------------------------ 1 file changed, 51 deletions(-) delete mode 100644 dev-cpp/hugen/hugen-1.recipe diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe deleted file mode 100644 index 7fc90e708..000000000 --- a/dev-cpp/hugen/hugen-1.recipe +++ /dev/null @@ -1,51 +0,0 @@ -SUMMARY="Code generator for Haiku" -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 \ -application with Makefile and Jamfile are provided by default." -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" - -PROVIDES=" - hugen$secondaryArchSuffix = $portVersion - cmd:hugen$secondaryArchSuffix = $portVersion - " -REQUIRES=" - cmd:python$secondaryArchSuffix - " - -BUILD_REQUIRES=" - cmd:python - " -BUILD_PREREQUIRES=" - cmd:python - " - -BUILD() -{ - # simply do nothing - echo -} - -INSTALL() -{ - mkdir -p $binDir - python=$portPackageLinksDir/cmd~python/bin/python - version=$($python --version 2>&1 | sed 's/Python //' | head -c3) - - installLocation=$prefix/lib/python$version/vendor-packages - mkdir -p $installLocation/hugen_app - cp -R hugen.py configs/ templates/ $installLocation/hugen_app - echo python $installLocation/hugen_app/hugen.py > $binDir/hugen - chmod +x $binDir/hugen -}