From e93a3bfd17605cc9cef246f20d8171b6d86b52ef Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 13:50:12 +0000 Subject: [PATCH 01/11] Added cmd:huge_app --- dev-cpp/hugen/hugen-1.recipe | 1 + 1 file changed, 1 insertion(+) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index ccbbc4733..4a6c4807b 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -17,6 +17,7 @@ SECONDARY_ARCHITECTURES="x86_gcc2 ?x86" PROVIDES=" hugen$secondaryArchSuffix = $portVersion cmd:hugen$secondaryArchSuffix = $portVersion + cmd:hugen_app = $portVersion " REQUIRES=" From 47b47edd0764b704380b7ad1231c886d63a9e309 Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 13:55:48 +0000 Subject: [PATCH 02/11] Removed cmd:hugen_app --- dev-cpp/hugen/hugen-1.recipe | 1 - 1 file changed, 1 deletion(-) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index 4a6c4807b..ccbbc4733 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -17,7 +17,6 @@ SECONDARY_ARCHITECTURES="x86_gcc2 ?x86" PROVIDES=" hugen$secondaryArchSuffix = $portVersion cmd:hugen$secondaryArchSuffix = $portVersion - cmd:hugen_app = $portVersion " REQUIRES=" From 6b67396578a7622a9bc0bd885d4720f1ff717712 Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 21:29:20 +0000 Subject: [PATCH 03/11] Switched install directory of python files to correct directory --- dev-cpp/hugen/hugen-1.recipe | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index ccbbc4733..887b33bb7 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -23,8 +23,10 @@ REQUIRES=" cmd:python$secondaryArchSuffix " BUILD_REQUIRES=" + cmd:python " BUILD_PREREQUIRES=" + cmd:python " BUILD() @@ -35,8 +37,9 @@ BUILD() INSTALL() { - mkdir -p $binDir/hugen_app - cp -R hugen.py configs/ templates/ $binDir/hugen_app - echo python $binDir/hugen_app/hugen.py > $binDir/hugen - chmod +x $binDir/hugen + installLocation=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 > $installLocation/hugen + chmod +x $installLocation/hugen } From 84db457c3ed058759d0e7250ffe69738f8b03052 Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 21:35:29 +0000 Subject: [PATCH 04/11] added cmd:hugen_app --- dev-cpp/hugen/hugen-1.recipe | 1 + 1 file changed, 1 insertion(+) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index 887b33bb7..910b4d99f 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -17,6 +17,7 @@ SECONDARY_ARCHITECTURES="x86_gcc2 ?x86" PROVIDES=" hugen$secondaryArchSuffix = $portVersion cmd:hugen$secondaryArchSuffix = $portVersion + cmd:hugen_app = $portVersion " REQUIRES=" From 90598cf0fe268796a2ba5a69d103d8d069de91db Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 22:42:21 +0000 Subject: [PATCH 05/11] hugen-1.recipe edited online with Bitbucket --- dev-cpp/hugen/hugen-1.recipe | 1 - 1 file changed, 1 deletion(-) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index 910b4d99f..887b33bb7 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -17,7 +17,6 @@ SECONDARY_ARCHITECTURES="x86_gcc2 ?x86" PROVIDES=" hugen$secondaryArchSuffix = $portVersion cmd:hugen$secondaryArchSuffix = $portVersion - cmd:hugen_app = $portVersion " REQUIRES=" From cf75188655c05eefeb461a3c5703e6ed411a3416 Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 23:01:08 +0000 Subject: [PATCH 06/11] Added needed Python commands in INSTALL() --- dev-cpp/hugen/hugen-1.recipe | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index 887b33bb7..5338b558c 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -37,6 +37,9 @@ BUILD() INSTALL() { + python=$portPackageLinksDir/cmd~python/bin/python + pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) + installLocation=lib/python$version/vendor-packages mkdir -p $installLocation/hugen_app cp -R hugen.py configs/ templates/ $installLocation/hugen_app From 9aceabe1e9ae82825616296b6f346d0ccaa005e8 Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 23:15:16 +0000 Subject: [PATCH 07/11] fixed variable declaration --- dev-cpp/hugen/hugen-1.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index 5338b558c..e2c6659f7 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -38,7 +38,7 @@ BUILD() INSTALL() { python=$portPackageLinksDir/cmd~python/bin/python - pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) + version=$($python --version 2>&1 | sed 's/Python //' | head -c3) installLocation=lib/python$version/vendor-packages mkdir -p $installLocation/hugen_app From b775b255674537aaa56f82610813fe3cd1609c3e Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 23:19:48 +0000 Subject: [PATCH 08/11] $prefix fix --- dev-cpp/hugen/hugen-1.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index e2c6659f7..d8dde97ab 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -40,7 +40,7 @@ INSTALL() python=$portPackageLinksDir/cmd~python/bin/python version=$($python --version 2>&1 | sed 's/Python //' | head -c3) - installLocation=lib/python$version/vendor-packages + 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 > $installLocation/hugen From 9031f177181e098138a1396bdd9dc270d20d0c9d Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 23:52:28 +0000 Subject: [PATCH 09/11] switched $installLocation with $binDir --- dev-cpp/hugen/hugen-1.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index d8dde97ab..958fc344a 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -43,6 +43,6 @@ INSTALL() 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 > $installLocation/hugen + echo python $installLocation/hugen_app/hugen.py > $binDir/hugen chmod +x $installLocation/hugen } From 938c3277c314d0668e0ec894e2241696d8580a56 Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 23:54:57 +0000 Subject: [PATCH 10/11] $installLocation to $binDir again --- dev-cpp/hugen/hugen-1.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index 958fc344a..ebd4f35ee 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -44,5 +44,5 @@ INSTALL() 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 $installLocation/hugen + chmod +x $binDir/hugen } From 148551f2b2b2b015d40f9bbeefe74e5df8dfcd63 Mon Sep 17 00:00:00 2001 From: Vale Tolpegin Date: Tue, 9 Dec 2014 23:59:38 +0000 Subject: [PATCH 11/11] created $binDir --- dev-cpp/hugen/hugen-1.recipe | 1 + 1 file changed, 1 insertion(+) diff --git a/dev-cpp/hugen/hugen-1.recipe b/dev-cpp/hugen/hugen-1.recipe index ebd4f35ee..b3f776870 100644 --- a/dev-cpp/hugen/hugen-1.recipe +++ b/dev-cpp/hugen/hugen-1.recipe @@ -37,6 +37,7 @@ BUILD() INSTALL() { + mkdir -p $binDir python=$portPackageLinksDir/cmd~python/bin/python version=$($python --version 2>&1 | sed 's/Python //' | head -c3)