Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2016 10:11:30 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r414523 - head/games/rocksndiamonds-data
Message-ID:  <201605031011.u43ABUAu085344@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Tue May  3 10:11:30 2016
New Revision: 414523
URL: https://svnweb.freebsd.org/changeset/ports/414523

Log:
  - After ports r411856 post-extract-script can be simplified a bit.
  
  PR:		208291
  Submitted by:	jbeich

Modified:
  head/games/rocksndiamonds-data/Makefile

Modified: head/games/rocksndiamonds-data/Makefile
==============================================================================
--- head/games/rocksndiamonds-data/Makefile	Tue May  3 09:29:20 2016	(r414522)
+++ head/games/rocksndiamonds-data/Makefile	Tue May  3 10:11:30 2016	(r414523)
@@ -23,15 +23,17 @@ DISTFILES=	BD2K3-1.0.0.zip:levels \
 		Veysi_Orak_2006.zip
 DIST_SUBDIR=	rocksndiamonds
 EXTRACT_ONLY=	#empty
+EXTRACT_ONLY_7z=Emerald_Mine_Club-2.1.1.7z
 
 MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Additional Player Levels for Rocks'n'Diamonds and R'n'D jue
 
-EXTRACT_DEPENDS+=${UNZIP_CMD}:archivers/unzip \
-		7z:archivers/p7zip
+EXTRACT_DEPENDS+=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
 
+USES=		7z:partial
 NO_BUILD=	yes
 NO_WRKSUBDIR=	yes
+WRKSRC=		${WRKDIR}/${PORTNAME} # for EXTRACT_WRKDIR
 
 SUB_FILES=	pkg-message pkg-deinstall
 
@@ -76,9 +78,6 @@ DATADIR1=	${PREFIX}/share/rocksndiamonds
 .endif
 
 post-extract-script:
-	${MKDIR} ${WRKDIR}/${PORTNAME}
-	7z x ${_DISTDIR}/Emerald_Mine_Club-2.1.1.7z -o${WRKDIR}/${PORTNAME}/levels
-
 .for l in BD2K3-1.0.0.zip Snake_Bite-1.0.0.zip Zelda-1.0.0.zip \
 		ZeldaII-1.0.0.zip Boulder_Dash_Dream-1.0.0.zip
 	@${UNZIP_CMD} -qo -d ${WRKDIR}/${PORTNAME} ${_DISTDIR}/${l}



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