From 1a52683d2f209afffa89d640662cb82ed16a397a Mon Sep 17 00:00:00 2001 From: Siarzhuk Zharski Date: Wed, 13 Nov 2013 23:24:14 +0100 Subject: [PATCH] KeymapSwitcher updated to 1.2.7.11 * pre-sort keymaps in available keymaps outline view; * fix issue with fake menu-field label; * rename Hotkey to Shortcut; * do not bind localization catalogs into preferences UI application. --- .../keymapswitcher-1.2.7.11.recipe | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 haiku-apps/keymapswitcher/keymapswitcher-1.2.7.11.recipe diff --git a/haiku-apps/keymapswitcher/keymapswitcher-1.2.7.11.recipe b/haiku-apps/keymapswitcher/keymapswitcher-1.2.7.11.recipe new file mode 100644 index 000000000..e0d8b7520 --- /dev/null +++ b/haiku-apps/keymapswitcher/keymapswitcher-1.2.7.11.recipe @@ -0,0 +1,49 @@ +SUMMARY="Easy to use Keymap Switcher for Haiku" +DESCRIPTION="This is a keymap switcher for Haiku. It is very similar to what you used to have in windows to change the keymap with hotkeys, but has some additional features (and lacks some, for sure)." +HOMEPAGE="http://www.sf.net/projects/switcher" +COPYRIGHT="1999-2003 Stas Maximov" +LICENSE="BSD (4-clause)" +SRC_URI="cvs://:pserver:anonymous@switcher.cvs.sourceforge.net:/cvsroot/switcher/keymapswitcher(haiku)#release_1_2_7_11" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" + +PROVIDES=" + keymapswitcher = $portVersion compat >= 1.2.7 + " +REQUIRES=" + haiku >= $haikuVersion + " +BUILD_REQUIRES=" + " +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + makefile_engine + cmd:gcc + cmd:ld + cmd:make + cmd:mkdepend + " + +SOURCE_DIR="$portVersionedName" + +PATCH() +{ + # Fix makefile not to use BUILDHOME as an install dir variable. + sed -i "s,BUILDHOME,HPKG_INSTALL_DIR,g" makefile +} + +BUILD() +{ + make $jobArgs BUILDHOME=/boot/system/develop HPKG_INSTALL_DIR=$prefix +} + +INSTALL() +{ + # We're not interested in the package, but that target copies the + # interesting files to a well-known directory structure. Otherwise we'd have + # to find out the name of the object dir and collect everything ourselves. + # Obviously an install target would be even better. + make BUILDHOME=/boot/system/develop HPKG_INSTALL_DIR=$prefix hpkg + + addPreferencesDeskbarSymlink $preferencesDir/KeymapSwitcher +}