summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-12-01 07:52:26 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-12-01 07:52:26 +0000
commit1eb24555ccef432f96e37e46419739c30170a201 (patch)
tree44ab6480bbb31ae9f3e2ea74b675ef036a6a109c
parentold (diff)
downloadgentoo-2-1eb24555ccef432f96e37e46419739c30170a201.tar.gz
gentoo-2-1eb24555ccef432f96e37e46419739c30170a201.tar.bz2
gentoo-2-1eb24555ccef432f96e37e46419739c30170a201.zip
old
(Portage version: 2.1.9.24/cvs/Linux i686)
-rw-r--r--games-roguelike/noegnud-nethack/files/noegnud-nethack-0.8.2-gcc41.patch11
-rw-r--r--games-roguelike/noegnud-nethack/noegnud-nethack-0.8.2.ebuild62
-rw-r--r--games-roguelike/noegnud-nethack/noegnud-nethack-0.8.3.ebuild7
3 files changed, 5 insertions, 75 deletions
diff --git a/games-roguelike/noegnud-nethack/files/noegnud-nethack-0.8.2-gcc41.patch b/games-roguelike/noegnud-nethack/files/noegnud-nethack-0.8.2-gcc41.patch
deleted file mode 100644
index 7742a2d3657b..000000000000
--- a/games-roguelike/noegnud-nethack/files/noegnud-nethack-0.8.2-gcc41.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ../noegnud/noegnud_gui.c.old 2007-01-18 11:43:45.004148588 +0100
-+++ ../noegnud/noegnud_gui.c 2007-01-18 11:43:59.563935164 +0100
-@@ -627,7 +627,7 @@
- //button=(noegnud_gui_tbutton *)noegnud_gui_create_window(parent,x,y,width,height,(sizeof(noegnud_gui_twindow)-sizeof(noegnud_gui_twidget))+datasize);
-
- text=noegnud_gui_create_text(
-- (noegnud_gui_twidget *)button=(noegnud_gui_tbutton *)noegnud_gui_create_window(
-+ /*(noegnud_gui_twidget *)*/button=(noegnud_gui_tbutton *)noegnud_gui_create_window(
- parent,
- x,y,
- width,height,
diff --git a/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.2.ebuild b/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.2.ebuild
deleted file mode 100644
index 38a7820441a9..000000000000
--- a/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.2.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.2.ebuild,v 1.11 2007/04/09 19:55:56 nyhm Exp $
-
-inherit eutils games
-
-VAR_NAME=nethack
-VAR_SNAME=nh
-VAR_DVER=3.4.2
-VAR_VER=${VAR_DVER//.}
-VAR_TAR=${VAR_NAME}-${VAR_VER}.tgz
-DESCRIPTION="an alternate 2D/3D graphical user interface for NetHack"
-HOMEPAGE="http://www.linuxgames.co.za/noeGNUd/"
-SRC_URI="mirror://sourceforge/noegnud/noegnud-${PV}_linux_src-minimal.tar.bz2
- mirror://sourceforge/${VAR_NAME}/${VAR_TAR}"
-
-LICENSE="nethack"
-SLOT="0"
-KEYWORDS="~amd64 ppc x86"
-IUSE=""
-
-DEPEND="media-libs/libsdl
- dev-util/yacc"
-RDEPEND="media-libs/libsdl
- media-libs/sdl-image
- media-libs/sdl-mixer
- virtual/opengl
- games-roguelike/noegnud-data"
-
-S="${WORKDIR}/noegnud-${PV}/variants"
-
-src_unpack() {
- unpack noegnud-${PV}_linux_src-minimal.tar.bz2
- ln -s "${DISTDIR}/${VAR_TAR}" noegnud-${PV}/variants/tarballs/${VAR_TAR}
- cd "${S}"
- epatch "${FILESDIR}/${P}-gcc41.patch"
-}
-
-src_compile() {
- emake ${VAR_SNAME}${VAR_VER} PREFIX="${GAMES_PREFIX}" || die "emake failed"
-}
-
-src_install() {
- emake install_${VAR_SNAME}${VAR_VER} PREFIX="${D}/${GAMES_PREFIX}" \
- || die "emake install failed"
-
- cd "${D}/${GAMES_BINDIR}"
- # we do this cause sometimes the installed package thinks it's a diff version :)
- local tver="`ls noegnud-*-${VAR_NAME}-${VAR_DVER} | cut -d- -f2`"
- rm noegnud-${VAR_NAME}-${VAR_DVER}
- mv noegnud-${tver}-${VAR_NAME}-${VAR_DVER} noegnud-${VAR_NAME}
- dosed "/^HACKDIR/s:=.*:=$(games_get_libdir)/noegnud-${tver}/${VAR_NAME}-${VAR_DVER}:" "${GAMES_BINDIR}/noegnud-${VAR_NAME}"
-
- dodir "${GAMES_DATADIR}/noegnud_data"
- cp -r "${S}/../data/"* "${D}/${GAMES_DATADIR}/noegnud_data/"
- dosym "${GAMES_DATADIR}/noegnud_data" "$(games_get_libdir)/noegnud-${tver}/data"
-
- keepdir "$(games_get_libdir)/noegnud-${tver}/${VAR_NAME}-${VAR_DVER}/save"
-
- prepgamesdirs
- chmod -R g+w "${D}/$(games_get_libdir)/noegnud-${tver}/${VAR_NAME}-${VAR_DVER}"
-}
diff --git a/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.3.ebuild b/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.3.ebuild
index 67c73c4c6014..3cc715c73673 100644
--- a/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.3.ebuild
+++ b/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.3.ebuild
@@ -1,7 +1,8 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.3.ebuild,v 1.4 2010/06/22 13:47:54 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/noegnud-nethack/noegnud-nethack-0.8.3.ebuild,v 1.5 2010/12/01 07:52:26 mr_bones_ Exp $
+EAPI=2
inherit eutils games
VAR_NAME=nethack
@@ -32,7 +33,9 @@ S=${WORKDIR}/noegnud-${PV}/variants
src_unpack() {
unpack noegnud-${PV}_linux_src-minimal.tar.bz2
ln -s "${DISTDIR}"/${VAR_TAR} noegnud-${PV}/variants/tarballs/${VAR_TAR}
- cd "${S}"
+}
+
+src_prepare() {
epatch "${FILESDIR}"/${P}-gcc41.patch
}