ports/63969: [Patch] lang/pnetlib lang/pnet-base -- add PORTDOCS
michael johnson
ahze at ahze.net
Tue Mar 9 08:30:15 UTC 2004
>Number: 63969
>Category: ports
>Synopsis: [Patch] lang/pnetlib lang/pnet-base -- add PORTDOCS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 09 00:30:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: michael johnson
>Release:
>Organization:
>Environment:
>Description:
install docs in pnetlib and pnet-base.
>How-To-Repeat:
diff -ruN lang/pnetlib.orig/Makefile lang/pnetlib/Makefile
--- lang/pnetlib.orig/Makefile Tue Mar 9 02:51:27 2004
+++ lang/pnetlib/Makefile Tue Mar 9 03:18:33 2004
@@ -20,10 +20,28 @@
USE_GMAKE= yes
STRIP= # Nothing to be stripped.
+DOC_FILES= ChangeLog-1 ChangeLog-2 ChangeLog-3 ChangeLog-4 \
+ JScript-embed.txt JScript-internals.txt csunit_howto.html \
+ pcf-font-format.txt translating-pnetlib.txt
+
.include <bsd.port.pre.mk>
+
+.ifndef(PORTDOCS)
+.for plistfile in ${DOC_FILES}
+PLIST_FILES+= share/doc/${PORTNAME}/${plistfile}
+.endfor
+PLIST_DIRS+= share/doc/${PORTNAME}
+.endif
+
post-install:
${STRIP_CMD} ${PREFIX}/lib/cscc/lib/libXsharpSupport.so.0
${STRIP_CMD} ${PREFIX}/lib/cscc/lib/libXsharpSupport.a
+.ifndef(PORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for docfile in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/doc/${docfile} ${DOCSDIR}
+.endfor
+.endif
.include "${.CURDIR}/../pnet/Makefile.pnet"
.include <bsd.port.post.mk>
diff -ruN lang/pnet-base.orig/Makefile lang/pnet-base/Makefile
--- lang/pnet-base.orig/Makefile Tue Mar 9 02:54:36 2004
+++ lang/pnet-base/Makefile Tue Mar 9 03:09:45 2004
@@ -27,6 +27,10 @@
CONFIGURE_ARGS+= --disable-optimizations
.endif
+DOC_FILES= ChangeLog-1 ChangeLog-2 ChangeLog-3 ChangeLog-4 Doxyfile \
+ c_language_abi.html c_users_guide.html embedded.html gtk-sharp.HOWTO \
+ l10n.html libgc_changes.txt pinvoke.html pnet_faq.html pnetasm.texi \
+ unrolling.txt
INFO= pnettools
MAN1= clrwrap.1 csant.1 cscc.1 csdoc.1 csdoc2hier.1 csdoc2html.1 \
csdoc2texi.1 cssrc2html.1 ilalink.1 ilasm.1 ildasm.1 ildd.1 \
@@ -35,6 +39,13 @@
.include <bsd.port.pre.mk>
+.ifndef(PORTDOCS)
+.for plistfile in ${DOC_FILES}
+PLIST_FILES+= share/doc/${PORTNAME}/${plistfile}
+.endfor
+PLIST_DIRS+= share/doc/${PORTNAME}
+.endif
+
post-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "Define optimized CFLAGS with"
@@ -44,6 +55,14 @@
post-patch:
@${REINPLACE_CMD} -e 's|`$$CC -print-multi-os-directory 2>/dev/null`|elf|' \
${WRKSRC}/libffi/configure ${WRKSRC}/libffi/configure.in
+
+post-install:
+.ifndef(PORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for docfile in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/doc/${docfile} ${DOCSDIR}
+.endfor
+.endif
.include "${.CURDIR}/../pnet/Makefile.pnet"
.include <bsd.port.post.mk>
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list