summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 15:46:09 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:33:54 +0200
commitb18b6b5a775d2114c87664457c3d37d3b994afee (patch)
tree3b1279aba336521f086325f2186d2f4472bbd85e /games-puzzle
parentgames-puzzle/penguzzle: Drop old (diff)
downloadgentoo-b18b6b5a775d2114c87664457c3d37d3b994afee.tar.gz
gentoo-b18b6b5a775d2114c87664457c3d37d3b994afee.tar.bz2
gentoo-b18b6b5a775d2114c87664457c3d37d3b994afee.zip
games-puzzle/picpuz: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/picpuz/picpuz-2.5-r1.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/games-puzzle/picpuz/picpuz-2.5-r1.ebuild b/games-puzzle/picpuz/picpuz-2.5-r1.ebuild
new file mode 100644
index 00000000000..5da7fe0df61
--- /dev/null
+++ b/games-puzzle/picpuz/picpuz-2.5-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop gnome2-utils
+
+DESCRIPTION="A jigsaw puzzle program"
+HOMEPAGE="http://kornelix.squarespace.com/picpuz/"
+SRC_URI="http://kornelix.squarespace.com/storage/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:3"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-pthread-underlinking.patch
+)
+
+src_compile() {
+ emake \
+ BINDIR="/usr/bin" \
+ DATADIR=/usr/share/${PN} \
+ DOCDIR=/usr/share/doc/${PF}/html
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r icons locales
+ doicon -s 48 icons/${PN}.png
+ make_desktop_entry ${PN} Picpuz
+ HTML_DOCS="doc/userguide-en.html doc/images" einstalldocs
+ dodoc doc/{changelog,README,translations}
+ newman doc/${PN}.man ${PN}.1
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}