svn commit: r357264 - head/games/unnethack

Akinori MUSHA knu at FreeBSD.org
Tue Jun 10 05:27:48 UTC 2014


Author: knu
Date: Tue Jun 10 05:27:47 2014
New Revision: 357264
URL: http://svnweb.freebsd.org/changeset/ports/357264
QAT: https://qat.redports.org/buildarchive/r357264/

Log:
  Add staging support and remove NO_STAGEDIR.
  
  Legacy pkg_tools support may have been broken.

Modified:
  head/games/unnethack/Makefile
  head/games/unnethack/pkg-plist

Modified: head/games/unnethack/Makefile
==============================================================================
--- head/games/unnethack/Makefile	Tue Jun 10 05:14:39 2014	(r357263)
+++ head/games/unnethack/Makefile	Tue Jun 10 05:27:47 2014	(r357264)
@@ -19,28 +19,29 @@ MAKE_JOBS_UNSAFE=	yes
 VARDIR_REL=	var/games/${PORTNAME}
 VARDIR=		${PREFIX}/${VARDIR_REL}
 CONFIGURE_ARGS=	--datadir="${DATADIR:H}" --localstatedir="${VARDIR:H}" --docdir="${DOCSDIR:H}" \
-		--with-owner=games --with-group=games \
+		--with-owner=no --with-group=no \
 		--enable-data-librarian
-MAKE_ARGS=	FILEPERM=0664 \
-		VARFILEPERM=0664 \
-		VARDIRPERM=0775
+MAKE_ARGS=	MANPREFIX="${STAGEDIR}${MANPREFIX}"
 INSTALL_TARGET=	install manpages
 PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
 SUB_FILES=	pkg-deinstall
 SUB_LIST=	VARDIR="${VARDIR}"
 PLIST_SUB=	VARDIR="${VARDIR_REL}"
-# This port accually conflicts with other nethack variant ports on
-# these commands that are only significant for those who want to
-# "hack" the game in deep.
-MAN6=		dgn_comp.6 dlb.6 lev_comp.6 recover.6 ${PORTNAME}.6
 
-NO_STAGE=	yes
 post-patch:
 	${MV} ${WRKSRC}/doc/nethack.6 ${WRKSRC}/doc/${PORTNAME}.6
 
 post-install:
+	cd ${STAGEDIR}${PREFIX}/man/man6; \
+	for f in ${WRKSRC}/doc/*.6; do \
+		fn=$${f##*/}; \
+		case $$fn in \
+			unnethack.6) ;; \
+			*) ${MV} $$fn unnethack_$$fn ;; \
+		esac; \
+	done
 .if !defined(NOPORTDOCS)
-	${INSTALL_DATA} ${FILESDIR}/sample.unnethackrc ${DOCSDIR}
+	${INSTALL_DATA} ${FILESDIR}/sample.unnethackrc ${STAGEDIR}${DOCSDIR}
 .endif
 	@${CAT} ${PKGMESSAGE}
 

Modified: head/games/unnethack/pkg-plist
==============================================================================
--- head/games/unnethack/pkg-plist	Tue Jun 10 05:14:39 2014	(r357263)
+++ head/games/unnethack/pkg-plist	Tue Jun 10 05:27:47 2014	(r357264)
@@ -1,16 +1,30 @@
+ at owner games
+ at group games
+ at mode 2755
 bin/unnethack
+ at mode
 %%DATADIR%%/nhdat
 %%DATADIR%%/recover
 %%DATADIR%%/unnethack
 @dirrm %%DATADIR%%
+ at mode 664
 %%VARDIR%%/logfile
 %%VARDIR%%/perm
 %%VARDIR%%/record
 %%VARDIR%%/xlogfile
+ at mode 775
 @dirrmtry %%VARDIR%%/bones
 @dirrmtry %%VARDIR%%/level
 @dirrmtry %%VARDIR%%/saves
 @unexec rmdir -p %D/%%VARDIR%% 2>/dev/null || true
+ at owner
+ at group
+ at mode
+man/man6/unnethack_dgn_comp.6.gz
+man/man6/unnethack_dlb.6.gz
+man/man6/unnethack_lev_comp.6.gz
+man/man6/unnethack_recover.6.gz
+man/man6/unnethack.6.gz
 %%DOCSDIR%%/Guidebook.txt
 %%DOCSDIR%%/license
 %%PORTDOCS%%%%DOCSDIR%%/sample.unnethackrc


More information about the svn-ports-all mailing list