summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2014-05-19 19:54:12 +0000
committerAlfredo Tupone <tupone@gentoo.org>2014-05-19 19:54:12 +0000
commit994fa0ec5c5995e0731e4e91174887d0e50a6bfb (patch)
treec02bfed3e7e24c42edc19855f2f913b86be12205 /games-puzzle
parentUpdate pkg_nofetch. (diff)
downloadgentoo-2-994fa0ec5c5995e0731e4e91174887d0e50a6bfb.tar.gz
gentoo-2-994fa0ec5c5995e0731e4e91174887d0e50a6bfb.tar.bz2
gentoo-2-994fa0ec5c5995e0731e4e91174887d0e50a6bfb.zip
Version bump to 1.2.2. Bug #500194
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0145142D)
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/tanglet/ChangeLog10
-rw-r--r--games-puzzle/tanglet/files/tanglet-1.2.2-datadir.patch22
-rw-r--r--games-puzzle/tanglet/tanglet-1.2.2.ebuild73
3 files changed, 103 insertions, 2 deletions
diff --git a/games-puzzle/tanglet/ChangeLog b/games-puzzle/tanglet/ChangeLog
index 63732edb4fcf..a7b4dd8bebec 100644
--- a/games-puzzle/tanglet/ChangeLog
+++ b/games-puzzle/tanglet/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-puzzle/tanglet
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/tanglet/ChangeLog,v 1.16 2013/03/02 21:20:04 hwoarang Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/tanglet/ChangeLog,v 1.17 2014/05/19 19:54:12 tupone Exp $
+
+*tanglet-1.2.2 (19 May 2014)
+
+ 19 May 2014; Tupone Alfredo <tupone@gentoo.org> +tanglet-1.2.2.ebuild,
+ +files/tanglet-1.2.2-datadir.patch:
+ Version bump to 1.2.2. Bug #500194 by Julian Ospald (hasufell)
02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> tanglet-1.2.0.ebuild,
tanglet-1.2.1.ebuild:
diff --git a/games-puzzle/tanglet/files/tanglet-1.2.2-datadir.patch b/games-puzzle/tanglet/files/tanglet-1.2.2-datadir.patch
new file mode 100644
index 000000000000..6be399c0129f
--- /dev/null
+++ b/games-puzzle/tanglet/files/tanglet-1.2.2-datadir.patch
@@ -0,0 +1,22 @@
+--- src/locale_dialog.cpp.old 2014-05-19 21:33:44.077819074 +0200
++++ src/locale_dialog.cpp 2014-05-19 21:33:52.893650196 +0200
+@@ -85,7 +85,7 @@
+ if (paths.isEmpty()) {
+ QString appdir = QCoreApplication::applicationDirPath();
+ paths.append(appdir);
+- paths.append(appdir + "/../share/" + QCoreApplication::applicationName().toLower());
++ paths.append("@GENTOO_DATADIR@");
+ paths.append(appdir + "/../Resources");
+ }
+ foreach (const QString& path, paths) {
+--- src/main.cpp.old 2014-05-19 21:41:15.550293079 +0200
++++ src/main.cpp 2014-05-19 21:42:15.560162477 +0200
+@@ -46,7 +46,7 @@
+ QString path = app.applicationDirPath();
+ QStringList paths;
+ paths.append(path + "/data/");
+- paths.append(path + "/../share/tanglet/data/");
++ paths.append("@GENTOO_DATADIR@/data/");
+ paths.append(path + "/../Resources/data/");
+ QDir::setSearchPaths("tanglet", paths);
+
diff --git a/games-puzzle/tanglet/tanglet-1.2.2.ebuild b/games-puzzle/tanglet/tanglet-1.2.2.ebuild
new file mode 100644
index 000000000000..262f6ffeaa2c
--- /dev/null
+++ b/games-puzzle/tanglet/tanglet-1.2.2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/tanglet/tanglet-1.2.2.ebuild,v 1.1 2014/05/19 19:54:12 tupone Exp $
+
+EAPI=5
+
+LANGS="cs de es en fr he hu it nl ro tr uk"
+LANGSLONG="es_CL"
+inherit eutils gnome2-utils qt4-r2 games
+
+DESCRIPTION="A single player word finding game based on Boggle"
+HOMEPAGE="http://gottcode.org/tanglet/"
+SRC_URI="http://gottcode.org/${PN}/${P}-src.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-libs/zlib
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-datadir.patch
+ sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ src/locale_dialog.cpp \
+ src/main.cpp \
+ || die "sed failed"
+}
+
+src_configure() {
+ qt4-r2_src_configure
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data
+ #translations
+ insinto "${GAMES_DATADIR}"/${PN}/translations/
+ for lang in ${LINGUAS};do
+ for x in ${LANGS};do
+ if [[ ${lang} == ${x} ]];then
+ doins translations/${PN}_${x}.qm
+ fi
+ done
+ done
+
+ insinto /usr/share/icons
+ doins -r icons/hicolor
+
+ dodoc ChangeLog CREDITS NEWS
+
+ doicon icons/${PN}.xpm
+ domenu icons/${PN}.desktop
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+ games_pkg_preinst
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ games_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}