diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2009-07-16 06:15:59 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2009-07-16 06:15:59 +0000 |
commit | 32c292279f12f34b10240d329a0986c0216aa953 (patch) | |
tree | 0b16018203cbb82c7ec8a955e87107a6f8c7a9ab /games-puzzle/picpuz | |
parent | Added symlinking for docs, thanks to Martin von Gagern, closing bug #273957 (diff) | |
download | gentoo-2-32c292279f12f34b10240d329a0986c0216aa953.tar.gz gentoo-2-32c292279f12f34b10240d329a0986c0216aa953.tar.bz2 gentoo-2-32c292279f12f34b10240d329a0986c0216aa953.zip |
version bump
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'games-puzzle/picpuz')
-rw-r--r-- | games-puzzle/picpuz/ChangeLog | 8 | ||||
-rw-r--r-- | games-puzzle/picpuz/files/picpuz-1.9.3-build.patch | 35 | ||||
-rw-r--r-- | games-puzzle/picpuz/picpuz-1.9.3.ebuild | 40 |
3 files changed, 82 insertions, 1 deletions
diff --git a/games-puzzle/picpuz/ChangeLog b/games-puzzle/picpuz/ChangeLog index c735c7d9c37a..53cb1be2b21f 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.5 2009/06/11 18:03:32 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/picpuz/ChangeLog,v 1.6 2009/07/16 06:15:58 mr_bones_ Exp $ + +*picpuz-1.9.3 (16 Jul 2009) + + 16 Jul 2009; Michael Sterrett <mr_bones_@gentoo.org> + +files/picpuz-1.9.3-build.patch, +picpuz-1.9.3.ebuild: + version bump *picpuz-1.9.2 (11 Jun 2009) diff --git a/games-puzzle/picpuz/files/picpuz-1.9.3-build.patch b/games-puzzle/picpuz/files/picpuz-1.9.3-build.patch new file mode 100644 index 000000000000..ff266b81941a --- /dev/null +++ b/games-puzzle/picpuz/files/picpuz-1.9.3-build.patch @@ -0,0 +1,35 @@ +--- Makefile.orig 2009-07-15 23:17:24.000000000 -0400 ++++ Makefile 2009-07-15 23:19:21.000000000 -0400 +@@ -2,8 +2,11 @@ + PROGRAM = picpuz + VERSION = 1.9.3 + 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)\" -DBINDIR=\"$(BINDIR)\" `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)\"" -D "BINDIR=\"$(BINDIR)\"" ++ $(CXX) $(CXXFLAGS) -c zfuncs.cpp + + + install: $(PROGRAM) diff --git a/games-puzzle/picpuz/picpuz-1.9.3.ebuild b/games-puzzle/picpuz/picpuz-1.9.3.ebuild new file mode 100644 index 000000000000..352e6a60d736 --- /dev/null +++ b/games-puzzle/picpuz/picpuz-1.9.3.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.3.ebuild,v 1.1 2009/07/16 06:15:58 mr_bones_ 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 +} |