diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2009-06-24 23:39:15 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2009-06-24 23:39:15 +0000 |
commit | 2e7b8a0d35d098d658ce2198781862879f25e44c (patch) | |
tree | c0f6ab6b727628ad9a19961ec9354440f16618c8 /games-arcade | |
parent | Automated update of use.local.desc (diff) | |
download | gentoo-2-2e7b8a0d35d098d658ce2198781862879f25e44c.tar.gz gentoo-2-2e7b8a0d35d098d658ce2198781862879f25e44c.tar.bz2 gentoo-2-2e7b8a0d35d098d658ce2198781862879f25e44c.zip |
EAPI=2; tidy; add patch for building with glibc210 from Martin Väth (bug #274833)
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/emilia-pinball/ChangeLog | 9 | ||||
-rw-r--r-- | games-arcade/emilia-pinball/emilia-pinball-0.3.1.ebuild | 24 | ||||
-rw-r--r-- | games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch | 13 |
3 files changed, 34 insertions, 12 deletions
diff --git a/games-arcade/emilia-pinball/ChangeLog b/games-arcade/emilia-pinball/ChangeLog index 2553bf7958d0..d32ff80fedc2 100644 --- a/games-arcade/emilia-pinball/ChangeLog +++ b/games-arcade/emilia-pinball/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-arcade/emilia-pinball -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/emilia-pinball/ChangeLog,v 1.15 2008/02/29 18:55:23 carlo Exp $ +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/emilia-pinball/ChangeLog,v 1.16 2009/06/24 23:39:15 mr_bones_ Exp $ + + 24 Jun 2009; Michael Sterrett <mr_bones_@gentoo.org> + +files/emilia-pinball-0.3.1-glibc210.patch, emilia-pinball-0.3.1.ebuild: + EAPI=2; tidy; add patch for building with glibc210 from Martin Väth (bug + #274833) 29 Feb 2008; Carsten Lohrke <carlo@gentoo.org> emilia-pinball-0.3.1.ebuild: diff --git a/games-arcade/emilia-pinball/emilia-pinball-0.3.1.ebuild b/games-arcade/emilia-pinball/emilia-pinball-0.3.1.ebuild index b79517ee32a0..917e173874b6 100644 --- a/games-arcade/emilia-pinball/emilia-pinball-0.3.1.ebuild +++ b/games-arcade/emilia-pinball/emilia-pinball-0.3.1.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/emilia-pinball/emilia-pinball-0.3.1.ebuild,v 1.14 2008/02/29 18:55:23 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-arcade/emilia-pinball/emilia-pinball-0.3.1.ebuild,v 1.15 2009/06/24 23:39:15 mr_bones_ Exp $ +EAPI=2 inherit eutils games MY_PN=${PN/emilia-/} @@ -17,24 +18,27 @@ IUSE="" RDEPEND="virtual/opengl x11-libs/libSM - media-libs/libsdl - media-libs/sdl-image - media-libs/sdl-mixer" + media-libs/libsdl[opengl,video,X] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis]" DEPEND="${RDEPEND} x11-libs/libXt" S=${WORKDIR}/${MY_P} +PATCHES=( "${FILESDIR}"/${P}-glibc210.patch ) + +src_configure() { + egamesconf --with-x +} + src_compile() { - egamesconf \ - --with-x \ - || die emake -j1 CXXFLAGS="${CXXFLAGS}" || die "emake failed" } src_install() { dodoc README || die "dodoc failed" - make DESTDIR="${D}" install || die "make install 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)" @@ -45,6 +49,6 @@ src_install() { -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" ${PN} + make_desktop_entry emilia-pinball "Emilia pinball" prepgamesdirs } diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch new file mode 100644 index 000000000000..800dbeae21a7 --- /dev/null +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch @@ -0,0 +1,13 @@ +--- base/Config.cpp ++++ base/Config.cpp +@@ -423,8 +423,8 @@ + m_sDataDir = string(EM_DATADIR) + "/"; + m_sExeDir = "./"; + if ( *( m_sDataDir.c_str() ) != '/' ) { +- char* ptr=0; +- char* ptrw = 0; ++ const char* ptr=0; ++ const char* ptrw = 0; + //cout<<"relative to exe file"<<endl; + ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32 + #ifdef WIN32 |