Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2016 18:37:19 +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: r426952 - head/devel/autobook
Message-ID:  <201611231837.uANIbJdr081101@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Nov 23 18:37:19 2016
New Revision: 426952
URL: https://svnweb.freebsd.org/changeset/ports/426952

Log:
  - Add LICENSE
  - Add NO_ARCH
  - Use INSTALL_DATA to install files

Modified:
  head/devel/autobook/Makefile

Modified: head/devel/autobook/Makefile
==============================================================================
--- head/devel/autobook/Makefile	Wed Nov 23 18:34:08 2016	(r426951)
+++ head/devel/autobook/Makefile	Wed Nov 23 18:37:19 2016	(r426952)
@@ -9,10 +9,20 @@ MASTER_SITES=	http://sources.redhat.com/
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GNU autoconf, automake, and libtool - The Book
 
-NO_BUILD=	yes	# it's only text!
+LICENSE=	OPL
+LICENSE_NAME=	OPEN PUBLICATION LICENSE
+LICENSE_FILE=	${WRKDIR}/LICENSE
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+post-extract:
+	@${SED} -ne '/<pre>/,/<\/pre>/ { s|.*<pre>||; s|</pre>.*||; s|&#60;|<|g; s|&#62;|>|g; p; }' \
+		< ${WRKSRC}/autobook_284.html > ${WRKDIR}/LICENSE
 
 do-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/autobook
-	${CP} ${WRKSRC}/* ${STAGEDIR}${PREFIX}/share/doc/autobook
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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