From 703e349b23030552665ddbfa9b456d8f0c345f38 Mon Sep 17 00:00:00 2001 From: mva Date: Sun, 8 Dec 2013 13:25:49 +0000 Subject: - Fix the usage of 'python' to get rid of the implicit lang/python dependency Approved by: portmgr (blanket) --- devel/llvm/Makefile | 14 ++++++++++++-- devel/llvm31/Makefile | 15 +++++++++++++-- devel/llvm32/Makefile | 14 +++++++++++++- 3 files changed, 38 insertions(+), 5 deletions(-) (limited to 'devel') diff --git a/devel/llvm/Makefile b/devel/llvm/Makefile index ec0fb79320b0..9c53ca89b238 100644 --- a/devel/llvm/Makefile +++ b/devel/llvm/Makefile @@ -25,9 +25,19 @@ DEPRECATED= Migrate to devel/llvm32 or newer EXPIRATION_DATE= 2013-11-04 GNU_CONFIGURE= yes -USES= gmake perl5 +USES= gmake perl5 shebangfix USE_LDCONFIG= yes -USE_PYTHON_BUILD= yes +USE_PYTHON_BUILD= 2 + +python_OLD_CMD= /usr/bin/env python +python_CMD= /usr/bin/env python2 +SHEBANG_FILES= test/Scripts/coff-dump.py test/Scripts/elf-dump \ + test/Scripts/macho-dumpx lib/Target/NVPTX/gen-register-defs.py \ + utils/clang-parse-diagnostics-file utils/release/findRegressions-nightly.py \ + utils/release/findRegressions-simple.py utils/Misc/zkill \ + utils/llvm-lit/llvm-lit.in utils/Target/ARM/analyze-match-table.py \ + utils/llvm-build/llvm-build utils/lit/lit.py utils/lit/lit/ProgressBar.py \ + utils/lit/lit/main.py # Suggested tweaks from http://llvm.org/docs/Packaging.html CONFIGURE_ARGS+= --enable-shared diff --git a/devel/llvm31/Makefile b/devel/llvm31/Makefile index 758dc92881ad..9f058fc5ccca 100644 --- a/devel/llvm31/Makefile +++ b/devel/llvm31/Makefile @@ -21,10 +21,21 @@ BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c CONFLICTS= llvm-[3]* llvm-devel-[23]* llvm29-* -USES= gmake perl5 +USES= gmake perl5 shebangfix GNU_CONFIGURE= yes USE_LDCONFIG= yes -USE_PYTHON_BUILD= yes +USE_PYTHON_BUILD= 2 + +python_OLD_CMD= /usr/bin/env python +python_CMD= /usr/bin/env python2 +SHEBANG_FILES= test/Scripts/coff-dump.py test/Scripts/elf-dump \ + test/Scripts/macho-dumpx utils/clang-parse-diagnostics-file \ + utils/lit/lit/main.py utils/lit/lit/ProgressBar.py \ + utils/lit/lit.py utils/llvm-build/llvm-build \ + utils/llvm-lit/llvm-lit.in utils/Misc/zkill \ + utils/release/findRegressions-nightly.py \ + utils/release/findRegressions-simple.py \ + utils/Target/ARM/analyze-match-table.py # Suggested tweaks from http://llvm.org/docs/Packaging.html CONFIGURE_ARGS+= --enable-shared diff --git a/devel/llvm32/Makefile b/devel/llvm32/Makefile index 6aecad38fcc6..c22c532c2fef 100644 --- a/devel/llvm32/Makefile +++ b/devel/llvm32/Makefile @@ -19,11 +19,23 @@ DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${LLVM_SUFFIX} DATADIR= ${PREFIX}/share/${PORTNAME}${LLVM_SUFFIX} UNIQUENAME= ${PORTNAME}${LLVM_SUFFIX} -USES= gmake perl5 +USES= gmake perl5 shebangfix GNU_CONFIGURE= yes GNU_CONFIGURE_PREFIX= ${LLVM_PREFIX} USE_LDCONFIG= ${LLVM_PREFIX}/lib +python_OLD_CMD= /usr/bin/env python +python_CMD= /usr/bin/env python2 +SHEBANG_FILES= test/Scripts/coff-dump.py test/Scripts/elf-dump \ + test/Scripts/macho-dumpx lib/Target/NVPTX/gen-register-defs.py \ + utils/clang-parse-diagnostics-file \ + utils/release/findRegressions-nightly.py \ + utils/release/findRegressions-simple.py \ + utils/Misc/zkill utils/llvm-lit/llvm-lit.in \ + utils/Target/ARM/analyze-match-table.py \ + utils/llvm-build/llvm-build utils/lit/lit.py \ + utils/lit/lit/ProgressBar.py utils/lit/lit/main.py + SUB_FILES= llvm-wrapper.sh SUB_LIST= LLVM_PREFIX="${LLVM_PREFIX}" LLVM_SUFFIX="${LLVM_SUFFIX}" -- cgit