ports/109419: [UPDATE] emulators/xmame: remove DATFILES option (split to emulators/mame-extras)

Alejandro Pulver alepulver at FreeBSD.org
Thu Feb 22 04:20:04 UTC 2007


>Number:         109419
>Category:       ports
>Synopsis:       [UPDATE] emulators/xmame: remove DATFILES option (split to emulators/mame-extras)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 22 04:20:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 6.1-RELEASE-p1 i386
>Organization:
>Environment:


System: FreeBSD 6.1-RELEASE-p1 #3: Mon Jun 19 14:49:35 ART 2006
    root at phobos.mars.bsd:/usr/obj/usr/src/sys/ATHLON-PHOBOS



>Description:


- Remove DATFILES option (a port emulators/mame-extras will be added soon, because there will be more MAME/MESS ports).
- Remove unused entries and groups from MASTER_SITES.
- Add pkg-message about the new port.

Note: this PR will be committed after the emulators/mame-extras port is added.


>How-To-Repeat:





>Fix:


--- xmame.diff begins here ---
Index: xmame/Makefile
===================================================================
RCS file: /home/pcvs/ports/emulators/xmame/Makefile,v
retrieving revision 1.109
diff -u -r1.109 Makefile
--- xmame/Makefile	14 Dec 2006 07:34:39 -0000	1.109
+++ xmame/Makefile	22 Feb 2007 03:52:02 -0000
@@ -9,21 +9,12 @@
 PORTVERSION?=	0.106
 PORTREVISION?=	1
 CATEGORIES=	emulators
-MASTER_SITES=	http://www.franksworld.org/dist/xmame/:xmame \
-		http://x.mame.net/download/:xmame \
-		http://www.energyhq.es.eu.org/files/:xmame \
-		http://www.energyhq.be/files/:xmame \
-		http://www.pkix.net/mirror/x.mame.net/:xmame \
-		http://www.franksworld.org/dist/xmame/:history \
-		http://www.arcade-history.com/download/:history \
-		http://www.energyhq.es.eu.org/files/:history \
-		http://www.franksworld.org/dist/xmame/:highscore \
-		http://www.mameworld.net/highscore/:highscore \
-		http://www.franksworld.org/dist/xmame/:cheat \
-		http://cheat.retrogames.com/:cheat
+MASTER_SITES=	http://www.franksworld.org/dist/xmame/ \
+		http://x.mame.net/download/ \
+		http://www.energyhq.es.eu.org/files/ \
+		http://www.energyhq.be/files/ \
+		http://www.pkix.net/mirror/x.mame.net/ \
 DISTNAME=	xmame-${XMAMEVERSION:S/.r/-rc/}
-DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:xmame
-DIST_SUBDIR=	xmame
 
 MAINTAINER?=	mmendez at energyhq.be
 COMMENT?=	UNIX/X11 port of the Multi Arcade Machine Emulator (MAME)
@@ -54,7 +45,6 @@
 		ASM68K		"Enable the speedier but buggy 68k emulator" off \
 		OPTIMIZATION	"Enable maximum C compiler optimization" off \
 		ESOUND		"Enable esound support" off \
-		DATFILES	"Installs additional information files" on \
 		NETWORK		"Include support for network play (**BROKEN**)" off
 
 XMAMEVERSION?=	${PORTVERSION}
@@ -128,38 +118,6 @@
 USE_GCC=	3.4+
 .endif
 
-# Option WITH_DATFILES
-.if ${MAMEMESS} == "mame"
-
-.if defined(WITH_DATFILES)
-PLIST_SUB+=	DATFILES=""
-
-EXTRACT_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
-
-HIVER=		0100
-HISTVER=	1_06a
-
-DISTFILES+=	uhsdat${HIVER}.zip:highscore \
-		history${HISTVER}.zip:history \
-		cheat.zip:cheat
-EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
-
-post-extract:
-	cd ${WRKDIR} && \
-		${UNZIP_CMD} -q ${DISTDIR}/${DIST_SUBDIR}/uhsdat${HIVER}.zip \
-			hiscore.dat
-	cd ${WRKDIR} && \
-		${UNZIP_CMD} -q ${DISTDIR}/${DIST_SUBDIR}/history${HISTVER}.zip \
-			history.dat
-	cd ${WRKDIR} && \
-		${UNZIP_CMD} -q ${DISTDIR}/${DIST_SUBDIR}/cheat.zip cheat.dat
-.else
-PLIST_SUB+=	DATFILES="@comment "
-.endif
-.else # xmess
-PLIST_SUB+=	DATFILES="@comment "
-.endif
-
 .if defined(WITH_ASM68K)
 ASM_COMMENT=
 .else
@@ -310,10 +268,10 @@
 	${INSTALL_DATA} ${WRKSRC}/doc/mess/sysinfo.dat \
 				${DATADIR}/history.dat
 .endif
-.if ${MAMEMESS} == "mame" && defined(WITH_DATFILES)
-	${INSTALL_DATA} ${WRKDIR}/hiscore.dat ${DATADIR}
-	${INSTALL_DATA} ${WRKDIR}/history.dat ${DATADIR}
-	${INSTALL_DATA} ${WRKDIR}/cheat.dat ${DATADIR}
+.if ${MAMEMESS} == "mame"
+	@${ECHO_CMD}
+	@${CAT} ${PKGMESSAGE}
+	@${ECHO_CMD}
 .endif
 
 .include <bsd.port.post.mk>
Index: xmame/pkg-message
===================================================================
RCS file: xmame/pkg-message
diff -N xmame/pkg-message
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ xmame/pkg-message	22 Feb 2007 03:52:02 -0000
@@ -0,0 +1,8 @@
+==============================================================================
+
+xmame has heen installed.
+
+To install additional MAME files (like cheats, hiscore, history, artwork,
+etc.) please use the "emulators/mame-extras" port.
+
+==============================================================================
Index: xmame/pkg-plist
===================================================================
RCS file: /home/pcvs/ports/emulators/xmame/pkg-plist,v
retrieving revision 1.35
diff -u -r1.35 pkg-plist
--- xmame/pkg-plist	14 Dec 2006 07:34:39 -0000	1.35
+++ xmame/pkg-plist	22 Feb 2007 03:52:02 -0000
@@ -52,9 +52,6 @@
 %%OPENGL%%%%DATADIR%%/cab/trans/trans.cab
 %%OPENGL%%@dirrm %%DATADIR%%/cab/trans
 %%OPENGL%%@dirrm %%DATADIR%%/cab
-%%DATFILES%%%%DATADIR%%/hiscore.dat
-%%DATFILES%%%%DATADIR%%/history.dat
-%%DATFILES%%%%DATADIR%%/cheat.dat
 @exec mkdir -p %D/%%DATADIR%%/roms || true
 @dirrm %%DATADIR%%/roms
 @dirrm %%DATADIR%%
--- xmame.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list