Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2014 14:44:46 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r371838 - head/games/scourge-data
Message-ID:  <201410311444.s9VEikRG063658@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Oct 31 14:44:46 2014
New Revision: 371838
URL: https://svnweb.freebsd.org/changeset/ports/371838
QAT: https://qat.redports.org/buildarchive/r371838/

Log:
  - Simplify PORTNAME handling
  - Pass maintainership to games@
  - Add NO_ARCH
  - Simplify installation and plist handling

Modified:
  head/games/scourge-data/Makefile

Modified: head/games/scourge-data/Makefile
==============================================================================
--- head/games/scourge-data/Makefile	Fri Oct 31 14:44:40 2014	(r371837)
+++ head/games/scourge-data/Makefile	Fri Oct 31 14:44:46 2014	(r371838)
@@ -1,35 +1,24 @@
 # Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
 # $FreeBSD$
 
-PORTNAME=	data
+PORTNAME=	scourge-data
 PORTVERSION=	0.21.1
 CATEGORIES=	games
 MASTER_SITES=	SF/scourge/scourge/${PORTVERSION}
-PKGNAMEPREFIX=	scourge-
-DISTNAME=	${PKGNAMEPREFIX}${PORTVERSION}${PORTNAME:S/^/./}
-DIST_SUBDIR=	${PKGNAMEPREFIX:S/-//}
+DISTNAME=	scourge-${PORTVERSION}.data
+DIST_SUBDIR=	scourge
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	games@FreeBSD.org
 COMMENT=	S.C.O.U.R.G.E data files
 
 NO_BUILD=	yes
+NO_ARCH=	*
 
-DATADIR=	share/${PKGNAMEPREFIX:S/-//}
-PLIST=		${WRKDIR}/pkg-plist
-WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX:S/-/_/}${PORTNAME}
-
-pre-install:
-	@${RM} -f ${PLIST}
-	@cd ${WRKSRC} && \
-		${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
-			${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
-	@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
+WRKSRC=		${WRKDIR}/scourge_data
+DATADIR=	${PREFIX}/share/scourge
+PORTDATA=	*
 
 do-install:
-	@cd ${WRKSRC} && \
-		${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR} && \
-			${CP} -R * ${STAGEDIR}${PREFIX}/${DATADIR}
-	@cd ${STAGEDIR}${PREFIX}/${DATADIR} && \
-		${FIND} * -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410311444.s9VEikRG063658>