games-roguelike/nethack: Don't install dot.nethackrc to HACKDIR
authorLuis Ressel <aranea@aixah.de>
Thu, 15 Oct 2015 17:02:11 +0000 (19:02 +0200)
committerLuis Ressel <aranea@aixah.de>
Mon, 19 Oct 2015 11:35:54 +0000 (13:35 +0200)
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.

games-roguelike/nethack/nethack-3.4.3-r5.ebuild

index 48ba257c0aae4840dc78a255bc991a1132de9a39..fde14db4bd69dea49e5adb14d66c6d6042220b55 100644 (file)
@@ -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