ports/188387: fix build: textproc/htmlc
Timothy Beyer
beyert at cs.ucr.edu
Wed Apr 9 03:10:00 UTC 2014
>Number: 188387
>Category: ports
>Synopsis: fix build: textproc/htmlc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 09 03:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Timothy Beyer
>Release: FreeBSD 10.0-RELEASE amd64
>Organization:
no organization
>Environment:
System: FreeBSD hypercube.aeonnet 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/us
r/obj/usr/src/sys/GENERIC amd64
>Description:
- turn off warnings as errors flag (-warn-error A) (extraneous variables), which fixes the build for newer versions of ocamlc.
- Add license file support (license is a custom Inria license)
>How-To-Repeat:
Apply patch and build port
>Fix:
The included patch
--- htmlc.diff begins here ---
diff -urN htmlc.orig/Makefile htmlc/Makefile
--- htmlc.orig/Makefile 2014-01-28 07:54:23.000000000 -0800
+++ htmlc/Makefile 2014-04-08 19:52:29.000000000 -0700
@@ -3,6 +3,7 @@
PORTNAME= htmlc
PORTVERSION= 2.21.0
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://htmlc.inria.fr/ \
http://caml.inria.fr/distrib/bazar-ocaml/htmlc/
@@ -13,6 +14,8 @@
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
+LICENSE_FILE= LICENSE
+
USES= gmake
PLIST_FILES= bin/htmlc bin/htmlc.byt share/htmlc/env
@@ -29,6 +32,7 @@
${RM} -f ${WRKSRC}/doc/Makefile
${TOUCH} ${WRKSRC}/doc/Makefile
${ECHO} "all:" > ${WRKSRC}/doc/Makefile
+ ${REINPLACE_CMD} 's|-warn-error A||g' ${WRKSRC}/config/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/compiler/htmlc ${STAGEDIR}${PREFIX}/bin
--- htmlc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list