summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Ressel <aranea@aixah.de>2015-10-15 19:02:11 +0200
committerLuis Ressel <aranea@aixah.de>2015-10-19 13:35:54 +0200
commit959193878972c00effb34d93af332751e051474a (patch)
tree6e28c175a71442436fe3ad494bb21005c1d0e2ba /games-roguelike/nethack
parentgames-roguelike/nethack: Install nethack menu icon (diff)
downloadgentoo-959193878972c00effb34d93af332751e051474a.tar.gz
gentoo-959193878972c00effb34d93af332751e051474a.tar.bz2
gentoo-959193878972c00effb34d93af332751e051474a.zip
games-roguelike/nethack: Don't install dot.nethackrc to HACKDIR
It's only a default config file to be used by users, there's another copy in /etc/skel, and there's an elog message to point users to the version in /etc/skel, so we really don't need this in $HACKDIR.
Diffstat (limited to 'games-roguelike/nethack')
-rw-r--r--games-roguelike/nethack/nethack-3.4.3-r5.ebuild12
1 files changed, 4 insertions, 8 deletions
diff --git a/games-roguelike/nethack/nethack-3.4.3-r5.ebuild b/games-roguelike/nethack/nethack-3.4.3-r5.ebuild
index 48ba257c0aae..fde14db4bd69 100644
--- a/games-roguelike/nethack/nethack-3.4.3-r5.ebuild
+++ b/games-roguelike/nethack/nethack-3.4.3-r5.ebuild
@@ -143,10 +143,8 @@ src_install() {
doman doc/*.6
dodoc doc/*.txt
- # Can be copied to ~/.nethackrc to set options
- # Add this to /etc/.skel as well, thats the place for default configs
- insinto "${HACKDIR}"
- doins "${FILESDIR}/dot.nethackrc"
+ insinto /etc/skel
+ newins "${FILESDIR}/dot.nethackrc" .nethackrc
local windowtypes="tty"
use X && windowtypes="${windowtypes} x11"
@@ -154,10 +152,8 @@ src_install() {
sed -i \
-e "s:GENTOO_WINDOWTYPES:${windowtypes}:" \
-e "s:GENTOO_DEFWINDOWTYPE:$1:" \
- "${D}${HACKDIR}/dot.nethackrc" \
- || die "sed ${HACKDIR}/dot.nethackrc failed"
- insinto /etc/skel
- newins "${D}/${HACKDIR}/dot.nethackrc" .nethackrc
+ "${D}/etc/skel/.nethackrc" \
+ || die "sed /etc/skel/.nethackrc failed"
if use X ; then
# install nethack fonts