summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Unbehaun <frostworks@gmx.de>2009-10-13 08:56:41 +0200
committerMarcel Unbehaun <frostworks@gmx.de>2009-10-13 08:56:41 +0200
commit93da08bd64c764f29e230f5e8cd9aa0c0b815365 (patch)
tree704b71f2a776762b810660376162d3415fcc8aca /games-puzzle
parent(dev-libs/box2d) initial box2d-2.0.1.ebuild (diff)
downloadgamerlay-93da08bd64c764f29e230f5e8cd9aa0c0b815365.tar.gz
gamerlay-93da08bd64c764f29e230f5e8cd9aa0c0b815365.tar.bz2
gamerlay-93da08bd64c764f29e230f5e8cd9aa0c0b815365.zip
(games-puzzle/numptyphysics) initial numptyphysics-142.ebuild based on Bruno 'brubru' Tarquinis ebuild from bgo #259181
(games-puzzle/numptyphysics) new Manifest (games-puzzle/numptyphysics) new files/numptyphysics-142-ownbox2d.patch (games-puzzle/numptyphysics) metadata.xml
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/numptyphysics/Manifest3
-rw-r--r--games-puzzle/numptyphysics/files/numptyphysics-142-ownbox2d.patch102
-rw-r--r--games-puzzle/numptyphysics/metadata.xml9
-rw-r--r--games-puzzle/numptyphysics/numptyphysics-142.ebuild48
4 files changed, 162 insertions, 0 deletions
diff --git a/games-puzzle/numptyphysics/Manifest b/games-puzzle/numptyphysics/Manifest
new file mode 100644
index 0000000..aee91a6
--- /dev/null
+++ b/games-puzzle/numptyphysics/Manifest
@@ -0,0 +1,3 @@
+AUX numptyphysics-142-ownbox2d.patch 3871 RMD160 ef753719ba2fca07956e5ed93339c936c9374ed8 SHA1 9c31636a0dbdf10015a34e48a40243ceed56e5d8 SHA256 65eb3debe59925bd45788861fee5db7405d87c89de8115840454cc00adfc616f
+EBUILD numptyphysics-142.ebuild 1060 RMD160 0b4cfa62fa3e33818ed94e096e87517e1e97defd SHA1 e0d00f0f5970042098babe91cd65b7e331bff10a SHA256 61408b5bb3aaf19fd2dcf2bbdc6ac38a84984eb39639cbdac5af2bae694d06ee
+MISC metadata.xml 249 RMD160 220cde0fc1a8d7d355705f0f6772bd8d77cdc17a SHA1 34b33eb8d24cd8bfef2ddfb8e80334fd77cc9488 SHA256 3875fd5008d7f5bfe7f3cf7bf330c209a5034f5988d37c1699fb3be35a7be906
diff --git a/games-puzzle/numptyphysics/files/numptyphysics-142-ownbox2d.patch b/games-puzzle/numptyphysics/files/numptyphysics-142-ownbox2d.patch
new file mode 100644
index 0000000..1974966
--- /dev/null
+++ b/games-puzzle/numptyphysics/files/numptyphysics-142-ownbox2d.patch
@@ -0,0 +1,102 @@
+diff -Naur trunkO/Makefile.am trunkO-p/Makefile.am
+--- trunkO/Makefile.am 2009-10-12 17:31:07.000000000 +0200
++++ trunkO-p/Makefile.am 2009-10-12 18:25:01.000000000 +0200
+@@ -1,6 +1,6 @@
+ bin_PROGRAMS = numptyphysics
+-noinst_LIBRARIES = libbox2d.a
+-INCLUDES = -IBox2D/Include
++noinst_LIBRARIES =
++INCLUDES = -I/usr/include/Box2D/
+
+ numptyphysicsdir = $(datadir)/numptyphysics
+
+@@ -33,7 +33,7 @@
+ OsWin32.cpp
+
+ numptyphysics_CPPFLAGS = -IXX $(SDL_CFLAGS) $(HILDON_CFLAGS)
+-numptyphysics_LDADD = libbox2d.a $(SDL_LIBS) $(HILDON_LIBS)
++numptyphysics_LDADD = -lbox2d $(SDL_LIBS) $(HILDON_LIBS)
+
+ numptyphysics_DATA = \
+ data/C01_Tutorial.npz \
+@@ -47,37 +47,3 @@
+ data/theend.png \
+ data/femkeklaver.ttf
+
+-
+-libbox2d_a_SOURCES = \
+- Box2D/Source/Collision/b2Distance.cpp \
+- Box2D/Source/Collision/b2TimeOfImpact.cpp \
+- Box2D/Source/Collision/b2CollideCircle.cpp \
+- Box2D/Source/Collision/b2CollidePoly.cpp \
+- Box2D/Source/Collision/Shapes/b2PolygonShape.cpp \
+- Box2D/Source/Collision/Shapes/b2CircleShape.cpp \
+- Box2D/Source/Collision/Shapes/b2Shape.cpp \
+- Box2D/Source/Collision/b2PairManager.cpp \
+- Box2D/Source/Collision/b2Collision.cpp \
+- Box2D/Source/Collision/b2BroadPhase.cpp \
+- Box2D/Source/Dynamics/b2WorldCallbacks.cpp \
+- Box2D/Source/Dynamics/Joints/b2PrismaticJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2MouseJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2GearJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2Joint.cpp \
+- Box2D/Source/Dynamics/Joints/b2PulleyJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2DistanceJoint.cpp \
+- Box2D/Source/Dynamics/Joints/b2RevoluteJoint.cpp \
+- Box2D/Source/Dynamics/Contacts/b2CircleContact.cpp \
+- Box2D/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp \
+- Box2D/Source/Dynamics/Contacts/b2Contact.cpp \
+- Box2D/Source/Dynamics/Contacts/b2PolyContact.cpp \
+- Box2D/Source/Dynamics/Contacts/b2ContactSolver.cpp \
+- Box2D/Source/Dynamics/b2Island.cpp \
+- Box2D/Source/Dynamics/b2Body.cpp \
+- Box2D/Source/Dynamics/b2ContactManager.cpp \
+- Box2D/Source/Dynamics/b2World.cpp \
+- Box2D/Source/Common/b2BlockAllocator.cpp \
+- Box2D/Source/Common/b2StackAllocator.cpp \
+- Box2D/Source/Common/b2Settings.cpp \
+- Box2D/Source/Common/b2Math.cpp
+-
+diff -Naur trunkO/Makefile.in trunkO-p/Makefile.in
+--- trunkO/Makefile.in 2009-10-12 17:31:07.000000000 +0200
++++ trunkO-p/Makefile.in 2009-10-12 18:16:05.000000000 +0200
+@@ -87,7 +87,7 @@
+ numptyphysics-OsWin32.$(OBJEXT)
+ numptyphysics_OBJECTS = $(am_numptyphysics_OBJECTS)
+ am__DEPENDENCIES_1 =
+-numptyphysics_DEPENDENCIES = libbox2d.a $(am__DEPENDENCIES_1) \
++numptyphysics_DEPENDENCIES = -lbox2d $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
+ DEFAULT_INCLUDES = -I.@am__isrc@
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+@@ -97,8 +97,8 @@
+ CXXLD = $(CXX)
+ CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+ -o $@
+-SOURCES = $(libbox2d_a_SOURCES) $(numptyphysics_SOURCES)
+-DIST_SOURCES = $(libbox2d_a_SOURCES) $(numptyphysics_SOURCES)
++SOURCES = $(numptyphysics_SOURCES)
++DIST_SOURCES = $(numptyphysics_SOURCES)
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+ am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+@@ -230,8 +230,8 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-noinst_LIBRARIES = libbox2d.a
+-INCLUDES = -IBox2D/Include
++noinst_LIBRARIES =
++INCLUDES = -I/usr/include/Box2D
+ numptyphysicsdir = $(datadir)/numptyphysics
+ desktopentry_DATA = data/numptyphysics.desktop
+ serviceentry_DATA = data/numptyphysics.service
+@@ -261,7 +261,7 @@
+ OsWin32.cpp
+
+ numptyphysics_CPPFLAGS = -IXX $(SDL_CFLAGS) $(HILDON_CFLAGS)
+-numptyphysics_LDADD = libbox2d.a $(SDL_LIBS) $(HILDON_LIBS)
++numptyphysics_LDADD = -lbox2d $(SDL_LIBS) $(HILDON_LIBS)
+ numptyphysics_DATA = \
+ data/C01_Tutorial.npz \
+ data/C10_Standard.npz \
diff --git a/games-puzzle/numptyphysics/metadata.xml b/games-puzzle/numptyphysics/metadata.xml
new file mode 100644
index 0000000..4e4714e
--- /dev/null
+++ b/games-puzzle/numptyphysics/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>frostworks@gmx.de</email>
+ <name>Marcel Unbehaun</name>
+</maintainer>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-puzzle/numptyphysics/numptyphysics-142.ebuild b/games-puzzle/numptyphysics/numptyphysics-142.ebuild
new file mode 100644
index 0000000..55c320a
--- /dev/null
+++ b/games-puzzle/numptyphysics/numptyphysics-142.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit games subversion
+
+ESVN_REPO_URI="https://garage.maemo.org/svn/numptyphysics/trunk"
+if [[ "$PV" != "9999" ]] ; then
+ ESVN_REVISION="$PV"
+fi
+
+DESCRIPTION="a drawing puzzle game in the spirit of Crayon Physics using the same excellent Box2D engine"
+HOMEPAGE="http://numptyphysics.garage.maemo.org/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-image[png]
+ media-libs/sdl-ttf
+ x11-libs/libX11
+ dev-libs/box2d
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch ${FILESDIR}/"${P}-ownbox2d.patch"
+ sed -i -e "s:/usr/share/numptyphysics:"${GAMES_DATADIR}"/"${PN}"/:g" -i Config.h || die 'sed failed'
+}
+
+src_configure() {
+ egamesconf --disable-hildon || die "egamesconf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+ doicon data/icon64/${PN}.png
+ make_desktop_entry "${PN}" "${PN}"
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_postinst
+}