games-board/peg-e: 1.2.5 version bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 11 Jul 2018 18:18:24 +0000 (20:18 +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/peg-e/Manifest
games-board/peg-e/files/peg-e-1.2.5-gentoo.patch [new file with mode: 0644]
games-board/peg-e/peg-e-1.2.5.ebuild [new file with mode: 0644]

index c3c9346c117dbd55696f886093037747faeb7175..2b60637483d3c2a79d0afb106fe06ca955a0efac 100644 (file)
@@ -1 +1,2 @@
 DIST peg-e-1.2.3-src.tar.bz2 466872 BLAKE2B bcff7b31bc2281b24b6c54466aa14e6d200b14f9204437a66a84d180607e9e108be893e4da7dd722d17c1ea7490bac34fae08ddf2dcd89f696439d026e831e96 SHA512 775bab9512ec33ef31a1fb549af365ec3ae0e8d9533c2e05f438d3affa68e10786e043925bcdec67ebdb027559773582687dbdc625d3dca307c3aadde01686dd
+DIST peg-e-1.2.5-src.tar.bz2 598322 BLAKE2B f717d3e378fe69e087631abd8f0cbe3cc3bf2479ab86a608c256100778bc94baa40752463a4cb511c4ffd431ce38333318803a1dc289be4bd7d3aad595cd76d1 SHA512 cfd15e2c8cba678d64c9289ab2aa3803af48aebb3e4e545439c247d622dd914dac0735a0fd786cdba1678b448c22a9e40f48a9a1db6391fa6532e3d918c0ca10
diff --git a/games-board/peg-e/files/peg-e-1.2.5-gentoo.patch b/games-board/peg-e/files/peg-e-1.2.5-gentoo.patch
new file mode 100644 (file)
index 0000000..e643000
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/peg-e.pro        2018-05-29 13:01:32.000000000 +0200
++++ b/peg-e.pro        2018-07-11 20:15:46.151082792 +0200
+@@ -75,7 +75,7 @@
+       RESOURCES = icons/icon.qrc
+       isEmpty(PREFIX) {
+-              PREFIX = /usr/local
++              PREFIX = /usr
+       }
+       isEmpty(BINDIR) {
+               BINDIR = bin
diff --git a/games-board/peg-e/peg-e-1.2.5.ebuild b/games-board/peg-e/peg-e-1.2.5.ebuild
new file mode 100644 (file)
index 0000000..e53cb97
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop gnome2-utils qmake-utils
+
+DESCRIPTION="A peg solitaire game"
+HOMEPAGE="https://gottcode.org/peg-e/"
+SRC_URI="https://gottcode.org/peg-e/${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 INSTALL_ROOT="${D}" install
+       einstalldocs
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}