summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-roguelike/slashem
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-roguelike/slashem')
-rw-r--r--games-roguelike/slashem/Manifest2
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/GTK.configure22
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/Gentoo.configure5
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/Proxy.configure24
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/X11.configure18
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/dot.slashemrc112
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/gnome.configure21
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/makefile.patch27
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/opengl.configure10
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/prepare-gui.configure67
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/proxy.slashemrc4
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/qt.configure23
-rw-r--r--games-roguelike/slashem/files/0.0.7E7/sdl.configure16
-rw-r--r--games-roguelike/slashem/metadata.xml8
-rw-r--r--games-roguelike/slashem/slashem-0.0.772.ebuild168
15 files changed, 527 insertions, 0 deletions
diff --git a/games-roguelike/slashem/Manifest b/games-roguelike/slashem/Manifest
new file mode 100644
index 000000000000..40e43ac64f3a
--- /dev/null
+++ b/games-roguelike/slashem/Manifest
@@ -0,0 +1,2 @@
+DIST conf12s.tar.gz 4788 SHA256 76b5d0527434276db4876610651a0dc73698012b1cf93449c63a516355cd06f5
+DIST se007e7f2.tar.gz 5218698 SHA256 a520817f1fe19302f27db22a9c1762c27a669f7491e84bd22790ea4f67136b49
diff --git a/games-roguelike/slashem/files/0.0.7E7/GTK.configure b/games-roguelike/slashem/files/0.0.7E7/GTK.configure
new file mode 100644
index 000000000000..49c14fe6e5a0
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/GTK.configure
@@ -0,0 +1,22 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ undefine GNOME_GRAPHICS
+ define GTK_GRAPHICS
+ define GTK_PROXY
+END
+configure src_Makefile $toplevel/src/Makefile
+BEGIN
+ undefine WINGNOMESRC
+ undefine WINGNOMEOBJ
+ undefine WINGNOMELIB
+ define WINGTKSRC
+ define WINGTKOBJ
+ define WINGTKLIB
+END
+
+configure Makefile $toplevel/Makefile
+BEGIN
+ undefine CNF_SHARE_GNOMEND
+ define CNF_SHARE_GTKND
+ define CNF_SHARE_GTKPROXYND
+END
diff --git a/games-roguelike/slashem/files/0.0.7E7/Gentoo.configure b/games-roguelike/slashem/files/0.0.7E7/Gentoo.configure
new file mode 100644
index 000000000000..f10d73df2893
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/Gentoo.configure
@@ -0,0 +1,5 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ redefine COMPRESS \"/bin/gzip\"
+END
+
diff --git a/games-roguelike/slashem/files/0.0.7E7/Proxy.configure b/games-roguelike/slashem/files/0.0.7E7/Proxy.configure
new file mode 100644
index 000000000000..56e79cbf3fcb
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/Proxy.configure
@@ -0,0 +1,24 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ define PROXY_GRAPHICS
+END
+
+configure src_Makefile $toplevel/src/Makefile
+BEGIN
+ define WINPROXYSRC
+ define PROXYUTLSRC
+ define PROXYCOMSRC
+ define PROXYCLNTSRC
+
+ define WINPROXYOBJ
+ define PROXYUTLOBJ
+ define PROXYCOMOBJ
+ define PROXYCLNTOBJ
+
+ define WINPROXYLIB
+END
+
+configure Makefile $toplevel/Makefile
+BEGIN
+ define CNF_SHARE_PROXYND
+END
diff --git a/games-roguelike/slashem/files/0.0.7E7/X11.configure b/games-roguelike/slashem/files/0.0.7E7/X11.configure
new file mode 100644
index 000000000000..8c9e362eb9ff
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/X11.configure
@@ -0,0 +1,18 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ define X11_GRAPHICS
+END
+
+configure src_Makefile $toplevel/src/Makefile
+BEGIN
+ define WINX11SRC
+ define WINX11OBJ
+ define WINX11LIB
+ redefine WINX11LIB "-lXaw -lXmu -lXext -lXt -lXpm -lX11"
+END
+
+configure Makefile $toplevel/Makefile
+BEGIN
+ define CNF_SHARE_X11ND
+ redefine CNF_SHARE_X11ND "x11bigtiles x11tiles SlashEM.ad pet_mark.xbm rip.xpm"
+END
diff --git a/games-roguelike/slashem/files/0.0.7E7/dot.slashemrc b/games-roguelike/slashem/files/0.0.7E7/dot.slashemrc
new file mode 100644
index 000000000000..518e8d67addc
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/dot.slashemrc
@@ -0,0 +1,112 @@
+#
+# Slash'EM configuration file.
+#
+# Naming this file $(HOME)/.slashemrc (for UNIX) or setting the environment
+# variable SLASHEMOPTIONS to point to its full path name elsewhere tells
+# Slash'EM to use X11 windowing and fonts (provided the executable was
+# compiled with that ability).
+#
+# SET YOUR WINDOW TYPE
+# Your windowtype choices are: GENTOO_WINDOWTYPES
+#
+OPTIONS=windowtype:tty
+
+TILESET=name:Small, file:x11tiles
+TILESET=name:Big, file:x11bigtiles, transparent
+TILESET=name:Big 3D, file:x11big3dtiles, transparent, pseudo3D
+
+# These tile definitions are used by the SDL/GL interface
+TILESET=name:gl 3D, file:gltile64.png, transparent, pseudo3D
+TILESET=name:gl Big, file:gltile32.png, transparent
+TILESET=name:gl Small, file:gltile16.png, transparent
+
+OPTIONS=tiles:Big
+#
+#
+#OPTIONS=toptenwin,hilite_pet,color,number_pad:2,verbose,news
+#OPTIONS=confirm,fixinv,noautopickup,safe_pet,sortpack,tombstone
+#OPTIONS=fruit:pineapple,dogname:Dhairrhuwyth
+#OPTIONS=male,catname:Ghisteslwchlohm
+#
+# There are 17 object symbols and various graphics symbols.
+# The descriptions of these symbols can be found in dat/opthelp.
+#
+#
+# Font: nh10 (10x20)
+#
+#OBJECTS= 180 183 188 192 181 184 182 189 190 196 \
+# 191 194 193 187 185 186 195
+#
+#DUNGEON= 032 025 018 013 012 014 011 015 023 024 \
+# 022 021 128 129 130 131 132 035 035 133 \
+# 134 135 136 137 145 146 144 124 143 142 \
+# 143 141 140 149 150 031 031 147 148 031 \
+# 161 140
+#
+#TRAPS= 138 138 138 138 138 138 138 138 138 138 \
+# 138 138 138 138 138 139 138 138 138 138 \
+# 138 138
+#
+#EFFECTS= 151 152 153 154 155 156 157 158 \
+# 159 160 161 162 \
+# 163 164 165 166 167 168 169 170 \
+# 171 172 173 174 175 176 177 178 179 \
+# 171 172 173 174 175 176 177 178 179 \
+# 171 172 173 174 175 176 177 178 179 \
+# 171 172 173 174 175 176 177 178 179 \
+# 171 172 173 174 175 176 177 178 179 \
+# 171 172 173 174 175 176 177 178 179 \
+# 171 172 173 174 175 176 177 178 179
+#
+#
+# Font: ibm (8x14)
+#
+#OBJECTS= 207 210 215 219 208 211 209 216 217 223 \
+# 218 221 220 214 212 213 222
+#
+#DUNGEON= 032 128 129 130 131 132 133 134 135 136 \
+# 137 138 139 045 124 142 143 035 035 144 \
+# 145 146 147 148 155 156 227 124 154 153 \
+# 154 152 151 159 160 200 200 157 158 250 \
+# 170 151
+#
+#TRAPS= 149 149 149 149 149 149 149 149 149 149 \
+# 149 149 149 149 149 150 149 149 149 149 \
+# 149 149
+#
+#EFFECTS= 161 162 163 164 165 166 167 168 \
+# 169 170 171 172 \
+# 173 174 175 176 177 178 179 180 \
+# 181 182 183 184 185 186 187 188 189 \
+# 181 182 183 184 185 186 187 188 189 \
+# 181 182 183 184 185 186 187 188 189 \
+# 181 182 183 184 185 186 187 188 189 \
+# 181 182 183 184 185 186 187 188 189 \
+# 181 182 183 184 185 186 187 188 189 \
+# 181 182 183 184 185 186 187 188 189
+#
+#
+# Font: a "standard" font like 6x13
+# Note that this version is unlikely to work on a tty on a Unix system because
+# many of these characters are also control characters.
+#
+#DUNGEON = 032 025 018 013 012 014 011 015 023 024 \
+# 022 021 031 045 124 043 043 035 035 031 \
+# 035 001 060 062 060 062 019 124 092 035 \
+# 092 123 125 031 125 046 046 035 035 046 \
+# 127 125
+#
+#TRAPS= 094 094 094 094 094 094 094 094 094 094 \
+# 094 094 094 094 094 002 094 094 094 094 \
+# 094 094
+#
+#EFFECTS= 124 045 092 047 042 033 041 040 \
+# 048 035 064 042 \
+# 047 045 092 124 124 092 045 047 \
+# 047 064 092 064 064 064 092 064 047 \
+# 047 064 092 064 064 064 092 064 047 \
+# 047 064 092 064 064 064 092 064 047 \
+# 047 064 092 064 064 064 092 064 047 \
+# 047 064 092 064 064 064 092 064 047 \
+# 047 064 092 064 064 064 092 064 047 \
+# 047 064 092 064 064 064 092 064 047
diff --git a/games-roguelike/slashem/files/0.0.7E7/gnome.configure b/games-roguelike/slashem/files/0.0.7E7/gnome.configure
new file mode 100644
index 000000000000..a3178b28d04f
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/gnome.configure
@@ -0,0 +1,21 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ define GNOME_GRAPHICS
+ undefine GTK_GRAPHICS
+END
+
+configure src_Makefile $toplevel/src/Makefile
+BEGIN
+ undefine WINGTKSRC
+ undefine WINGTKOBJ
+ undefine WINGTKLIB
+ define WINGNOMESRC
+ define WINGNOMEOBJ
+ define WINGNOMELIB
+END
+
+configure Makefile $toplevel/Makefile
+BEGIN
+ undefine CNF_SHARE_GTKND
+ define CNF_SHARE_GNOMEND
+END
diff --git a/games-roguelike/slashem/files/0.0.7E7/makefile.patch b/games-roguelike/slashem/files/0.0.7E7/makefile.patch
new file mode 100644
index 000000000000..4f5af5534987
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/makefile.patch
@@ -0,0 +1,27 @@
+diff -Naurd slashem/sys/unix/Makefile.top slashem-0.0.7E6/sys/unix/Makefile.top
+--- slashem/sys/unix/Makefile.top 2003-12-02 13:46:08.000000000 +0200
++++ slashem-0.0.7E6/sys/unix/Makefile.top 2004-03-02 21:08:55.718790760 +0200
+@@ -290,7 +290,7 @@
+ $(MAKE) dofiles-$${target-nodlb}
+ cp src/$(GAME) $(FILE_AREA_UNSHARE)
+ cp util/recover $(FILE_AREA_UNSHARE)
+- cp dat/license doc/Guidebook.txt $(FILE_AREA_DOC)
++# cp dat/license doc/Guidebook.txt $(FILE_AREA_DOC)
+ # cp win/Qt/KDE/kslashem.kdelnk $(KDEDIR)/share/applnk/Games
+ -rm -f $(SHELLDIR)/$(GAME)
+ sed -e 's;/usr/games/lib/nethackdir;$(FILE_AREA_UNSHARE);' \
+@@ -302,10 +302,10 @@
+ $(CHGRP) $(GAMEGRP) $(GAME) recover )
+ chmod $(GAMEPERM) $(FILE_AREA_UNSHARE)/$(GAME)
+ chmod $(EXEPERM) $(FILE_AREA_UNSHARE)/recover
+- -( cd $(FILE_AREA_DOC) ; \
+- $(CHOWN) $(GAMEUID) license Guidebook.txt ; \
+- $(CHGRP) $(GAMEGRP) license Guidebook.txt ; \
+- chmod $(FILEPERM) license Guidebook.txt )
++# -( cd $(FILE_AREA_DOC) ; \
++# $(CHOWN) $(GAMEUID) license Guidebook.txt ; \
++# $(CHGRP) $(GAMEGRP) license Guidebook.txt ; \
++# chmod $(FILEPERM) license Guidebook.txt )
+ -$(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME)
+ $(CHGRP) $(GAMEGRP) $(SHELLDIR)/$(GAME)
+ chmod $(EXEPERM) $(SHELLDIR)/$(GAME)
diff --git a/games-roguelike/slashem/files/0.0.7E7/opengl.configure b/games-roguelike/slashem/files/0.0.7E7/opengl.configure
new file mode 100644
index 000000000000..37466c28655c
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/opengl.configure
@@ -0,0 +1,10 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ define GL_GRAPHICS
+END
+
+configure src_Makefile $toplevel/src/Makefile
+BEGIN
+ define WINGLLIB
+END
+
diff --git a/games-roguelike/slashem/files/0.0.7E7/prepare-gui.configure b/games-roguelike/slashem/files/0.0.7E7/prepare-gui.configure
new file mode 100644
index 000000000000..803bd67a7354
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/prepare-gui.configure
@@ -0,0 +1,67 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ undefine X11_GRAPHICS
+ undefine QT_GRAPHICS
+ undefine GTK_GRAPHICS
+ undefine GNOME_GRAPHICS
+ undefine SDL_GRAPHICS
+ undefine GL_GRAPHICS
+ undefine PROXY_GRAPHICS
+END
+
+configure src_Makefile $toplevel/src/Makefile
+BEGIN
+ undefine WINX11SRC
+ undefine WINX11OBJ
+ undefine WINX11LIB
+
+ undefine WINQTSRC
+ undefine WINQTOBJ
+ undefine WINQTLIB
+
+ undefine WINGTKSRC
+ undefine WINGTKOBJ
+ undefine WINGTKLIB
+
+ undefine WINGNOMESRC
+ undefine WINGNOMEOBJ
+ undefine WINGNOMELIB
+
+ undefine WINPROXYSRC
+ undefine PROXYUTLSRC
+ undefine PROXYCOMSRC
+ undefine PROXYCLNTSRC
+
+ undefine WINPROXYOBJ
+ undefine PROXYUTLOBJ
+ undefine PROXYCOMOBJ
+ undefine PROXYCLNTOBJ
+
+ undefine WINPROXYLIB
+
+ undefine WINGLSRC
+ undefine WINGLOBJ
+ undefine WINGLLIB
+ undefine WINSDLLIB
+
+ undefine WINSRC
+ undefine WINOBJ
+ undefine WINLIB
+ define -C "to support all standard windowing systems" WINSRC
+ define -C "to support all standard windowing systems" WINOBJ
+ define -C "to support all standard windowing systems" WINLIB
+END
+
+configure Makefile $toplevel/Makefile
+BEGIN
+ undefine CNF_SHARE_QTND
+ undefine CNF_SHARE_X11ND
+ undefine CNF_SHARE_GTKND
+ undefine CNF_SHARE_GTKPROXYND
+ undefine CNF_SHARE_GLND
+ undefine CNF_SHARE_GNOMEND
+ undefine CNF_SHARE_PROXYND
+ redefine CNF_SHARE_DATND " \$(CNF_SHARE_QTND) \$(CNF_SHARE_X11ND) \\\
+ \$(CNF_SHARE_GTKND) \$(CNF_SHARE_GTKPROXYND) \$(CNF_SHARE_GLND) \\\
+ \$(CNF_SHARE_GNOMEND) \$(CNF_SHARE_PROXYND) "
+END
diff --git a/games-roguelike/slashem/files/0.0.7E7/proxy.slashemrc b/games-roguelike/slashem/files/0.0.7E7/proxy.slashemrc
new file mode 100644
index 000000000000..f28cdafb7b07
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/proxy.slashemrc
@@ -0,0 +1,4 @@
+TILESET=name:Small tiles, file:gltile16.png, transparent
+TILESET=name:Big tiles, file:gltile32.png, transparent
+TILESET=name:Big 3D tiles, file:gltile64.png, transparent, pseudo3D
+OPTIONS=tiles:Big 3D tiles
diff --git a/games-roguelike/slashem/files/0.0.7E7/qt.configure b/games-roguelike/slashem/files/0.0.7E7/qt.configure
new file mode 100644
index 000000000000..8e96c5004431
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/qt.configure
@@ -0,0 +1,23 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ define QT_GRAPHICS
+END
+
+configure src_Makefile $toplevel/src/Makefile
+BEGIN
+ define WINQTSRC
+ define WINQTOBJ
+ define WINQTLIB
+ define QTDIR
+ qtdir2=`echo /usr/lib/qt-2.*`
+ define QTDIR "${QTDIR:-$qtdir2}"
+ undefine CXXFLAGS
+ define CXXFLAGS
+ undefine LINK
+ define -C "Qt is C++" LINK
+END
+
+configure Makefile $toplevel/Makefile
+BEGIN
+ define CNF_SHARE_QTND
+END
diff --git a/games-roguelike/slashem/files/0.0.7E7/sdl.configure b/games-roguelike/slashem/files/0.0.7E7/sdl.configure
new file mode 100644
index 000000000000..f0c9e187ce14
--- /dev/null
+++ b/games-roguelike/slashem/files/0.0.7E7/sdl.configure
@@ -0,0 +1,16 @@
+configure config_h $toplevel/include/config.h
+BEGIN
+ define SDL_GRAPHICS
+END
+
+configure src_Makefile $toplevel/src/Makefile
+BEGIN
+ define WINGLSRC
+ define WINGLOBJ
+ define WINSDLLIB
+END
+
+configure Makefile $toplevel/Makefile
+BEGIN
+ define CNF_SHARE_GLND
+END
diff --git a/games-roguelike/slashem/metadata.xml b/games-roguelike/slashem/metadata.xml
new file mode 100644
index 000000000000..17ecb6b48aa0
--- /dev/null
+++ b/games-roguelike/slashem/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>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">slashem</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-roguelike/slashem/slashem-0.0.772.ebuild b/games-roguelike/slashem/slashem-0.0.772.ebuild
new file mode 100644
index 000000000000..a8d0a2662a01
--- /dev/null
+++ b/games-roguelike/slashem/slashem-0.0.772.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic games
+
+SE_VER="0.0.7E7"
+SE_FIXVER="${SE_VER}F2"
+SE_PN="se007e7f2.tar.gz"
+SE_CONF="conf12s.tar.gz"
+
+DESCRIPTION="Super Lotsa Added Stuff Hack - Extended Magic. A Nethack Variant"
+HOMEPAGE="http://www.slashem.org/"
+#SRC_URI="http://www.juiblex.co.uk/nethack/slashem/${SE_PN}"
+SRC_URI="mirror://sourceforge/slashem/${SE_PN}
+ http://www.juiblex.co.uk/nethack/config/${SE_CONF}"
+
+LICENSE="nethack"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="X sdl opengl"
+
+XDEPEND="x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXext
+ x11-libs/libXt
+ x11-libs/libXpm
+ x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libXdmcp"
+
+# qt? ( =dev-qt/qt2* ) this version has overflow bugs #79720
+RDEPEND=">=sys-libs/ncurses-5.2-r5
+ X? ( ${XDEPEND} )
+ opengl? ( virtual/opengl
+ media-libs/libsdl )
+ sdl? ( media-libs/libsdl )"
+DEPEND="${RDEPEND}
+ dev-util/yacc"
+
+HACKDIR=${GAMES_STATEDIR}/${PN}
+S=${WORKDIR}/slashem-${SE_FIXVER}
+
+src_unpack() {
+ unpack ${SE_PN}
+ cd "${S}"
+ EPATCH_SUFFIX="patch"
+ epatch "${FILESDIR}"/${SE_VER}
+
+ # This copies the /sys/unix Makefile.*s to their correct places for
+ # seding and compiling.
+ append-flags -I../include -I/usr/X11R6/include
+
+ cd "${S}"/sys/unix
+ source setup.sh || die
+
+ unpack ${SE_CONF}
+ cp -f "${FILESDIR}"/${SE_VER}/*.configure . || die
+ for c in RedHat9 FHS20 Gentoo prepare-gui Proxy ; do
+ ./config ${c} ../..
+ done
+
+ if use X ; then
+ ./config X11 ../.. || die "X config"
+ fi
+ # SDL require X11
+ for v in sdl ; do #qt
+ use ${v} && { ./config ${v} ../.. || die "${v} config"; }
+ ./config X11 ../.. || die "X config"
+ done
+ # OpenGL requires SDL
+ if use opengl ; then
+ ./config opengl ../.. || die "opengl config"
+ ./config sdl ../.. || die "sdl config"
+ ./config X11 ../.. || die "X config"
+ fi
+
+ cd "${S}"
+ 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_get_libdir)/${PN}:" \
+ Makefile || die "makefile sed"
+ sed -i \
+ -e "s:^\(\#define FILE_AREA_UNSHARE \).*:\1\"$(games_get_libdir)/${PN}/\":" \
+ include/unixconf.h || die "unixconf.h sed"
+}
+
+src_compile() {
+ emake all || die "emake all"
+ cd "${S}"/util
+ emake recover || die "emake recover"
+}
+
+src_install() {
+ emake \
+ GAMEPERM=0750 \
+ SHELLDIR="${D}/${GAMES_BINDIR}" \
+ FILE_AREA_VAR="${D}/${HACKDIR}" \
+ FILE_AREA_SAVE="${D}/${HACKDIR}"/save \
+ FILE_AREA_SHARE="${D}/${GAMES_DATADIR}"/${PN} \
+ FILE_AREA_UNSHARE="${D}/$(games_get_libdir)"/${PN} \
+ FILE_AREA_DOC="${D}"/usr/share/doc/${PF} \
+ install || die "emake install failed"
+ dodoc doc/*.txt
+ dodoc dat/license
+ doman doc/slashem.6
+
+ # The final /usr/bin/slashem is a sh script. This fixes the hard-coded
+ # HACKDIR directory so it doesn't point to ${D}/usr/share/slashemdir
+ dosed "s:^\(HACKDIR=\).*:\1${HACKDIR}:" "${GAMES_BINDIR}"/${PN}
+ dosed "s:^\(HACK=\).*:\1$(games_get_libdir)/${PN}/${PN}:" "${GAMES_BINDIR}"/${PN}
+
+ newgamesbin util/recover recover-slashem || die "recover install"
+
+ if use X ; then
+ # install slashem fonts
+ dodir "${GAMES_DATADIR}"/${PN}/fonts
+ cd "${S}"/win/X11
+ bdftopcf -o nh10.pcf nh10.bdf || die "Converting fonts failed"
+ bdftopcf -o ibm.pcf ibm.bdf || die "Converting fonts failed"
+ insinto "${GAMES_DATADIR}"/${PN}/fonts
+ doins *.pcf
+ cd "${D}${GAMES_DATADIR}"/${PN}/fonts
+ mkfontdir || die "The action mkfontdir ${GAMES_DATADIR}/${PN}/fonts failed"
+
+ # copy slashem X application defaults
+ cd "${S}"/win/X11
+ sed -i \
+ -e 's/^\(SlashEM\*font:\).*/\1 fixed/' \
+ -e 's/^\(SlashEM\*map\*font:\).*/\1 fixed/' \
+ -e 's:^!\(SlashEM.tile_file.*\):\1:' \
+ SlashEM.ad || die "Patching SlashEM.ad for X failed"
+
+ insinto /etc/X11/app-defaults
+ newins SlashEM.ad SlashEM || die "app-defaults failed"
+ fi
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins "${FILESDIR}"/${SE_VER}/dot.slashemrc
+
+ local windowtypes="tty"
+ #use qt && windowtypes="${windowtypes} qt"
+ use X && windowtypes="${windowtypes} x11"
+ use sdl && windowtypes="${windowtypes} sdl"
+ use opengl && windowtypes="${windowtypes} gl"
+ set -- ${windowtypes}
+ dosed "s:GENTOO_WINDOWTYPES:${windowtypes}:" "${GAMES_DATADIR}"/${PN}/dot.slashemrc
+ insinto /etc/skel
+ newins "${D}/${GAMES_DATADIR}"/${PN}/dot.slashemrc .slashemrc
+ insinto /etc/slashem
+ doins "${FILESDIR}"/${SE_VER}/proxy.slashemrc
+
+ keepdir "${HACKDIR}"/save
+ prepgamesdirs
+ fperms -R g+w "${HACKDIR}"
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "You may want to look at /etc/skel/.slashemrc for interesting options"
+}