summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 16:20:24 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:34:17 +0200
commit265ddeee1cbca9484233009e5c4924f56823291b (patch)
tree8e62f0e61c693db4503932a19b0c8e5384038ef0 /games-puzzle
parentgames-puzzle/sdl-jewels: Drop old (diff)
downloadgentoo-265ddeee1cbca9484233009e5c4924f56823291b.tar.gz
gentoo-265ddeee1cbca9484233009e5c4924f56823291b.tar.bz2
gentoo-265ddeee1cbca9484233009e5c4924f56823291b.zip
games-puzzle/tanglet: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch8
-rw-r--r--games-puzzle/tanglet/tanglet-1.3.1-r1.ebuild73
2 files changed, 77 insertions, 4 deletions
diff --git a/games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch b/games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch
index 6e5b46d7c7e0..18b56ca6c1a3 100644
--- a/games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch
+++ b/games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch
@@ -1,5 +1,5 @@
---- src/locale_dialog.cpp.old
-+++ src/locale_dialog.cpp
+--- a/src/locale_dialog.cpp.old
++++ b/src/locale_dialog.cpp
@@ -85,7 +85,7 @@
if (paths.isEmpty()) {
QString appdir = QCoreApplication::applicationDirPath();
@@ -9,8 +9,8 @@
paths.append(appdir + "/../Resources");
}
foreach (const QString& path, paths) {
---- src/main.cpp.old
-+++ src/main.cpp
+--- a/src/main.cpp.old
++++ b/src/main.cpp
@@ -46,7 +46,7 @@
QString path = app.applicationDirPath();
QStringList paths;
diff --git a/games-puzzle/tanglet/tanglet-1.3.1-r1.ebuild b/games-puzzle/tanglet/tanglet-1.3.1-r1.ebuild
new file mode 100644
index 000000000000..f599addb09f1
--- /dev/null
+++ b/games-puzzle/tanglet/tanglet-1.3.1-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+LANGS="cs de es en fr he hu it nl ro tr uk"
+LANGSLONG="es_CL"
+
+inherit desktop gnome2-utils qmake-utils
+
+DESCRIPTION="A single player word finding game based on Boggle"
+HOMEPAGE="https://gottcode.org/tanglet/"
+SRC_URI="https://gottcode.org/${PN}/${P}-src.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ sys-libs/zlib
+ dev-qt/qtcore:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtgui:5
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}"/${P}-datadir.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+ src/locale_dialog.cpp \
+ src/main.cpp || die
+}
+
+src_configure() {
+ eqmake5 tanglet.pro
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r data
+
+ # Translations
+ insinto /usr/share/${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
+
+ einstalldocs
+ doicon icons/${PN}.xpm
+ domenu icons/${PN}.desktop
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}