ports/169969: [MAINTAINER] lang/clay: add option to build clay-bindgen
Jyun-Yan You
jyyou at cs.nctu.edu.tw
Wed Jul 18 12:00:05 UTC 2012
>Number: 169969
>Category: ports
>Synopsis: [MAINTAINER] lang/clay: add option to build clay-bindgen
>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 Jul 18 12:00:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jyun-Yan You
>Release: FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD csduty.cs.nctu.edu.tw 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011
>Description:
- Add option to build clay-bindgen
Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- clay-0.1.1_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/lang/clay/Makefile ./Makefile
--- /usr/ports/lang/clay/Makefile 2012-06-26 18:13:38.000000000 +0800
+++ ./Makefile 2012-07-18 18:26:35.493737000 +0800
@@ -7,7 +7,7 @@
PORTNAME= clay
PORTVERSION= 0.1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= lang
MASTER_SITES= https://github.com/jckarter/${PORTNAME}/tarball/v${PORTVERSION}/
DISTNAME= jckarter-${PORTNAME}-v${PORTVERSION}-0-g${GITVERSION}
@@ -17,7 +17,11 @@
LICENSE= BSD
-BUILD_DEPENDS= llvm>=3.0:${PORTSDIR}/devel/llvm
+BUILD_DEPENDS= llvm>=3.1:${PORTSDIR}/devel/llvm
+
+OPTIONS_DEFINE= BINDGEN
+BINDGEN_DESC= Build with binding generator
+OPTIONS_DEFAULT= BINDGEN
GITVERSION= 850c5c9
FETCH_ARGS= -pRr
@@ -33,9 +37,16 @@
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 900044
-BUILD_DEPENDS+= clang>=3.0:${PORTSDIR}/lang/clang
-RUN_DEPENDS+= clang>=3.0:${PORTSDIR}/lang/clang
+.if ${PORT_OPTIONS:MBINDGEN}
+PLIST_SUB+= BINDGEN=""
+.else
+PLIST_SUB+= BINDGEN="@comment "
+CMAKE_ARGS+= -DBUILD_BINDGEN=false
+.endif
+
+.if ${OSVERSION} < 900044 || ${PORT_OPTIONS:MBINDGEN}
+BUILD_DEPENDS+= clang>=3.1:${PORTSDIR}/lang/clang
+RUN_DEPENDS+= clang>=3.1:${PORTSDIR}/lang/clang
.endif
.if defined(NOPORTDOCS)
diff -ruN --exclude=CVS /usr/ports/lang/clay/pkg-plist ./pkg-plist
--- /usr/ports/lang/clay/pkg-plist 2012-01-26 20:08:11.000000000 +0800
+++ ./pkg-plist 2012-07-18 18:26:35.490737000 +0800
@@ -1,4 +1,5 @@
bin/clay
+%%BINDGEN%%bin/clay-bindgen
lib/lib-clay/algorithms/algorithms.clay
lib/lib-clay/algorithms/heaps/heaps.clay
lib/lib-clay/algorithms/introsort/introsort.clay
--- clay-0.1.1_2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list