summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/attal/files/attal-0.10.1-gentoo.patch')
-rw-r--r--games-strategy/attal/files/attal-0.10.1-gentoo.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/games-strategy/attal/files/attal-0.10.1-gentoo.patch b/games-strategy/attal/files/attal-0.10.1-gentoo.patch
new file mode 100644
index 000000000000..ab8d0c605105
--- /dev/null
+++ b/games-strategy/attal/files/attal-0.10.1-gentoo.patch
@@ -0,0 +1,33 @@
+--- libCommon/displayHelp.cpp.old 2006-09-11 22:41:38.000000000 +0200
++++ libCommon/displayHelp.cpp 2006-09-11 22:42:20.000000000 +0200
+@@ -44,7 +44,7 @@
+ _text->mimeSourceFactory()->setFilePath( QString(".") );
+ _text->mimeSourceFactory()->setExtensionType( "html", "text/html;charset=iso8859-1" );
+ _text->setTextFormat( Qt::RichText );
+- _text->setSource( "./HOWTOPLAY.html" );
++ _text->setSource( "@GENTOO_DATADIR@/HOWTOPLAY.html" );
+
+ QPushButton * pbOk = new QPushButton( this );
+ pbOk->setText( QObject::tr( "Ok" ) );
+--- libCommon/attalCommon.cpp.old 2006-09-11 22:45:23.000000000 +0200
++++ libCommon/attalCommon.cpp 2006-09-11 22:47:28.000000000 +0200
+@@ -52,7 +52,7 @@
+ {
+ QDir folder;
+
+- folder.setPath( "./themes/" + THEME );
++ folder.setPath( "@GENTOO_DATADIR@/themes/" + THEME );
+
+ #ifndef WIN32
+ if( ! folder.exists() ) {
+--- server/duel.cpp.old 2006-09-11 22:48:30.000000000 +0200
++++ server/duel.cpp 2006-09-11 22:48:57.000000000 +0200
+@@ -44,7 +44,7 @@
+ {
+ QDir folder;
+
+- folder.setPath( "./themes/" + THEME );
++ folder.setPath( "@GENTOO_DATADIR@/themes/" + THEME );
+ if( ! folder.exists() ) {
+ folder.setPath( "/usr/local/share/games/attal/themes/" + THEME );
+ if( ! folder.exists() ) {