Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2016 09:00:59 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429486 - head/math/nauty
Message-ID:  <201612260900.uBQ90xXP003042@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Dec 26 09:00:59 2016
New Revision: 429486
URL: https://svnweb.freebsd.org/changeset/ports/429486

Log:
  - Add LICENSE
  - Switch to options helpers

Modified:
  head/math/nauty/Makefile

Modified: head/math/nauty/Makefile
==============================================================================
--- head/math/nauty/Makefile	Mon Dec 26 08:46:36 2016	(r429485)
+++ head/math/nauty/Makefile	Mon Dec 26 09:00:59 2016	(r429486)
@@ -10,19 +10,28 @@ DISTNAME=	${PORTNAME}${PORTVERSION:S!.!!
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Brendan McKay's graph isomorphism tester
 
+LICENSE=	NAUTY
+LICENSE_NAME=	nauty license
+LICENSE_FILE=	${WRKDIR}/LICENSE
+LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
+
 USES=		gmake
 GNU_CONFIGURE=	yes
 MAKEFILE=	makefile
 
+PROGRAMS=	NRswitchg addedgeg amtog biplabg catg complg copyg \
+		countg deledgeg directg dreadnaut dretog genbg geng \
+		genrang gentourng labelg listg multig newedgeg pickg \
+		planarg shortg showg
+
 PORTDOCS=	nug.pdf
 PLIST_FILES=	${PROGRAMS:S!^!bin/!}
 
 OPTIONS_DEFINE=	DOCS
 
-PROGRAMS=	NRswitchg addedgeg amtog biplabg catg complg copyg \
-		countg deledgeg directg dreadnaut dretog genbg geng \
-		genrang gentourng labelg listg multig newedgeg pickg \
-		planarg shortg showg
+post-extract:
+	@${SED} -ne '/AUTHOR/,/RIP/ {s|^\*   ||; s|  *\*$$||;p;}' \
+		< ${WRKSRC}/nauty.h > ${WRKDIR}/LICENSE
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -31,11 +40,13 @@ post-patch:
 
 do-install:
 .for i in ${PROGRAMS}
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
+	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/bin
 .endfor
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
+	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 .endfor
 
 .include <bsd.port.mk>



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