summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-07-11 20:08:52 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-07-11 20:34:34 +0200
commit95dd4ebdb5cd696238e52c5d6bd1fcac9bbe880d (patch)
tree5e5d86bf64ffaece77b0e6461b93162a401f0022
parentgames-puzzle/hexalate: Drop old (diff)
downloadgentoo-95dd4ebdb5cd696238e52c5d6bd1fcac9bbe880d.tar.gz
gentoo-95dd4ebdb5cd696238e52c5d6bd1fcac9bbe880d.tar.bz2
gentoo-95dd4ebdb5cd696238e52c5d6bd1fcac9bbe880d.zip
games-puzzle/tanglet: 1.5.2 version bump
Fixes qmake with Qt 5.11. Package-Manager: Portage-2.3.42, Repoman-2.3.9
-rw-r--r--games-puzzle/tanglet/Manifest1
-rw-r--r--games-puzzle/tanglet/files/tanglet-1.5.2-gentoo.patch33
-rw-r--r--games-puzzle/tanglet/tanglet-1.5.2.ebuild48
3 files changed, 82 insertions, 0 deletions
diff --git a/games-puzzle/tanglet/Manifest b/games-puzzle/tanglet/Manifest
index b06a780476a..15f18c90c8e 100644
--- a/games-puzzle/tanglet/Manifest
+++ b/games-puzzle/tanglet/Manifest
@@ -1 +1,2 @@
DIST tanglet-1.3.1-src.tar.bz2 8461603 BLAKE2B 86542f6248b58dc7f72be8264ded94376d746827865b3633640a24055452a4c4d677bf3f6aab8eb6736ce1cf92b8a8b6963637418118861dad296bb4ccac5b2a SHA512 b939ca45f26baf8e7e32da8775e673707472e5cd07d344642eeb15986ff99319e0ab1bacf78e2ea49f004ec67a6d081a91c939cf7c75228a195654d429235625
+DIST tanglet-1.5.2-src.tar.bz2 8646616 BLAKE2B 0a38690069550e27a302f28e7db3753eaf67af7add730d8069ec4df001a431843e204603475146d56049cdf40c0be20d8ef83ea9f47b27cf82cc232e4fecef35 SHA512 a97b9fe3c9c80a843c4696766d15edcab48369bd905e893c2975bfb9faf91d4a58a3c440d242be91f5838aacdf1526022b5ce8c463adfd8b0bb62e008be460ee
diff --git a/games-puzzle/tanglet/files/tanglet-1.5.2-gentoo.patch b/games-puzzle/tanglet/files/tanglet-1.5.2-gentoo.patch
new file mode 100644
index 00000000000..8409f2cc48c
--- /dev/null
+++ b/games-puzzle/tanglet/files/tanglet-1.5.2-gentoo.patch
@@ -0,0 +1,33 @@
+--- a/src/src.pro 2018-05-29 13:11:55.000000000 +0200
++++ b/src/src.pro 2018-07-11 20:02:51.415773874 +0200
+@@ -99,7 +99,7 @@
+ RESOURCES += ../icons/icon.qrc
+
+ isEmpty(PREFIX) {
+- PREFIX = /usr/local
++ PREFIX = /usr
+ }
+ isEmpty(BINDIR) {
+ BINDIR = bin
+--- a/src/locale_dialog.cpp
++++ b/src/locale_dialog.cpp
+@@ -85,7 +85,7 @@
+ if (paths.isEmpty()) {
+ QString appdir = QCoreApplication::applicationDirPath();
+ paths.append(appdir);
+- paths.append(appdir + "/../share/" + QCoreApplication::applicationName().toLower());
++ paths.append("/usr/share");
+ paths.append(appdir + "/../Resources");
+ }
+ foreach (const QString& path, paths) {
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -46,7 +46,7 @@
+ QString path = app.applicationDirPath();
+ QStringList paths;
+ paths.append(path + "/data/");
+- paths.append(path + "/../share/tanglet/data/");
++ paths.append("/usr/share/data/");
+ paths.append(path + "/../Resources/data/");
+ QDir::setSearchPaths("tanglet", paths);
+
diff --git a/games-puzzle/tanglet/tanglet-1.5.2.ebuild b/games-puzzle/tanglet/tanglet-1.5.2.ebuild
new file mode 100644
index 00000000000..2595d233626
--- /dev/null
+++ b/games-puzzle/tanglet/tanglet-1.5.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop gnome2-utils qmake-utils xdg-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="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ sys-libs/zlib:=
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure() {
+ eqmake5 tanglet.pro
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}