ports/110852: [PATCH] devel/bnfc: fix the permission of bin/bnfc
Li-Wen Hsu
lwhsu at lwhsu.org
Mon Mar 26 13:00:12 UTC 2007
>Number: 110852
>Category: ports
>Synopsis: [PATCH] devel/bnfc: fix the permission of bin/bnfc
>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: Mon Mar 26 13:00:11 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Li-Wen Hsu
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD jail0.lwhsu.csie.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 26 00:04:54 CST 2007
>Description:
- Fix the permission of bin/bnfc, binary executable should use INSTALL_PROGRAM
- NOPORTDOCS shoule not apply to things in EXAMPLESDIR
- We can use bsd.port.mk in this port
Port maintainer (kaiw27 at gmail.com) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- bnfc-2.3b_1.patch begins here ---
diff -ruN -ruN --exclude=CVS /usr/ports/devel/bnfc/Makefile /home/lwhsu/ports/devel/bnfc/Makefile
--- /usr/ports/devel/bnfc/Makefile Sun Feb 11 20:30:38 2007
+++ /home/lwhsu/ports/devel/bnfc/Makefile Mon Mar 26 20:51:24 2007
@@ -7,6 +7,7 @@
PORTNAME= bnfc
PORTVERSION= 2.3b
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.cs.chalmers.se/~markus/BNFC/ \
http://www.cs.chalmers.se/Cs/Grundutb/Kurser/komp/current/resources/
@@ -20,18 +21,17 @@
USE_GMAKE= yes
-.include <bsd.port.pre.mk>
-
do-install:
- ${INSTALL_DATA} ${WRKSRC}/bnfc ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bnfc ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
post-install:
+ ${RM} -f ${WRKSRC}/examples/.cvsignore
${RM} -f ${WRKSRC}/examples/haskell-core/.cvsignore
${MKDIR} ${EXAMPLESDIR}
- ${CP} -pR ${WRKSRC}/examples/* ${EXAMPLESDIR}
+ ${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
+.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/LBNF-report.tex ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN -ruN --exclude=CVS /usr/ports/devel/bnfc/pkg-plist /home/lwhsu/ports/devel/bnfc/pkg-plist
--- /usr/ports/devel/bnfc/pkg-plist Sun Feb 11 20:30:38 2007
+++ /home/lwhsu/ports/devel/bnfc/pkg-plist Mon Mar 26 20:46:05 2007
@@ -1,27 +1,27 @@
bin/bnfc
+%%EXAMPLESDIR%%/C4.cf
+%%EXAMPLESDIR%%/JavaletteLight.cf
+%%EXAMPLESDIR%%/OCL.cf
+%%EXAMPLESDIR%%/Prolog.cf
+%%EXAMPLESDIR%%/fstStudio.cf
+%%EXAMPLESDIR%%/haskell-core/AbsCore.hcr
+%%EXAMPLESDIR%%/haskell-core/Core.cf
+%%EXAMPLESDIR%%/haskell-core/Hello.hcr
+%%EXAMPLESDIR%%/haskell-core/ParCore.hcr
+%%EXAMPLESDIR%%/haskell-core/README
+%%EXAMPLESDIR%%/haskell-core/TopCore.hs
+%%EXAMPLESDIR%%/haskell-core/notes.txt
+%%EXAMPLESDIR%%/koe.jll
+%%EXAMPLESDIR%%/koe2.c
+%%EXAMPLESDIR%%/multi/Arithm.cf
+%%EXAMPLESDIR%%/multi/TestArithm.hs
+%%EXAMPLESDIR%%/multi/types/Types.cf
+%%EXAMPLESDIR%%/multi/types/ex.old
+%%EXAMPLESDIR%%/prolog.pl
+%%EXAMPLESDIR%%/small.pl
+ at dirrm %%EXAMPLESDIR%%/multi/types
+ at dirrm %%EXAMPLESDIR%%/multi
+ at dirrm %%EXAMPLESDIR%%/haskell-core
+ at dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%%%DOCSDIR%%/LBNF-report.tex
-%%PORTDOCS%%%%EXAMPLESDIR%%/C4.cf
-%%PORTDOCS%%%%EXAMPLESDIR%%/JavaletteLight.cf
-%%PORTDOCS%%%%EXAMPLESDIR%%/OCL.cf
-%%PORTDOCS%%%%EXAMPLESDIR%%/Prolog.cf
-%%PORTDOCS%%%%EXAMPLESDIR%%/fstStudio.cf
-%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/AbsCore.hcr
-%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/Core.cf
-%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/Hello.hcr
-%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/ParCore.hcr
-%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/README
-%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/TopCore.hs
-%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/notes.txt
-%%PORTDOCS%%%%EXAMPLESDIR%%/koe.jll
-%%PORTDOCS%%%%EXAMPLESDIR%%/koe2.c
-%%PORTDOCS%%%%EXAMPLESDIR%%/multi/Arithm.cf
-%%PORTDOCS%%%%EXAMPLESDIR%%/multi/TestArithm.hs
-%%PORTDOCS%%%%EXAMPLESDIR%%/multi/types/Types.cf
-%%PORTDOCS%%%%EXAMPLESDIR%%/multi/types/ex.old
-%%PORTDOCS%%%%EXAMPLESDIR%%/prolog.pl
-%%PORTDOCS%%%%EXAMPLESDIR%%/small.pl
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/multi/types
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/multi
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/haskell-core
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- bnfc-2.3b_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list