Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2001 19:50:57 -0400 (EDT)
From:      Pete Fritchman <petef@databits.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/29402: Clean up games/dopewars
Message-ID:  <200108022350.f72Nove84646@entropy.databits.net>

next in thread | raw e-mail | index | archive | help

>Number:         29402
>Category:       ports
>Synopsis:       Clean up games/dopewars
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 02 17:40:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Pete Fritchman
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Databits Network Services, Inc.
>Environment:
System: FreeBSD entropy.databits.net 4.3-STABLE FreeBSD 4.3-STABLE #1: Tue Jul 31 08:19:43 EDT 2001 petef@entropy.databits.net:/usr/obj/usr/src/sys/ENTROPY i386

>Description:

- CONFIGURE_ARGS= -> CONFIGURE_ARGS+=
- support NOPORTDOCS
- add missing manpage
- better follow mtree(8)
- add missing files to pkg-plist
- remove files/patch-aa
- add files/patch-doc::Makefile.in

>How-To-Repeat:

>Fix:

[ cvs rm files/patch-aa, cvs add files/patch-doc::Makefile.in ]

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/games/dopewars/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	2001/07/01 22:36:14	1.14
+++ Makefile	2001/08/02 23:17:59
@@ -14,13 +14,24 @@
 MAINTAINER=	petef@databits.net
 
 USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
 USE_GTK=	yes
 USE_X_PREFIX=	yes
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS+=	--enable-nls
+
+.if defined(NOPORTDOCS)
+MAKE_ENV+=	NOPORTDOCS=yes
+.endif
+
+PLIST_SUB=	DOPEWARS=${PKGNAME}
 
-CONFIGURE_ARGS=	--enable-nls
+MAN6=	dopewars.6
 
-DOPEWARS=	${PKGNAME}
-PLIST_SUB=	DOPEWARS=${DOPEWARS}
+post-patch:
+	@${PERL} -pi -e 's!/pixmaps!/dopewars/pixmaps!' \
+		${WRKSRC}/src/Makefile.in
+	@${PERL} -pi -e 's!dopewars.sco!dopewars/dopewars.sco!g' \
+		${WRKSRC}/src/dopewars.c ${WRKSRC}/Makefile.in
 
 .include <bsd.port.mk>
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/games/dopewars/pkg-plist,v
retrieving revision 1.5
diff -u -r1.5 pkg-plist
--- pkg-plist	2001/06/19 18:01:14	1.5
+++ pkg-plist	2001/08/02 23:17:08
@@ -1,16 +1,35 @@
 bin/dopewars
-share/doc/%%DOPEWARS%%/aiplayer.html
-share/doc/%%DOPEWARS%%/clientplay.html
-share/doc/%%DOPEWARS%%/commandline.html
-share/doc/%%DOPEWARS%%/configfile.html
-share/doc/%%DOPEWARS%%/credits.html
-share/doc/%%DOPEWARS%%/developer.html
-share/doc/%%DOPEWARS%%/i18n.html
-share/doc/%%DOPEWARS%%/index.html
-share/doc/%%DOPEWARS%%/installation.html
-share/doc/%%DOPEWARS%%/metaserver.html
-share/doc/%%DOPEWARS%%/server.html
-share/doc/%%DOPEWARS%%/servercommands.html
-share/doc/%%DOPEWARS%%/windows.html
-share/dopewars.sco
-@dirrm share/doc/%%DOPEWARS%%
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/aiplayer.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/clientplay.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/commandline.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/configfile.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/credits.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/developer.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/i18n.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/index.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/installation.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/metaserver.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/server.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/servercommands.html
+%%PORTDOCS%%share/doc/%%DOPEWARS%%/windows.html
+share/dopewars/dopewars.sco
+share/dopewars/pixmaps/dopewars-pill.png
+share/dopewars/pixmaps/dopewars-shot.png
+share/dopewars/pixmaps/dopewars-weed.png
+share/locale/de/LC_MESSAGES/dopewars.mo
+share/locale/pl/LC_MESSAGES/dopewars.mo
+share/locale/pt_BR/LC_MESSAGES/dopewars.mo
+share/gnome/apps/Games/dopewars.desktop
+@unexec rmdir share/gnome/apps/Games 2>/dev/null || true
+@unexec rmdir share/gnome/apps 2>/dev/null || true
+@unexec rmdir share/gnome 2>/dev/null || true
+@unexec rmdir share/locale/pt_BR/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir share/locale/pt_BR 2>/dev/null || true
+@unexec rmdir share/locale/pl/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir share/locale/pl 2>/dev/null || true
+@unexec rmdir share/locale/de/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir share/locale/de 2>/dev/null || true
+@unexec rmdir share/locale 2>/dev/null || true
+@dirrm share/dopewars/pixmaps
+@dirrm share/dopewars
+%%PORTDOCS%%@dirrm share/doc/%%DOPEWARS%%
--- /dev/null	Thu Aug  2 19:18:01 2001
+++ files/patch-doc::Makefile.in	Thu Aug  2 18:46:15 2001
@@ -0,0 +1,13 @@
+--- doc/Makefile.in.orig	Mon Jun 18 20:46:56 2001
++++ doc/Makefile.in	Thu Aug  2 18:46:04 2001
+@@ -248,8 +248,10 @@
+ 
+ 
+ install-data-local:
++ifndef NOPORTDOCS
+ 	${INSTALL} -d -o root -g 0 -m 0755 ${DESTDIR}${DOCPATH}
+ 	${INSTALL} -o root -g 0 -m 0644 ${DOCS} ${DESTDIR}${DOCPATH}
++endif
+ 
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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