diff options
author | brooks <brooks@FreeBSD.org> | 2013-06-13 07:11:32 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-06-13 07:11:32 +0800 |
commit | a4fe8db8e7a6a6b287ae64a920699c762f95b781 (patch) | |
tree | b055f1702bf86544ae4828f44e0684a0313c039a /lang | |
parent | 844a77802dc307f0cc2840d26f527779cff19d68 (diff) | |
download | freebsd-ports-gnome-a4fe8db8e7a6a6b287ae64a920699c762f95b781.tar.gz freebsd-ports-gnome-a4fe8db8e7a6a6b287ae64a920699c762f95b781.tar.zst freebsd-ports-gnome-a4fe8db8e7a6a6b287ae64a920699c762f95b781.zip |
Fix two plist bugs. Only install the manpage as clang33.1 not also as
clang.1. Include clang-format in the set of commands.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/clang33/Makefile | 19 | ||||
-rw-r--r-- | lang/clang33/pkg-plist | 2 |
2 files changed, 13 insertions, 8 deletions
diff --git a/lang/clang33/Makefile b/lang/clang33/Makefile index 7ff62f943808..84569f32220b 100644 --- a/lang/clang33/Makefile +++ b/lang/clang33/Makefile @@ -2,7 +2,7 @@ PORTNAME= clang DISTVERSION= 3.3rc3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang devel MASTER_SITES= http://llvm.org/pre-releases/3.3/rc3/ DISTNAME= cfe-source-${DISTVERSION} @@ -51,6 +51,8 @@ OPTIONS_DEFINE= ASSERTS DOCS ASSERTS_DESC= Enable assertions (thread unsafe) CONFIGURE_ARGS+= --enable-optimized +# Build some docs manually later +CONFIGURE_ARGS+= --disable-docs MAN1= clang${LLVM_SUFFIX}.1 @@ -61,6 +63,7 @@ COMMANDS= c-index-test \ clang++ \ clang-check \ clang-cpp \ + clang-format \ clang-tblgen FIRST_COMMAND= ${COMMANDS:C/^/XXXX/1:MXXXX*:C/^XXXX//} @@ -74,12 +77,6 @@ CONFIGURE_ARGS+= --disable-assertions RELTYPE= Release .endif -.if ${PORT_OPTIONS:MDOCS} -CONFIGURE_ARGS+= --enable-docs -.else -CONFIGURE_ARGS+= --disable-docs -.endif - .include <bsd.port.pre.mk> .if ${ARCH} == "sparc64" @@ -108,7 +105,10 @@ pre-build: cd ${WRKSRC}/utils/unittest && ${GMAKE} post-build: - @cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} clang.1 + @cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} man +.if ${PORT_OPTIONS:MDOCS} + @cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} html ps +.endif post-install: ${LN} -sf ${LLVM_PREFIX}/bin/clang ${LLVM_PREFIX}/bin/clang-cpp @@ -118,6 +118,9 @@ post-install: ${LN} -f ${PREFIX}/bin/${FIRST_COMMAND}${LLVM_SUFFIX} \ ${PREFIX}/bin/${command}${LLVM_SUFFIX} .endfor +.if ${PORT_OPTIONS:MDOCS} + cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} install-html install-ps +.endif ${INSTALL_MAN} ${WRKSRC}/tools/clang/docs/tools/clang.1 \ ${MANPREFIX}/man/man1/clang${LLVM_SUFFIX}.1 diff --git a/lang/clang33/pkg-plist b/lang/clang33/pkg-plist index 1f0c9e72b9fa..c22f9b542428 100644 --- a/lang/clang33/pkg-plist +++ b/lang/clang33/pkg-plist @@ -3,12 +3,14 @@ bin/clang33 bin/clang++33 bin/clang-check33 bin/clang-cpp33 +bin/clang-format33 bin/clang-tblgen33 llvm33/bin/c-index-test llvm33/bin/clang llvm33/bin/clang++ llvm33/bin/clang-check llvm33/bin/clang-cpp +llvm33/bin/clang-format llvm33/bin/clang-tblgen llvm33/include/clang-c/CXCompilationDatabase.h llvm33/include/clang-c/CXString.h |