commit:     301bb3c6662e57aa9ae873118be8c2cb90b37266
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 11 18:28:57 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Jul 11 18:34:34 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=301bb3c6

games-board/tetzle: 2.1.3 version bump

Fixes qmake with Qt 5.11.

Package-Manager: Portage-2.3.42, Repoman-2.3.9

 games-board/tetzle/Manifest                        |  1 +
 games-board/tetzle/files/tetzle-2.1.3-gentoo.patch | 11 +++++
 games-board/tetzle/tetzle-2.1.3.ebuild             | 47 ++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/games-board/tetzle/Manifest b/games-board/tetzle/Manifest
index 78dc6b65590..d8aaa43b45a 100644
--- a/games-board/tetzle/Manifest
+++ b/games-board/tetzle/Manifest
@@ -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
index 00000000000..f7d76c1276b
--- /dev/null
+++ b/games-board/tetzle/files/tetzle-2.1.3-gentoo.patch
@@ -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
index 00000000000..bc3518d35a8
--- /dev/null
+++ b/games-board/tetzle/tetzle-2.1.3.ebuild
@@ -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
+}

Reply via email to