games-board/tetzle: 2.1.3 version bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 11 Jul 2018 18:28:57 +0000 (20:28 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 11 Jul 2018 18:34:34 +0000 (20:34 +0200)
Fixes qmake with Qt 5.11.

Package-Manager: Portage-2.3.42, Repoman-2.3.9

games-board/tetzle/Manifest
games-board/tetzle/files/tetzle-2.1.3-gentoo.patch [new file with mode: 0644]
games-board/tetzle/tetzle-2.1.3.ebuild [new file with mode: 0644]

index 78dc6b65590de2eafff1795c404174cc868a8e32..d8aaa43b45a1ff2b33024338f88109ae6028957a 100644 (file)
@@ -1 +1,2 @@
 DIST tetzle-2.1.1-src.tar.bz2 1246920 BLAKE2B dab8128b70fd6650da190b27f356b1db9d763b65b9192cb19140d81b5ae6aed8eadef19d5c5e36a9d223e5a9dee81c8c90b604a822df7dce725b4c98fbe139b0 SHA512 80022556ccadc19f0b4357b0f629b340cb040fdff927dccd540fba5383ae4638fcca020be020c78a3809d0ca70fae7d7f19342f3e2a162f53f5e5e3b83ddf11d
+DIST tetzle-2.1.3-src.tar.bz2 1022680 BLAKE2B 197e2a221a779734d3cd76d5600460df42014a31a032fca2f5c181d54c004f56e6beb9803c60fd53edf5b0d4a614b3d0709fd8913d561e49a938a2f6f1943001 SHA512 6f4541ad2f67ac8a98bd0e1683d4cb6131a85a4e9d31a9dae0a97177a721038750f4276fb3a592b97804daceb1b99f0117e14c6221a6a6ce74b852b00ed5c607
diff --git a/games-board/tetzle/files/tetzle-2.1.3-gentoo.patch b/games-board/tetzle/files/tetzle-2.1.3-gentoo.patch
new file mode 100644 (file)
index 0000000..f7d76c1
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/tetzle.pro       2018-05-29 13:20:06.000000000 +0200
++++ b/tetzle.pro       2018-07-11 20:24:01.076668458 +0200
+@@ -104,7 +104,7 @@
+       RC_FILE = icons/icon.rc
+ } else:unix {
+       isEmpty(PREFIX) {
+-              PREFIX = /usr/local
++              PREFIX = /usr
+       }
+       isEmpty(BINDIR) {
+               BINDIR = bin
diff --git a/games-board/tetzle/tetzle-2.1.3.ebuild b/games-board/tetzle/tetzle-2.1.3.ebuild
new file mode 100644 (file)
index 0000000..bc3518d
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2-utils qmake-utils xdg-utils
+
+DESCRIPTION="A jigsaw puzzle game that uses tetrominoes for the pieces"
+HOMEPAGE="https://gottcode.org/tetzle/"
+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
+"
+DEPEND="${RDEPEND}
+       dev-qt/linguist-tools:5
+"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure() {
+       eqmake5
+}
+
+src_install(){
+       emake DESTDIR="${D}" INSTALL_ROOT="${ED}" 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
+}