summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-arcade/emilia-pinball/Manifest2
-rw-r--r--games-arcade/emilia-pinball/emilia-pinball-9999.ebuild71
-rw-r--r--games-arcade/emilia-pinball/metadata.xml8
-rw-r--r--profiles/package.mask4
4 files changed, 85 insertions, 0 deletions
diff --git a/games-arcade/emilia-pinball/Manifest b/games-arcade/emilia-pinball/Manifest
new file mode 100644
index 0000000..2457502
--- /dev/null
+++ b/games-arcade/emilia-pinball/Manifest
@@ -0,0 +1,2 @@
+EBUILD emilia-pinball-9999.ebuild 2065 RMD160 543640367a8fcf393d58318eb57c5fff7240b800 SHA1 5667d12d265d3bd95992e4d766e7a411061bc7b6 SHA256 dcdbee255155ad160bd40edd6efaf0096245eb2da079a84fb5dd13aafcf3111b
+MISC metadata.xml 219 RMD160 cafc8bc8fcb00b466a70e7279e62fb20ce5c37fd SHA1 135c85ccb6031d266d555a3066197039aa2f002a SHA256 154d629a9e126f4bafb866319a1b1076d83b8d4a69fd1043888140f7e858466c
diff --git a/games-arcade/emilia-pinball/emilia-pinball-9999.ebuild b/games-arcade/emilia-pinball/emilia-pinball-9999.ebuild
new file mode 100644
index 0000000..ab05dd7
--- /dev/null
+++ b/games-arcade/emilia-pinball/emilia-pinball-9999.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+[[ ${PV} = 9999* ]] && GIT="git-2"
+EGIT_REPO_URI="git://pinball.git.sourceforge.net/gitroot/pinball/pinball"
+
+inherit games autotools eutils ${GIT}
+
+DESCRIPTION="SDL OpenGL pinball game"
+HOMEPAGE="http://pinball.sourceforge.net/"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ x11-libs/libSM
+ media-libs/libsdl[opengl,video,X]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ >=sys-devel/libtool-2.2.6b"
+DEPEND="${RDEPEND}
+ x11-libs/libXt"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i -e '/dnl/d' {src,test}/Makefile.am || die #334899
+ sed -i -e '/ACLOCAL_AMFLAGS= -I libltdl.m4/d' Makefile.am || die
+ sed -i -e '/AM_CONFIG_HEADER.config.h./d' configure.ac || die
+ sed -i -e '/AC_CONFIG_AUX_DIR..libltdl.config../d' configure.ac || die
+ sed -i -e '/AC_LIBTOOL_DLOPEN/d' configure.ac || die
+ sed -i -e '/LT_CONFIG_LTDL_DIR..libltdl../d' configure.ac || die
+ sed -i -e '/LT_INIT/d' configure.ac || die
+ sed -i -e '/LTDL_INIT/d' configure.ac || die
+ sed -i -e '/AC_CONFIG_MACRO_DIR..libltdl..m4../d' configure.ac || die
+ sed -i -e '/AC_SUBST.INCLTDL./d' configure.ac || die
+ sed -i -e 's/AC_SUBST.LIBLTDL./AC_PROG_RANLIB/' configure.ac || die
+
+ rm -rf libltdl
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf --with-x
+}
+
+src_compile() {
+ emake CXXFLAGS="${CXXFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dodoc README || die "dodoc failed"
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dosym "${GAMES_BINDIR}"/pinball "${GAMES_BINDIR}"/emilia-pinball
+ mv "${D}/${GAMES_PREFIX}/include" "${D}/usr/" \
+ || die "mv failed (include)"
+ dodir /usr/bin
+ mv "${D}/${GAMES_BINDIR}/pinball-config" "${D}/usr/bin/" \
+ || die "mv failed (bin)"
+ sed -i \
+ -e 's:-I${prefix}/include/pinball:-I/usr/include/pinball:' \
+ "${D}"/usr/bin/pinball-config || die "sed failed"
+ newicon data/pinball.xpm ${PN}.xpm
+ make_desktop_entry emilia-pinball "Emilia pinball"
+ prepgamesdirs
+}
diff --git a/games-arcade/emilia-pinball/metadata.xml b/games-arcade/emilia-pinball/metadata.xml
new file mode 100644
index 0000000..63b9784
--- /dev/null
+++ b/games-arcade/emilia-pinball/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>nikai@nikai.net</email>
+</maintainer>
+</pkgmetadata>
diff --git a/profiles/package.mask b/profiles/package.mask
index 286dd09..16c2530 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -1,3 +1,7 @@
+# Nicolas Kaiser <nikai@nikai.net> (05 Jun 2011)
+# emilia-pinball live ebuild. Use at your own risk.
+~games-arcade/emilia-pinball-9999
+
# Nicolas Kaiser <nikai@nikai.net> (08 Nov 2010)
# claws-mail live ebuild. Use at your own risk.
~mail-client/claws-mail-9999