games-roguelike/nethack: Minor cleanup
authorLuis Ressel <aranea@aixah.de>
Thu, 15 Oct 2015 22:42:02 +0000 (00:42 +0200)
committerLuis Ressel <aranea@aixah.de>
Mon, 19 Oct 2015 11:35:54 +0000 (13:35 +0200)
* Drop \ after && and ||
* Drop reference to old X11 libdir

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

index b8cfdfd87b065cdef6bc42ddc2f771fab7c075a5..6762a44a77c884392d426e809ff0f79f15e68077 100644 (file)
@@ -116,7 +116,6 @@ src_install() {
        emake \
                CC="$(tc-getCC)" \
                CFLAGS="${CFLAGS}" \
-               LFLAGS="-L/usr/X11R6/lib" \
                GAMEPERM=02755 \
                GAMEUID="root" GAMEGRP="${NETHACK_GROUP}" \
                PREFIX="${D}/usr" \
@@ -209,21 +208,21 @@ pkg_postinst() {
        cd "${ROOT}/${STATEDIR}" || die "Failed to enter ${STATEDIR} directory"
 
        if [[ -v migration ]] ; then
-               cp "$T/"{logfile,record} . || \
+               cp "$T/"{logfile,record} . ||
                die "Failed to preserve ${ROOT}/${STATEDIR} files"
 
-               chown -R root:"${NETHACK_GROUP}" . && \
-               chmod -R 660 . && \
-               chmod 770 . save || \
+               chown -R root:"${NETHACK_GROUP}" . &&
+               chmod -R 660 . &&
+               chmod 770 . save ||
                die "Adjustment of file permissions in ${ROOT}/${STATEDIR} failed"
        fi
 
        # we don't want to overwrite existing files, as they contain user data
        local files="logfile perm record"
 
-       touch $files && \
-       chmod 660 $files && \
-       chown root:"${NETHACK_GROUP}" $files || \
+       touch $files &&
+       chmod 660 $files &&
+       chown root:"${NETHACK_GROUP}" $files ||
        die "Adjustment of file permissions in "${ROOT}/${STATEDIR}" failed"
 
        elog "You may want to look at /etc/skel/.nethackrc for interesting options"