diff --git a/haiku-apps/runprogram/patches/runprogram-1.0rc1.patch b/haiku-apps/runprogram/patches/runprogram-1.0rc1.patch new file mode 100644 index 000000000..9c7c0a011 --- /dev/null +++ b/haiku-apps/runprogram/patches/runprogram-1.0rc1.patch @@ -0,0 +1,43 @@ +From fc9ee0911f7ea1881eed295c0cca7470b1c35a14 Mon Sep 17 00:00:00 2001 +From: Luke +Date: Mon, 25 Nov 2013 21:02:41 +0000 +Subject: [PATCH] COMMON -> SYSTEM + +--- + src/ExeBox.cpp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/ExeBox.cpp b/src/ExeBox.cpp +index b4ee544..b3c3bb2 100644 +--- a/src/ExeBox.cpp ++++ b/src/ExeBox.cpp +@@ -212,7 +212,7 @@ ExeBox::InitializeAutocompletion(void) + sPathData->AddItem(new entry_ref(ref)); + } + +- find_directory(B_COMMON_BIN_DIRECTORY,&path); ++ find_directory(B_SYSTEM_BIN_DIRECTORY,&path); + dir.SetTo(path.Path()); + dir.Rewind(); + while (dir.GetNextRef(&ref) == B_OK) +@@ -271,7 +271,7 @@ ExeBox::QueryThread(void *data) + { + if ( ref.directory == B_USER_ADDONS_DIRECTORY + || ref.directory == B_BEOS_ADDONS_DIRECTORY +- || ref.directory == B_COMMON_ADDONS_DIRECTORY) ++ || ref.directory == B_SYSTEM_ADDONS_DIRECTORY) + continue; + + if (ref.directory == -1) +@@ -341,7 +341,7 @@ ExeBox::UpdateThread(void *data) + queryList.AddItem(new entry_ref(ref)); + } + +- find_directory(B_COMMON_BIN_DIRECTORY,&path); ++ find_directory(B_SYSTEM_BIN_DIRECTORY,&path); + dir.SetTo(path.Path()); + dir.Rewind(); + +-- +1.8.3.4 + diff --git a/haiku-apps/runprogram/runprogram-1.0rc1.recipe b/haiku-apps/runprogram/runprogram-1.0rc1.recipe new file mode 100644 index 000000000..51ea61570 --- /dev/null +++ b/haiku-apps/runprogram/runprogram-1.0rc1.recipe @@ -0,0 +1,54 @@ +SUMMARY="A simple program for running a quick terminal command" +DESCRIPTION=" + Run Program, written by DarkWyrm, is a simple program that + runs a command. It can autocomplete commands as you type, + and is case insensitive. + + If bound to a key combination via Shortcuts, commands can be + run without even touching the mouse. + " +HOMEPAGE="https://github.com/HaikuArchives/RunProgram" +SRC_URI="git+git://github.com/HaikuArchives/RunProgram.git#a8fe29319e8dde884d8634a0c5a82838a3706563" +LICENSE="MIT" +COPYRIGHT="2008 DarkWyrm" +REVISION="1" +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +PROVIDES=" + RunProgram = $portVersion + " + +REQUIRES=" + haiku >= $haikuVersion + " + +BUILD_REQUIRES="" +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:gcc + " + +PATCHES=" + runprogram-1.0rc1.patch + " + +SOURCE_DIR="$portName-a8fe29319e8dde884d8634a0c5a82838a3706563" + +BUILD() +{ + cd src + g++ -o RunProgram -lbe \ + AutoTextControl.cpp \ + ExeBox.cpp \ + main.cpp \ + RunWindow.cpp \ + TextFile.cpp + xres -o RunProgram "Run Program.rsrc" +} + +INSTALL() +{ + mkdir -p $appsDir + cp src/RunProgram $appsDir + addAppDeskbarSymlink $appsDir/RunProgram +}