From c0e626571cdc2ca8505afed56c8e1f6aef2dfdd0 Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Wed, 1 Jan 2014 10:41:02 +0000 Subject: [PATCH 1/3] Polished recipe for Torretor (it still needs more work) --- haiku-apps/torrentor/torrentor-0.0.5.recipe | 57 +++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 haiku-apps/torrentor/torrentor-0.0.5.recipe diff --git a/haiku-apps/torrentor/torrentor-0.0.5.recipe b/haiku-apps/torrentor/torrentor-0.0.5.recipe new file mode 100644 index 000000000..a2fbce145 --- /dev/null +++ b/haiku-apps/torrentor/torrentor-0.0.5.recipe @@ -0,0 +1,57 @@ +DESCRIPTION="Torrentor is a torrent client for the haiku operating system." +SUMMARY="Torrentor is a torrent client for the haiku operating system." +HOMEPAGE="https://github.com/Prodito/Torrentor" +SRC_URI="git+https://github.com/Prodito/Torrentor.git#c1fa0cb62963ec3c4980d99fb12e203789d9ab1a" +COPYRIGHT="2012 Guido Pola" +LICENSE="MIT" +REVISION="1" +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +else + ARCHITECTURES="$ARCHITECTURES !x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + torrentor${secondaryArchSuffix} = $portVersion + app:torrentor${secondaryArchSuffix} = $portVersion" + +BUILD_PREREQUIRES=" + makefile_engine + curl${secondaryArchSuffix} + cmd:jam + cmd:gcc${secondaryArchSuffix} + cmd:make + cmd:mkdepend" + + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libevent${secondaryArchSuffix} + devel:libssl${secondaryArchSuffix} + devel:libcurl${secondaryArchSuffix} + devel:libz${secondaryArchSuffix} # one of dependency needs it + " + +REQUIRES=" + haiku${secondaryArchSuffix} >= $haikuVersion + lib:libssl${secondaryArchSuffix} + lib:libcurl${secondaryArchSuffix} + lib:libevent${secondaryArchSuffix} + lib:libz${secondaryArchSuffix} + " + +BUILD() +{ + jam +} + +INSTALL() # just trying compile, code below doesn't have to work well +{ + mkdir -p $appsDir/Torrentor + cp Torrentor $appsDir/Torrentor/ + addAppDeskbarSymlink $appsDir/Torrentor/Torrentor +} From c7bbade4bb361eee6e27b309a615ecc01db5efcf Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Wed, 1 Jan 2014 18:59:00 +0000 Subject: [PATCH 2/3] Torrentor recipe file: cosmetic patch --- haiku-apps/torrentor/torrentor-0.0.5.recipe | 36 +++++++++++---------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/haiku-apps/torrentor/torrentor-0.0.5.recipe b/haiku-apps/torrentor/torrentor-0.0.5.recipe index a2fbce145..0cdb168e6 100644 --- a/haiku-apps/torrentor/torrentor-0.0.5.recipe +++ b/haiku-apps/torrentor/torrentor-0.0.5.recipe @@ -17,23 +17,7 @@ SECONDARY_ARCHITECTURES="x86" PROVIDES=" torrentor${secondaryArchSuffix} = $portVersion - app:torrentor${secondaryArchSuffix} = $portVersion" - -BUILD_PREREQUIRES=" - makefile_engine - curl${secondaryArchSuffix} - cmd:jam - cmd:gcc${secondaryArchSuffix} - cmd:make - cmd:mkdepend" - - -BUILD_REQUIRES=" - haiku${secondaryArchSuffix}_devel >= $haikuVersion - devel:libevent${secondaryArchSuffix} - devel:libssl${secondaryArchSuffix} - devel:libcurl${secondaryArchSuffix} - devel:libz${secondaryArchSuffix} # one of dependency needs it + app:torrentor${secondaryArchSuffix} = $portVersion " REQUIRES=" @@ -43,6 +27,24 @@ REQUIRES=" lib:libevent${secondaryArchSuffix} lib:libz${secondaryArchSuffix} " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libevent${secondaryArchSuffix} + devel:libssl${secondaryArchSuffix} + devel:libcurl${secondaryArchSuffix} + devel:libz${secondaryArchSuffix} + " + +BUILD_PREREQUIRES=" + makefile_engine + curl${secondaryArchSuffix} + cmd:jam + cmd:gcc${secondaryArchSuffix} + cmd:make + cmd:mkdepend + " + BUILD() { From 81ebb0e09236b1b9406b95fd67604a3ce9046bd8 Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Wed, 1 Jan 2014 21:48:50 +0000 Subject: [PATCH 3/3] Torrentor recipe: added better description --- haiku-apps/torrentor/torrentor-0.0.5.recipe | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/haiku-apps/torrentor/torrentor-0.0.5.recipe b/haiku-apps/torrentor/torrentor-0.0.5.recipe index 0cdb168e6..a1e1f8bd5 100644 --- a/haiku-apps/torrentor/torrentor-0.0.5.recipe +++ b/haiku-apps/torrentor/torrentor-0.0.5.recipe @@ -1,4 +1,9 @@ -DESCRIPTION="Torrentor is a torrent client for the haiku operating system." +DESCRIPTION=" +Torrentor is a torrent client for the Haiku operating system. \ +BitTorrent protocol is created for relieving servers and speed up \ +downloading files. Users are not downloading data directly from \ +server, but they are sending to and receiving it from themselves. +" SUMMARY="Torrentor is a torrent client for the haiku operating system." HOMEPAGE="https://github.com/Prodito/Torrentor" SRC_URI="git+https://github.com/Prodito/Torrentor.git#c1fa0cb62963ec3c4980d99fb12e203789d9ab1a" @@ -45,7 +50,6 @@ BUILD_PREREQUIRES=" cmd:mkdepend " - BUILD() { jam