summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-puzzle/picpuz/ChangeLog8
-rw-r--r--games-puzzle/picpuz/files/picpuz-1.9.2-build.patch35
-rw-r--r--games-puzzle/picpuz/picpuz-1.9.2.ebuild40
3 files changed, 82 insertions, 1 deletions
diff --git a/games-puzzle/picpuz/ChangeLog b/games-puzzle/picpuz/ChangeLog
index 17c14560ef75..c735c7d9c37a 100644
--- a/games-puzzle/picpuz/ChangeLog
+++ b/games-puzzle/picpuz/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-puzzle/picpuz
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/picpuz/ChangeLog,v 1.4 2009/02/10 11:42:46 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/picpuz/ChangeLog,v 1.5 2009/06/11 18:03:32 nyhm Exp $
+
+*picpuz-1.9.2 (11 Jun 2009)
+
+ 11 Jun 2009; Tristan Heaven <nyhm@gentoo.org> +picpuz-1.9.2.ebuild,
+ +files/picpuz-1.9.2-build.patch:
+ Version bump
10 Feb 2009; Alfredo Tupone <tupone@gentoo.org>
+files/picpuz-1.7-gentoo.patch, picpuz-1.7.ebuild:
diff --git a/games-puzzle/picpuz/files/picpuz-1.9.2-build.patch b/games-puzzle/picpuz/files/picpuz-1.9.2-build.patch
new file mode 100644
index 000000000000..a9770899fd02
--- /dev/null
+++ b/games-puzzle/picpuz/files/picpuz-1.9.2-build.patch
@@ -0,0 +1,35 @@
+--- Makefile
++++ Makefile
+@@ -2,8 +2,11 @@
+ PROGRAM = picpuz
+ VERSION = 1.9.2
+ SOURCE = $(PROGRAM)-$(VERSION).cpp
+-CFLAGS = -O -Wall -c `pkg-config --cflags gtk+-2.0`
+-LFLAGS = -O -Wall -rdynamic `pkg-config --libs gtk+-2.0 gthread-2.0`
++CXX ?= @g++
++CXXFLAGS ?= -O
++CXXFLAGS += -Wall -DDATADIR=\"$(DATADIR)\" -DDOCDIR=\"$(DOCDIR)\" `pkg-config --cflags gtk+-2.0`
++LIBS = `pkg-config --libs gtk+-2.0 gthread-2.0`
++LDFLAGS += -rdynamic
+ LAUNCHER = $(HOME)/Desktop/kornelix-$(PROGRAM).desktop
+ LOWNER = `stat --format="%u:%g" $(HOME)/Desktop`
+
+@@ -19,15 +22,13 @@
+
+
+ $(PROGRAM): $(PROGRAM).o zfuncs.o
+- @g++ $(LFLAGS) -o $(PROGRAM) $(PROGRAM).o zfuncs.o
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(PROGRAM) $(PROGRAM).o zfuncs.o $(LIBS)
+
+ $(PROGRAM).o: $(SOURCE) zfuncs.h
+- @g++ $(CFLAGS) -o $(PROGRAM).o $(SOURCE) \
+- -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\""
++ $(CXX) $(CXXFLAGS) -o $(PROGRAM).o -c $(SOURCE)
+
+ zfuncs.o: zfuncs.cpp zfuncs.h
+- @g++ $(CFLAGS) zfuncs.cpp \
+- -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\""
++ $(CXX) $(CXXFLAGS) -c zfuncs.cpp
+
+
+ install: $(PROGRAM)
diff --git a/games-puzzle/picpuz/picpuz-1.9.2.ebuild b/games-puzzle/picpuz/picpuz-1.9.2.ebuild
new file mode 100644
index 000000000000..ebe9dbd6421e
--- /dev/null
+++ b/games-puzzle/picpuz/picpuz-1.9.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/picpuz/picpuz-1.9.2.ebuild,v 1.1 2009/06/11 18:03:32 nyhm Exp $
+
+EAPI=2
+inherit eutils games
+
+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+:2"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-build.patch )
+
+src_compile() {
+ emake \
+ BINDIR="${GAMES_BINDIR}" \
+ DATADIR="${GAMES_DATADIR}"/${PN} \
+ DOCDIR=/usr/share/doc/${PF}/html \
+ || die "emake failed"
+}
+
+src_install() {
+ dogamesbin ${PN} || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/* locales || die "doins failed"
+ doicon data/icons/${PN}.png
+ make_desktop_entry ${PN} Picpuz
+ dohtml -r doc/{userguide-en.html,images}
+ dodoc doc/{CHANGES,README,TRANSLATIONS}
+ prepgamesdirs
+}