summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2009-06-11 18:03:32 +0000
committerTristan Heaven <nyhm@gentoo.org>2009-06-11 18:03:32 +0000
commitb23440c6f440040f4f42e2b81a1b6b1d89ecd7ae (patch)
tree8083dded24ee196e6ff0452728590bc29c02bd6f /games-puzzle
parentAdd -ldl to LDFLAGS (diff)
downloadgentoo-2-b23440c6f440040f4f42e2b81a1b6b1d89ecd7ae.tar.gz
gentoo-2-b23440c6f440040f4f42e2b81a1b6b1d89ecd7ae.tar.bz2
gentoo-2-b23440c6f440040f4f42e2b81a1b6b1d89ecd7ae.zip
Version bump
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'games-puzzle')
-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
+}