summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-puzzle/picpuz/ChangeLog7
-rw-r--r--games-puzzle/picpuz/picpuz-1.7.ebuild60
2 files changed, 66 insertions, 1 deletions
diff --git a/games-puzzle/picpuz/ChangeLog b/games-puzzle/picpuz/ChangeLog
index b116ef757479..4f503a9689ee 100644
--- a/games-puzzle/picpuz/ChangeLog
+++ b/games-puzzle/picpuz/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-puzzle/picpuz
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/picpuz/ChangeLog,v 1.2 2008/05/01 11:01:43 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/picpuz/ChangeLog,v 1.3 2008/08/25 22:54:38 mr_bones_ Exp $
+
+*picpuz-1.7 (25 Aug 2008)
+
+ 25 Aug 2008; Michael Sterrett <mr_bones_@gentoo.org> +picpuz-1.7.ebuild:
+ version bump
01 May 2008; Tristan Heaven <nyhm@gentoo.org>
+files/picpuz-06-gcc43.patch, picpuz-06.ebuild:
diff --git a/games-puzzle/picpuz/picpuz-1.7.ebuild b/games-puzzle/picpuz/picpuz-1.7.ebuild
new file mode 100644
index 000000000000..f5e9f9d51da3
--- /dev/null
+++ b/games-puzzle/picpuz/picpuz-1.7.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/picpuz/picpuz-1.7.ebuild,v 1.1 2008/08/25 22:54:38 mr_bones_ Exp $
+
+inherit toolchain-funcs eutils games
+
+DESCRIPTION="a jigsaw puzzle program"
+HOMEPAGE="http://www.kornelix.com/picpuz"
+SRC_URI="http://www.kornelix.com/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=x11-libs/gtk+-2.8"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e 's/CFLAGS/CXXFLAGS/g' \
+ -e '/LFLAGS/s/$/ $(LDFLAGS)/' \
+ -e '/^CXXFLAGS/s/=/+=/' \
+ -e 's/-O//' \
+ -e "s/g++/$(tc-getCXX)/g" \
+ Makefile \
+ || die "sed failed"
+ rm -f doc/COPYING
+ mv doc/*pdf "${T}" || die "mv failed"
+}
+
+src_compile() {
+ emake \
+ BINDIR="${GAMES_BINDIR}" \
+ DATADIR="${GAMES_DATADIR}/${PN}" \
+ DOCDIR=/usr/share/doc/${PF} \
+ || die "emake failed"
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ BINDIR="${GAMES_BINDIR}" \
+ DATADIR="${GAMES_DATADIR}/${PN}" \
+ DOCDIR=/usr/share/doc/${PF} \
+ install \
+ || die "emake failed"
+ doicon data/icons/${PN}.png
+ make_desktop_entry ${PN} Picpuz
+ prepalldocs
+ insinto /usr/share/doc/${PF}
+ doins "${T}"/*pdf || die "doins failed"
+ prepgamesdirs
+}