games-roguelike/nethack: Improved nethackrc for 3.6
authorLuis Ressel <aranea@aixah.de>
Wed, 13 Jan 2016 20:18:41 +0000 (21:18 +0100)
committerLuis Ressel <aranea@aixah.de>
Wed, 13 Jan 2016 22:12:47 +0000 (23:12 +0100)
games-roguelike/nethack/files/nethack-3.4.3-nethackrc [moved from games-roguelike/nethack/files/dot.nethackrc with 100% similarity]
games-roguelike/nethack/files/nethack-3.6.0-nethackrc [new file with mode: 0644]
games-roguelike/nethack/nethack-3.4.3-r5.ebuild
games-roguelike/nethack/nethack-3.6.0-r1.ebuild
games-roguelike/nethack/nethack-3.6.0.ebuild

diff --git a/games-roguelike/nethack/files/nethack-3.6.0-nethackrc b/games-roguelike/nethack/files/nethack-3.6.0-nethackrc
new file mode 100644 (file)
index 0000000..33c9806
--- /dev/null
@@ -0,0 +1,103 @@
+## This is an example nethackrc file (courtesy of nethack.alt.org).
+##
+## You should edit it to suit your needs.
+## Please read the Guidebook in /usr/share/doc/nethack or at www.nethack.org.
+##
+## Options which are enabled by default (like autoopen) can be disabled
+## by prefixing them with a !
+
+## If USE=X is enabled, this can be changed to x11
+#OPTIONS=windowtype:tty
+
+## Custom fruit and pet names
+#OPTIONS=fruit:mango
+#OPTIONS=dogname:Izchak
+#OPTIONS=catname:Chun-Li
+#OPTIONS=horsename:Marlon
+
+## Colored output
+#OPTIONS=color
+
+## Automatically dig if you are wielding a digging tool and moving
+## into a place that can be dug
+#OPTIONS=autodig
+
+## Walking into a door attempts to open it
+#OPTIONS=autoopen
+
+## Automatically pick up stuff
+#OPTIONS=autopickup
+
+## Only use autopickup for these item types
+#OPTIONS=pickup_types:$!?/"=
+
+## Allow saving and loading bones files.
+#OPTIONS=bones
+
+## Show out-of-sight areas of lit rooms
+#OPTIONS=dark_room
+
+## Use inverse for pets
+#OPTIONS=hilite_pet
+
+## Use inverse for piles of items
+#OPTIONS=hilite_pile
+
+## Show experience
+#OPTIONS=showexp
+
+## Show elapsed game time (in turns)
+#OPTIONS=time
+
+## How recalled messages (ctrl-p) are displayed.
+#OPTIONS=msg_window:reversed
+
+## use IBMgraphics or DECgraphics
+#OPTIONS=symset:DECgraphics
+#OPTIONS=symset:IBMgraphics
+
+## If you don't like some default glyphs, these can be changed
+#SYMBOLS=S_boulder:0
+#SYMBOLS=S_lava:~
+#SYMBOLS=S_pool:~
+#SYMBOLS=S_water:~
+#SYMBOLS=S_ghost:8
+#SYMBOLS=S_golem:7
+
+## Sort items by name. One of "none", "loot", or "full"
+#OPTIONS=sortloot:full
+
+## Require explicit yes for some prompts
+#OPTIONS=paranoid_confirmation:Confirm quit attack pray wand Remove
+
+## Conducts
+#OPTIONS=nudist
+#OPTIONS=blind
+
+
+## Colored menus. Regular expressions allowed.
+#OPTIONS=menucolors
+#MENUCOLOR=" blessed "=green
+#MENUCOLOR=" holy "=green
+#MENUCOLOR=" cursed "=red
+#MENUCOLOR=" unholy "=red
+#MENUCOLOR=" cursed .* (being worn)"=orange&underline
+
+
+## Messagetypes
+
+## displacing pets. hide the message.
+#MSGTYPE=hide "You swap places with your .*"
+
+## items on floor. don't repeat the message.
+#MSGTYPE=norep "You see here a .*"
+#MSGTYPE=norep "You see here an .*"
+
+## delayed instadeaths. always prompt for -more-
+#MSGTYPE=stop "You are slowing down."
+#MSGTYPE=stop "You find it hard to breathe."
+#MSGTYPE=stop "You are turning a little .*"
+
+## moving up or down stairs
+#MSGTYPE=hide "You descend .*"
+#MSGTYPE=hide "You (climb|fly) (up|down) .*"
index 6762a44a77c884392d426e809ff0f79f15e68077..3746bd966d845e438709d8c397cfcd3839138e3f 100644 (file)
@@ -143,7 +143,7 @@ src_install() {
        dodoc doc/*.txt
 
        insinto /etc/skel
-       newins "${FILESDIR}/dot.nethackrc" .nethackrc
+       newins "${FILESDIR}/${P}-nethackrc" .nethackrc
 
        local windowtypes="tty"
        use X && windowtypes="${windowtypes} x11"
index 3696d05c3e91b47da343a2f7b028c9887b51158a..01e66e84fa880bd0cc8e44342b06b2007327f5ce 100644 (file)
@@ -87,16 +87,7 @@ src_install() {
        newins sys/unix/sysconf nethack.sysconf
 
        insinto /etc/skel
-       newins "${FILESDIR}/dot.nethackrc" .nethackrc
-
-       local windowtypes="tty"
-       use X && windowtypes="x11 ${windowtypes}"
-       set -- ${windowtypes}
-       sed -i \
-               -e "s:GENTOO_WINDOWTYPES:${windowtypes}:" \
-               -e "s:GENTOO_DEFWINDOWTYPE:$1:" \
-               "${D}/etc/skel/.nethackrc" \
-               || die "sed /etc/skel/.nethackrc failed"
+       newins "${FILESDIR}/${P}-nethackrc" .nethackrc
 
        if use X ; then
                cd "${S}/win/X11" || die "Failed to enter win/X11 directory"
index 11c43ea42cc42da32d9b382551e2f5c536ab5c30..f627cad5b44b9d4c38c1dc01afba0ae94d2b8db4 100644 (file)
@@ -93,7 +93,7 @@ src_install() {
        newins sys/unix/sysconf nethack.sysconf
 
        insinto /etc/skel
-       newins "${FILESDIR}/dot.nethackrc" .nethackrc
+       newins "${FILESDIR}/${PN}-3.4.3-nethackrc" .nethackrc
 
        local windowtypes="tty"
        use X && windowtypes="x11 ${windowtypes}"