summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-roguelike/slashem')
-rw-r--r--games-roguelike/slashem/ChangeLog6
-rw-r--r--games-roguelike/slashem/Manifest4
-rw-r--r--games-roguelike/slashem/slashem-0.0.648.ebuild64
3 files changed, 45 insertions, 29 deletions
diff --git a/games-roguelike/slashem/ChangeLog b/games-roguelike/slashem/ChangeLog
index 0ed22c205ef7..c900fa50a748 100644
--- a/games-roguelike/slashem/ChangeLog
+++ b/games-roguelike/slashem/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-roguelike/slashem
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/slashem/ChangeLog,v 1.4 2004/03/15 16:28:34 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/slashem/ChangeLog,v 1.5 2004/03/31 06:33:27 mr_bones_ Exp $
+
+ 30 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> slashem-0.0.648.ebuild:
+ virtual/x11; error check sed; tidy DEPEND; tidy use; append-flags into
+ src_unpack
15 Mar 2004; David Holm <dholm@gentoo.org> slashem-0.0.648.ebuild:
Added to ~ppc.
diff --git a/games-roguelike/slashem/Manifest b/games-roguelike/slashem/Manifest
index dd30532f1e8d..6a179e52bc00 100644
--- a/games-roguelike/slashem/Manifest
+++ b/games-roguelike/slashem/Manifest
@@ -1,5 +1,5 @@
-MD5 7d62107c0a8ea887cf875caad6e01dad ChangeLog 652
-MD5 c4b0caafc73573c8bc37dac819765d3a slashem-0.0.648.ebuild 4489
+MD5 6b5c405285653daafc692ce0115db701 ChangeLog 822
+MD5 7577f5f7ad799cce0d80ba0cb99d39a3 slashem-0.0.648.ebuild 4539
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
MD5 7042d07dab18e8ce6bf5f99c2497db44 files/0.0.6E4F8-errno.patch 4788
MD5 c0702cf01cb9b34fb41418616181e7e8 files/0.0.6E4F8-gentoo-paths.patch 818
diff --git a/games-roguelike/slashem/slashem-0.0.648.ebuild b/games-roguelike/slashem/slashem-0.0.648.ebuild
index 5cc96a77050f..fbca3046edbd 100644
--- a/games-roguelike/slashem/slashem-0.0.648.ebuild
+++ b/games-roguelike/slashem/slashem-0.0.648.ebuild
@@ -1,13 +1,12 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/slashem/slashem-0.0.648.ebuild,v 1.5 2004/03/15 16:28:35 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/slashem/slashem-0.0.648.ebuild,v 1.6 2004/03/31 06:33:28 mr_bones_ Exp $
-inherit games eutils flag-o-matic
-append-flags -I../include -I/usr/X11R6/include
+inherit eutils flag-o-matic games
-SE_VER=0.0.6E4F8
-SE_PN=se006e4f8.tar.gz
-SE_CONF=conf111s.tar.gz
+SE_VER="0.0.6E4F8"
+SE_PN="se006e4f8.tar.gz"
+SE_CONF="conf111s.tar.gz"
DESCRIPTION="Super Lotsa Added Stuff Hack - Extended Magic. A Nethack Variant."
HOMEPAGE="http://www.slashem.org/"
@@ -20,24 +19,29 @@ SLOT="0"
KEYWORDS="x86 amd64 ~ppc"
IUSE="X qt gnome gtk"
-DEPEND="virtual/glibc
- dev-util/yacc
+RDEPEND="virtual/glibc
>=sys-libs/ncurses-5.2-r5
- X? ( x11-base/xfree )
+ X? ( virtual/x11 )
qt? ( =x11-libs/qt-2* )
gnome? ( >=gnome-base/gnome-libs-1.4.1.4-r2 )
gtk? ( =x11-libs/gtk+-1.2* )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4
+ dev-util/yacc"
HACKDIR=${GAMES_STATEDIR}/${PN}
S=${WORKDIR}/slashem-${SE_VER}
src_unpack() {
+ append-flags -I../include -I/usr/X11R6/include
unpack ${SE_PN}
epatch ${FILESDIR}/${SE_VER}-makefile.patch
epatch ${FILESDIR}/${SE_VER}-errno.patch
cd ${S}
epatch ${FILESDIR}/${SE_VER}-gentoo-paths.patch
- sed -i "s:GENTOO_STATEDIR:${GAMES_STATEDIR}/${PN}:" include/unixconf.h
+ sed -i \
+ -e "s:GENTOO_STATEDIR:${GAMES_STATEDIR}/${PN}:" include/unixconf.h \
+ || die "sed include/unixconf.h failed"
# This copies the /sys/unix Makefile.*s to their correct places for
# seding and compiling.
@@ -50,18 +54,24 @@ src_unpack() {
./config RedHat ../..
./config FHS20 ../..
- if [ `use X` ] ; then
+ if use X ; then
./config X11 ../.. || die "X config"
- [ `use qt` ] && { ./config qt ../.. || die "qt config"; }
- [ `use gtk` ] && { ./config gtk ../.. || die "gtk config"; }
- [ `use gnome` ] && { ./config gnome ../.. || die "gnome config"; }
+ use qt && { ./config qt ../.. || die "qt config"; }
+ use gtk && { ./config gtk ../.. || die "gtk config"; }
+ use gnome && { ./config gnome ../.. || die "gnome config"; }
fi
cd ${S}
- sed -i -e "s:^\(\# define HACKDIR \).*:\1 \"${HACKDIR}\":" include/config.h || die "config.h sed"
+ sed -i \
+ -e "s:^\(\# define HACKDIR \).*:\1 \"${HACKDIR}\":" include/config.h \
+ || die "config.h sed"
sed -i -e "s:^\(CFLAGS =\).*:\1 ${CFLAGS}:" src/Makefile || die "src/makefile sed"
- sed -i -e "s:^\(FILE_AREA_UNSHARE =\).*:\1 ${GAMES_LIBDIR}/${PN}:" Makefile || die "makefile sed"
- sed -i -e "s:^\(\#define FILE_AREA_UNSHARE \).*:\1\"${GAMES_LIBDIR}/${PN}/\":" include/unixconf.h || die "unixconf.h sed"
+ sed -i \
+ -e "s:^\(FILE_AREA_UNSHARE =\).*:\1 ${GAMES_LIBDIR}/${PN}:" Makefile \
+ || die "makefile sed"
+ sed -i \
+ -e "s:^\(\#define FILE_AREA_UNSHARE \).*:\1\"${GAMES_LIBDIR}/${PN}/\":" include/unixconf.h \
+ || die "unixconf.h sed"
}
src_compile() {
@@ -91,7 +101,7 @@ src_install() {
newgamesbin util/recover recover-slashem
- if [ `use X` ] ; then
+ if use X ; then
# install slashem fonts
dodir ${GAMES_DATADIR}/${PN}/fonts
cd ${S}/win/X11
@@ -104,25 +114,27 @@ src_install() {
# copy slashem X application defaults
cd ${S}/win/X11
- cp SlashEM.ad SlashEM.ad.orig
- sed -e 's/^\(SlashEM\*font:\).*/\1 fixed/' \
+ sed -i \
+ -e 's/^\(SlashEM\*font:\).*/\1 fixed/' \
-e 's/^\(SlashEM\*map\*font:\).*/\1 fixed/' \
-e 's:^!\(SlashEM.tile_file.*\):\1:' \
- SlashEM.ad.orig >SlashEM.ad || die "Patching SlashEM.ad for X failed"
+ SlashEM.ad \
+ || die "Patching SlashEM.ad for X failed"
cp SlashEM.ad SlashEM
insinto /etc/X11/app-defaults
- newins SlashEM.ad SlashEM || die "Failed to install SlashEM X app defaults"
+ newins SlashEM.ad SlashEM \
+ || die "Failed to install SlashEM X app defaults"
fi
insinto ${GAMES_DATADIR}/${PN}
doins ${FILESDIR}/dot.slashemrc
local windowtypes="tty"
- [ `use gnome` ] && windowtypes="${windowtypes} gnome"
- [ `use qt` ] && windowtypes="${windowtypes} qt"
- [ `use X` ] && windowtypes="${windowtypes} x11"
- [ `use gtk` ] && windowtypes="${windowtypes} gtk"
+ use gnome && windowtypes="${windowtypes} gnome"
+ use qt && windowtypes="${windowtypes} qt"
+ use X && windowtypes="${windowtypes} x11"
+ use gtk && windowtypes="${windowtypes} gtk"
set -- ${windowtypes}
dosed "s:GENTOO_WINDOWTYPES:${windowtypes}:" ${GAMES_DATADIR}/${PN}/dot.slashemrc
insinto /etc/skel