Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2004 23:16:40 -0500 (EST)
From:      michael johnson <ahze@ahze.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        bremner@unb.ca
Subject:   ports/65015: [PATCH] math/nauty: respect CC & CFLAGS, some cleanup 
Message-ID:  <200404010416.i314GesS020527@gentoo.ahze.net>
Resent-Message-ID: <200404010420.i314KMYH086532@freefall.freebsd.org>

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

>Number:         65015
>Category:       ports
>Synopsis:       [PATCH] math/nauty: respect CC & CFLAGS, some cleanup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 31 20:20:22 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     michael johnson
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #38: Sat Mar 27 18:30:44 EST 2004
>Description:
- Respect CC and CFLAGS
- Add DOCSDIR
- Remove White Spaces  

Port maintainer (bremner@unb.ca) is cc'd.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- nauty-2.0b9.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/nauty/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	21 Feb 2003 12:44:00 -0000	1.3
+++ Makefile	1 Apr 2004 04:12:47 -0000
@@ -5,13 +5,13 @@
 # $FreeBSD: ports/math/nauty/Makefile,v 1.3 2003/02/21 12:44:00 knu Exp $
 #
 
-PORTNAME=      	nauty
-PORTVERSION=   	2.0b9
-CATEGORIES=    	math
-MASTER_SITES=  	http://cs.anu.edu.au/~bdm/nauty/
+PORTNAME=	nauty
+PORTVERSION=	2.0b9
+CATEGORIES=	math
+MASTER_SITES=	http://cs.anu.edu.au/~bdm/nauty/
 DISTNAME=	${PORTNAME}20beta9
 
-MAINTAINER=    	bremner@unb.ca
+MAINTAINER=	bremner@unb.ca
 COMMENT=	Brendan McKay's graph isomorphism tester
 
 WRKSRC=		${WRKDIR}/${PORTNAME}20
@@ -19,9 +19,11 @@
 ALL_TARGET=	nauty
 NO_INSTALL_MANPAGES=yes
 USE_REINPLACE=	yes
+PORTDOCS=	oldmanual.ps read.me
 
 post-patch:
-	@${REINPLACE_CMD} -e "s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/${MAKEFILE}
+	@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O4|${CFLAGS}|' \
+		${WRKSRC}/${MAKEFILE}
 
 do-install:
 	cd ${WRKSRC}; 	${INSTALL_PROGRAM} dreadnaut dreadnaut1 \
@@ -29,9 +31,10 @@
 
 post-install:
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
-	${INSTALL_MAN} ${WRKSRC}/oldmanual.ps ${WRKSRC}/read.me \
-		${PREFIX}/share/doc/${PORTNAME}
+	${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
 .endif
 
 .include <bsd.port.mk>
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/math/nauty/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist	29 May 2001 16:13:39 -0000	1.1
+++ pkg-plist	1 Apr 2004 04:11:42 -0000
@@ -1,7 +1,4 @@
-bin/dreadnaut 
-bin/dreadnaut1 
-bin/dreadnautL1 
+bin/dreadnaut
+bin/dreadnaut1
+bin/dreadnautL1
 bin/dreadnautB
-%%PORTDOCS%%share/doc/nauty/oldmanual.ps
-%%PORTDOCS%%share/doc/nauty/read.me
-%%PORTDOCS%%@dirrm share/doc/nauty
--- nauty-2.0b9.patch ends here ---

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



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