From f2e69c6904425afd6752485d0748a99f7f6b86cc Mon Sep 17 00:00:00 2001 From: Theodore Kokkoris Date: Wed, 4 Dec 2013 21:11:12 +0000 Subject: [PATCH 1/2] Added Tolmach recipe and patch --- .../tolmach/patches/tolmach-1.1.0.patch | 13 +++++ haiku-apps/tolmach/tolmach-1.1.0.recipe | 50 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 haiku-apps/tolmach/patches/tolmach-1.1.0.patch create mode 100644 haiku-apps/tolmach/tolmach-1.1.0.recipe diff --git a/haiku-apps/tolmach/patches/tolmach-1.1.0.patch b/haiku-apps/tolmach/patches/tolmach-1.1.0.patch new file mode 100644 index 000000000..00afa60d2 --- /dev/null +++ b/haiku-apps/tolmach/patches/tolmach-1.1.0.patch @@ -0,0 +1,13 @@ +diff --git a/TolmachApp.cpp b/TolmachApp.cpp +index acfacb1..c7c190a 100644 +--- a/TolmachApp.cpp ++++ b/TolmachApp.cpp +@@ -421,7 +421,7 @@ void + TolmachApplication::LoadDictList() + { + BPath pathDicts; +- find_directory(B_COMMON_DATA_DIRECTORY, &pathDicts); ++ find_directory(B_USER_DATA_DIRECTORY, &pathDicts); + pathDicts.Append(cszDictionariesDir); + BDirectory dir(pathDicts.Path()); + BEntry entry; diff --git a/haiku-apps/tolmach/tolmach-1.1.0.recipe b/haiku-apps/tolmach/tolmach-1.1.0.recipe new file mode 100644 index 000000000..aef978684 --- /dev/null +++ b/haiku-apps/tolmach/tolmach-1.1.0.recipe @@ -0,0 +1,50 @@ +DESCRIPTION="This program is a dictionary for Haiku" +SUMMARY="A dictionary for Haiku" +COPYRIGHT="1999 Ivan V. Murasko" +LICENSE="GNU GPL v2" +HOMEPAGE="https://gitorious.org/desknotes/tolmach" +SRC_URI="git+https://gitorious.org/desknotes/tolmach.git#dcddbac" +REVISION="1" + +ARCHITECTURES="x86_gcc2 x86 ?x86_64" + +PROVIDES=" + tolmach = $portVersion + app:tolmach = $portVersion + lib:libfSub + " + +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + " + +BUILD_PREREQUIRES=" + makefile_engine + cmd:gcc + cmd:make + cmd:mkdepend + " + +PATCHES="tolmach-1.1.0.patch" + +USER_SETTINGS_FILES=" + settings/Tolmach_Preferences directory" + +BUILD() +{ + make BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` +} + +INSTALL() +{ + architecture=`echo $buildArchitecture | sed 's/_/-/g'` + + mkdir -p $appsDir/Tolmach $dataDir/Tolmach + + cd objects.$architecture-release + cp Tolmach $appsDir/Tolmach + addAppDeskbarSymlink $appsDir/Tolmach/Tolmach + + cd ../Dictionaries + cp *.pgb $dataDir/Tolmach +} From 613232108f69979e76bdb68ad844b9751835c84c Mon Sep 17 00:00:00 2001 From: tgkokk Date: Thu, 5 Dec 2013 05:36:50 +0000 Subject: [PATCH 2/2] Added longer description to Tolmach --- haiku-apps/tolmach/tolmach-1.1.0.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haiku-apps/tolmach/tolmach-1.1.0.recipe b/haiku-apps/tolmach/tolmach-1.1.0.recipe index aef978684..110916f4c 100644 --- a/haiku-apps/tolmach/tolmach-1.1.0.recipe +++ b/haiku-apps/tolmach/tolmach-1.1.0.recipe @@ -1,4 +1,4 @@ -DESCRIPTION="This program is a dictionary for Haiku" +DESCRIPTION="This program is a BeOS port of KDictionary translation program for Linux by Ivan V. Murasko. It follows the main concept of original linux program but mainly is a real BeOS program." SUMMARY="A dictionary for Haiku" COPYRIGHT="1999 Ivan V. Murasko" LICENSE="GNU GPL v2"