Date: Sat, 8 Dec 2001 23:14:56 +1100 (EST) From: Edwin Groothuis <edwin@mavetju.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/32599: [PATCH] games/xrobots does not build/install correctly Message-ID: <20011208121456.36E7DFC@k7.mavetju.org>
next in thread | raw e-mail | index | archive | help
>Number: 32599 >Category: ports >Synopsis: [PATCH] games/xrobots does not build/install correctly >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Dec 08 04:20:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.4-RELEASE i386 >Organization: - >Environment: System: FreeBSD k7.mavetju.org 4.4-RELEASE FreeBSD 4.4-RELEASE #2: Sat Nov 10 21:31:47 EST 2001 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386 # $FreeBSD: ports/games/xrobots/Makefile,v 1.15 2001/09/17 17:40:18 dwcjr Exp $ >Description: Besides the fact that the source isn't fetchable, the program doesn't go complete the install-phase due to this line in the build-phase: rman -f HTML < xrobots._man > xrobots.6-html && mv -f xrobots.6-html xrobots.1.html It also updates the man-page for the proper paths I've adopted the game so there is a new home for it available. >How-To-Repeat: cd /usr/ports/games/xrobots make install and if fixed: man xrobots >Fix: --- xrobots.old/Makefile Sat Dec 8 13:05:20 2001 +++ xrobots/Makefile Sat Dec 8 23:00:11 2001 @@ -8,10 +8,10 @@ PORTNAME= xrobots PORTVERSION= 1.0 CATEGORIES= games -MASTER_SITES= ftp://hpux.csc.liv.ac.uk/hpux/Games/Arcade/xrobots-1.0/ +MASTER_SITES= http://www.mavetju.org/download/adopted/ DISTNAME= ${PKGNAME}-ss-10.20 -MAINTAINER= ports@FreeBSD.org +MAINTAINER= edwin@mavetju.org USE_IMAKE= yes WRKSRC= ${WRKDIR}/xrobots-1.0 @@ -19,5 +19,8 @@ post-install: ${INSTALL} -c -g games -m 664 ${FILESDIR}/xrobotscores ${PREFIX}/lib/X11 + +post-patch: + ${PERL} -pi -e 's|__PREFIX__|${PREFIX}|g' ${WRKSRC}/xrobots.man ${WRKSRC}/Imakefile .include <bsd.port.mk> --- xrobots.old/files/patch-ac Sat Dec 8 13:05:20 2001 +++ xrobots/files/patch-ac Sat Dec 8 22:51:34 2001 @@ -1,15 +1,18 @@ -*** Imakefile.orig Fri Nov 17 14:37:36 1989 ---- Imakefile Mon Jan 2 23:28:47 1995 -*************** -*** 1,5 **** - -! SCORE_FILE = -DSCORE_FILE=\"./xrobotscores\" - MAXSCORES = -DMAXSCORES=20 - MAXX = -DMAXX=35 - MAXY = -DMAXY=20 ---- 1,5 ---- - -! SCORE_FILE = -DSCORE_FILE=\"/usr/X11R6/lib/X11/xrobotscores\" - MAXSCORES = -DMAXSCORES=20 - MAXX = -DMAXX=35 - MAXY = -DMAXY=20 +--- Imakefile.orig Fri Jan 23 01:14:38 1998 ++++ Imakefile Sat Dec 8 13:20:22 2001 +@@ -1,5 +1,5 @@ + +- SCORE_FILE = -DSCORE_FILE=\"./xrobotscores\" ++ SCORE_FILE = -DSCORE_FILE=\"__PREFIX__/lib/X11/xrobotscores\" + MAXSCORES = -DMAXSCORES=20 + MAXX = -DMAXX=35 + MAXY = -DMAXY=20 +@@ -14,6 +14,8 @@ + SYS_LIBRARIES = -lm + + all:: xrobots ++MANSUFFIX=6 ++INSTPGMFLAGS = -s -g games -m 2755 + + ComplexProgramTarget(xrobots) + /* --- xrobots.old/files/patch-xrobots.man Thu Jan 1 10:00:00 1970 +++ xrobots/files/patch-xrobots.man Sat Dec 8 23:03:07 2001 @@ -0,0 +1,29 @@ +--- xrobots.man.orig Sat Nov 18 09:37:40 1989 ++++ xrobots.man Sat Dec 8 22:47:26 2001 +@@ -3,7 +3,7 @@ + .SH NAME + xrobots \- fight off villainous robots (X Windows) + .SH SYNOPSIS +-.B /usr/games/xrobots ++.B __PREFIX__/bin/xrobots + .SH DESCRIPTION + .LP + As in robots(6), xrobots puts you into a world of evil robots (but in +@@ -110,7 +110,7 @@ + xrobots.scorefile + .RS + Set this to the path of your personal score file. The file will be +-created if it does not exist. The default: /usr/games/lib/xrobots_scores ++created if it does not exist. The default: __PREFIX__/lib/X11/xrobots_scores + .RE + .LP + xrobots.showmovement +@@ -214,7 +214,7 @@ + .LP + .SH FILES + .LP +-/usr/games/lib/xrobots_scores \-\- the score file ++__PREFIX__/lib/X11/xrobots_scores \-\- the score file + .LP + .SH AUTHOR + .LP >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?20011208121456.36E7DFC>