From 5587cf8bb50779bff5d98f27ed5b865a2e420e7e Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Fri, 29 Nov 2013 01:47:07 +0000 Subject: [PATCH] Added JamMin, recipe from GCI2013 student Adrian Jelen --- haiku-apps/jammin/jammin-0.1.0.recipe | 41 +++++++++++++++++ haiku-apps/jammin/patches/jampatch-1.patch | 51 ++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 haiku-apps/jammin/jammin-0.1.0.recipe create mode 100644 haiku-apps/jammin/patches/jampatch-1.patch diff --git a/haiku-apps/jammin/jammin-0.1.0.recipe b/haiku-apps/jammin/jammin-0.1.0.recipe new file mode 100644 index 000000000..4713577fa --- /dev/null +++ b/haiku-apps/jammin/jammin-0.1.0.recipe @@ -0,0 +1,41 @@ +DESCRIPTION="The JamMin manages your jamfiles. +Jamfiles are the thing that is most important to the user, bacause they declare the targets that should be built. Jamfiles are also used for organizing targets— each Jamfile is a separate project that can be built independently from the other projects." +SUMMARY="The Jamfile Administrator" +HOMEPAGE="https://github.com/HaikuArchives/JamMin" +SRC_URI="git+https://github.com/HaikuArchives/JamMin.git" +REVISION="1" + +COPYRIGHT="2003 Guido Casiraghi" + +LICENSE="MIT" + +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +PROVIDES=" + JamMin = $portVersion + app:JamMin = $portVersion" + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + makefile_engine + cmd:gcc + cmd:make + cmd:mkdepend" + +REQUIRES=" + haiku >= $haikuVersion" + +PATCHES="jampatch-1.patch" + + +BUILD() +{ + make BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` +} + +INSTALL() +{ + mkdir -p $appsDir + cp objects.x86-gcc2-release/JamApp $appsDir + addAppDeskbarSymlink $appsDir/JamApp +} diff --git a/haiku-apps/jammin/patches/jampatch-1.patch b/haiku-apps/jammin/patches/jampatch-1.patch new file mode 100644 index 000000000..ab7bb8b26 --- /dev/null +++ b/haiku-apps/jammin/patches/jampatch-1.patch @@ -0,0 +1,51 @@ +diff --git a/JamMin.rdef b/JamMin.rdef +index 1707392..a46587d 100644 +--- a/JamMin.rdef ++++ b/JamMin.rdef +@@ -13,10 +13,7 @@ resource app_version { + variety = B_APPV_ALPHA, + internal = 0, + +- short_info = "The Jamfile Administrator", +- long_info = #'CSTR' array { +- +- } ++ short_info = "The Jamfile Administrator" + }; + + resource app_flags B_SINGLE_LAUNCH; +diff --git a/JamMinWindow.cpp b/JamMinWindow.cpp +index 2b0077f..2b3c9af 100644 +--- a/JamMinWindow.cpp ++++ b/JamMinWindow.cpp +@@ -1001,10 +1001,6 @@ JamMinWindow::IsSystemLibraryPath(BPath* libPath) + //if (ret == B_OK) { + if ( strcmp(libPath->Path(), path.Path()) == 0 ) return true; + //} +- ret = find_directory(B_COMMON_LIB_DIRECTORY, &path); +- if (ret == B_OK) { +- if ( strcmp(libPath->Path(), path.Path()) == 0 ) return true; +- } + + ret = find_directory(B_USER_LIB_DIRECTORY, &path); //the same as B_COMMON_LIB_DIRECTORY + if (ret == B_OK) { +diff --git a/makefile b/makefile +new file mode 100644 +index 0000000..8514e9d +--- /dev/null ++++ b/makefile +@@ -0,0 +1,14 @@ ++## JamMin makefile for Haiku OS ## ++ ++NAME= JamApp ++ ++TYPE= APP ++ ++SRCS= TargetSettingsWin.cpp TargetConfig.cpp main.cpp LinkerSettingsView.cpp JMOpenFilePanel.cpp JamMinWindow.cpp JamMinApp.cpp JamFile.cpp IncludeSettingsView.cpp GeneralSettingsView.cpp CompilerSettingsView.cpp ++RDEFS= JamMin.rdef ++LIBS= be stdc++.r4 root tracker ++OPTIMIZE= FULL ++WARNINGS = ALL ++ ++## include makefile engine ++include $(BUILDHOME)/etc/makefile-engine