Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=0e00725f3d83528fd31728e3e92f10a6b20aae5f

commit 0e00725f3d83528fd31728e3e92f10a6b20aae5f
Author: Devil505 <devil505li...@gmail.com>
Date:   Fri Apr 24 08:39:15 2009 +0200

fillets-ng-0.8.1-1-i686
* new package

diff --git a/source/games-extra/fillets-ng/FrugalBuild 
b/source/games-extra/fillets-ng/FrugalBuild
new file mode 100644
index 0000000..abf5810
--- /dev/null
+++ b/source/games-extra/fillets-ng/FrugalBuild
@@ -0,0 +1,32 @@
+# Compiling Time: 0.06 SBU
+# Maintainer: Devil505 <devil505li...@gmail.com>
+
+pkgname=fillets-ng
+pkgver=0.8.1
+pkgrel=1
+pkgdesc="A port of the wonderful puzzle game Fish Fillets."
+rodepends=('fillets-ng-data')
+depends=('sdl_ttf' 'sdlimage' 'sdl_mixer' 'lua' 'fribidi' 'libx11' 'libstdc++')
+_F_sourceforge_dirname="fillets"
+_F_sourceforge_realname="Fish Fillets - Next Generation"
+Finclude sourceforge
+groups=('games-extra')
+archs=('i686')
+source=($source http://fillets.sourceforge.net/img/icon.png 
$pkgname-$pkgver-fribidi.patch)
+sha1sums=('79e6bf7ddb6f2a4f1cda12705c2415fecccbe4a0' \
+          '34ae8ea35629795eae16c5a83b09fdb6f221d86c' \
+          'edd16a8d95c06dbe8c3048c8b899220d62084f4c')
+
+_F_desktop_name="Fish Fillets Next Generation"
+_F_desktop_desc="Wonderful puzzle game Fish Fillets"
+_F_desktop_categories="Game;LogicGame;"
+_F_desktop_exec="fillets"
+_F_desktop_icon="fillets-ng.png"
+
+build() {
+  Fbuild
+  Finstall 644 icon.png usr/share/pixmaps/$pkgname.png
+  Fdesktop2
+}
+
+# optimization OK
diff --git a/source/games-extra/fillets-ng/fillets-ng-0.8.1-fribidi.patch 
b/source/games-extra/fillets-ng/fillets-ng-0.8.1-fribidi.patch
new file mode 100644
index 0000000..2e490eb
--- /dev/null
+++ b/source/games-extra/fillets-ng/fillets-ng-0.8.1-fribidi.patch
@@ -0,0 +1,21 @@
+diff -ru fillets-ng-0.8.1.orig/src/effect/Font.cpp 
fillets-ng-0.8.1/src/effect/Font.cpp
+--- fillets-ng-0.8.1.orig/src/effect/Font.cpp  2006-01-05 23:31:18.000000000 
+0100
++++ fillets-ng-0.8.1/src/effect/Font.cpp       2009-03-02 21:20:23.000000000 
+0100
+@@ -26,7 +26,7 @@
+     FriBidiChar *logicalString = new FriBidiChar[text.length() + 1];
+     FriBidiChar *visualString = new FriBidiChar[text.length() + 1];
+
+-    int ucsLength = fribidi_utf8_to_unicode(const_cast<char*>(text.c_str()),
++    int ucsLength = fribidi_charset_to_unicode(FRIBIDI_CHAR_SET_UTF8, 
const_cast<char*>(text.c_str()),
+             text.length(), logicalString);
+     fribidi_boolean ok = fribidi_log2vis(logicalString, ucsLength, &base,
+             visualString, NULL, NULL, NULL);
+@@ -37,7 +37,7 @@
+     }
+
+     char *buffer = new char[text.length() + 1];
+-    int length = fribidi_unicode_to_utf8(visualString, ucsLength, buffer);
++    int length = fribidi_unicode_to_charset(FRIBIDI_CHAR_SET_UTF8, 
visualString, ucsLength, buffer);
+     std::string result = std::string(buffer, length);
+     delete[] buffer;
+     delete[] visualString;
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to