pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

clang: install clang-cpp symlink as discussed on #pkgsrc



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Thu Feb 25 20:08:57 2016 +0100
Changeset:	1faeec3b349f7d157fbf1649d0b1f80aa2fbc9ce

Modified Files:
	clang-git/Makefile
	clang-git/PLIST
	clang/Makefile
	clang/PLIST

Log Message:
clang: install clang-cpp symlink as discussed on #pkgsrc

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1faeec3b349f7d157fbf1649d0b1f80aa2fbc9ce

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 clang-git/Makefile | 5 +++++
 clang-git/PLIST    | 1 +
 clang/Makefile     | 5 +++++
 clang/PLIST        | 1 +
 4 files changed, 12 insertions(+)

diffs:
diff --git a/clang-git/Makefile b/clang-git/Makefile
index c9b0dd9..6512732 100644
--- a/clang-git/Makefile
+++ b/clang-git/Makefile
@@ -9,4 +9,9 @@ CMAKE_ARGS+=	-DCLANG_ENABLE_STATIC_ANALYZER=OFF
 # We don't want to add a python runtime dependency for that.
 CHECK_INTERPRETER_SKIP+=	share/clang/*
 
+.PHONY: install-clang-cpp
+post-install: install-clang-cpp
+install-clang-cpp:
+	${LN} -s clang ${DESTDIR}${PREFIX}/bin/clang-cpp
+
 .include "../../wip/clang-git/Makefile.common"
diff --git a/clang-git/PLIST b/clang-git/PLIST
index a39de31..4a2f28b 100644
--- a/clang-git/PLIST
+++ b/clang-git/PLIST
@@ -4,6 +4,7 @@ bin/clang
 bin/clang++
 bin/clang-${LLVM_MAJOR}
 bin/clang-cl
+bin/clang-cpp
 bin/clang-format
 include/clang-c/BuildSystem.h
 include/clang-c/CXCompilationDatabase.h
diff --git a/clang/Makefile b/clang/Makefile
index 7c1b024..7fd6136 100644
--- a/clang/Makefile
+++ b/clang/Makefile
@@ -9,4 +9,9 @@ CMAKE_ARGS+=	-DCLANG_ENABLE_STATIC_ANALYZER=OFF
 # We don't want to add a python runtime dependency for that.
 CHECK_INTERPRETER_SKIP+=	share/clang/*
 
+.PHONY: install-clang-cpp
+post-install: install-clang-cpp
+install-clang-cpp:
+	${LN} -s clang ${DESTDIR}${PREFIX}/bin/clang-cpp
+
 .include "../../wip/clang/Makefile.common"
diff --git a/clang/PLIST b/clang/PLIST
index b25ee37..f203b09 100644
--- a/clang/PLIST
+++ b/clang/PLIST
@@ -4,6 +4,7 @@ bin/clang
 bin/clang++
 bin/clang-${LLVM_MAJOR}
 bin/clang-cl
+bin/clang-cpp
 bin/clang-format
 include/clang-c/BuildSystem.h
 include/clang-c/CXCompilationDatabase.h


Home | Main Index | Thread Index | Old Index