[88039] trunk/dports/lang
jeremyhu at macports.org
jeremyhu at macports.org
Fri Dec 16 18:44:00 PST 2011
Revision: 88039
http://trac.macports.org/changeset/88039
Author: jeremyhu at macports.org
Date: 2011-12-16 18:43:59 -0800 (Fri, 16 Dec 2011)
Log Message:
-----------
clang, clang-devel: Mark as replaced by the versioned clang ports
Modified Paths:
--------------
trunk/dports/lang/clang/Portfile
trunk/dports/lang/clang-devel/Portfile
Modified: trunk/dports/lang/clang/Portfile
===================================================================
--- trunk/dports/lang/clang/Portfile 2011-12-17 02:38:46 UTC (rev 88038)
+++ trunk/dports/lang/clang/Portfile 2011-12-17 02:43:59 UTC (rev 88039)
@@ -4,6 +4,7 @@
name clang
version 2.9
+revision 1
categories lang
platforms darwin
maintainers mfeiri
@@ -21,75 +22,12 @@
library to parse C/C++ code.
homepage http://clang.llvm.org/
-master_sites http://llvm.org/releases/${version}/
-extract.suffix .tgz
-worksrcdir llvm-${version}
-distfiles-append llvm-${version}${extract.suffix}
-checksums ${distname}${extract.suffix} \
- md5 634de18d04b7a4ded19ec4c17d23cfca \
- sha1 5fd3b5cec050ec12858c1602b23cf096282ad4a4 \
- rmd160 4ab79cbd0e2ad25a2272e6ee2fbbf546818dbd73 \
- llvm-${version}${extract.suffix} \
- md5 793138412d2af2c7c7f54615f8943771 \
- sha1 500f587f840199ac53c4fc7572839d08fa9d9123 \
- rmd160 caeaa067fda1eb34196b356a087645f83731cfb7
+replaced_by clang-2.9
-depends_lib port:llvm port:libffi
+distfiles
-default_variants +analyzer
-universal_variant no
-build.env-append REQUIRE_RTTI=1
-
-build.target clang-only
-destroot.target install-clang-c
-configure.cppflags
-configure.ldflags
-configure.args --enable-optimized --enable-shared \
- --enable-bindings=none --enable-libffi \
- --disable-assertions
-
-platform darwin {
- if {${build_arch} == "i386" } {
- configure.pre_args-append --build=i686-apple-darwin${os.major}
- } else {
- configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
- }
-
- depends_run-append port:ld64
-
- # clang uses hardcoded paths to find ld, see lib/Driver/ToolChains.cpp
- post-destroot {
- file mkdir ${destroot}${prefix}/libexec/gcc/i686-apple-darwin${os.major}/4.2.1
- ln -s ../../../../bin/ld ${destroot}${prefix}/libexec/gcc/i686-apple-darwin${os.major}/4.2.1/ld
- }
-
+pre-configure {
+ ui_error "${name} has been replaced by ${replaced_by}. Please install ${replaced_by} instead."
+ return -code error "obsolete port"
}
-
-post-extract {
- file rename ${workpath}/${distname} ${worksrcpath}/tools/clang
-}
-
-variant analyzer description {Install clang static analyzer} {
- depends_run-append bin:python:python26 bin:perl:perl5
- post-destroot {
- reinplace "s|/usr/bin/env perl|${prefix}/bin/perl5|g" \
- ${worksrcpath}/tools/clang/tools/scan-build/ccc-analyzer \
- ${worksrcpath}/tools/clang/tools/scan-build/c++-analyzer \
- ${worksrcpath}/tools/clang/tools/scan-build/scan-build
- reinplace "s|/usr/bin/env python|${prefix}/bin/python2.6|g" \
- ${worksrcpath}/tools/clang/tools/scan-build/set-xcode-analyzer \
- ${worksrcpath}/tools/clang/tools/scan-view/scan-view
-
- file rename ${worksrcpath}/tools/clang/tools/scan-build ${destroot}${prefix}/libexec/
- file rename ${worksrcpath}/tools/clang/tools/scan-view ${destroot}${prefix}/libexec/
-
- ln -s ${prefix}/libexec/scan-build/scan-build ${destroot}${prefix}/bin/scan-build
- ln -s ${prefix}/libexec/scan-view/scan-view ${destroot}${prefix}/bin/scan-view
- ln -s ${prefix}/bin ${destroot}${prefix}/libexec/scan-build/bin
- }
-}
-
-livecheck.type regex
-livecheck.url http://llvm.org/releases/
-livecheck.regex {'(\d+\.\d+)'}
Modified: trunk/dports/lang/clang-devel/Portfile
===================================================================
--- trunk/dports/lang/clang-devel/Portfile 2011-12-17 02:38:46 UTC (rev 88038)
+++ trunk/dports/lang/clang-devel/Portfile 2011-12-17 02:43:59 UTC (rev 88039)
@@ -4,8 +4,8 @@
name clang-devel
conflicts clang
-svn.revision 146326
-version 3.0-r${svn.revision}
+epoch 1
+version 3.0
categories lang
platforms darwin
maintainers jeremyhu openmaintainer
@@ -24,57 +24,11 @@
homepage http://clang.llvm.org/
-worksrcdir llvm-${version}
+replaced_by clang-3.0
-depends_lib port:llvm-devel port:libffi
+distfiles
-default_variants +analyzer
-universal_variant no
-build.env-append REQUIRE_RTTI=1
-
-fetch.type svn
-svn.url http://llvm.org/svn/llvm-project/llvm/trunk
-
-worksrcdir trunk
-
-build.target clang-only
-destroot.target install-clang-c
-configure.cppflags
-configure.ldflags
-configure.args --enable-bindings=none --enable-libffi --enable-shared \
- --enable-optimized --enable-assertions --disable-profiling \
- --enable-debug-symbols --disable-debug-runtime
-
-platform darwin {
- depends_run-append port:ld64
-
- if {${build_arch} == "i386" } {
- configure.pre_args-append --build=i686-apple-darwin${os.major}
- } else {
- configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
- }
+pre-configure {
+ ui_error "${name} has been replaced by ${replaced_by}. Please install ${replaced_by} instead."
+ return -code error "obsolete port"
}
-
-post-extract {
- system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/trunk clang"
-}
-
-variant analyzer description {Install clang static analyzer} {
- depends_run-append bin:python:python26 bin:perl:perl5
- post-destroot {
- reinplace "s|/usr/bin/env perl|${prefix}/bin/perl5|g" \
- ${worksrcpath}/tools/clang/tools/scan-build/ccc-analyzer \
- ${worksrcpath}/tools/clang/tools/scan-build/c++-analyzer \
- ${worksrcpath}/tools/clang/tools/scan-build/scan-build
- reinplace "s|/usr/bin/env python|${prefix}/bin/python2.6|g" \
- ${worksrcpath}/tools/clang/tools/scan-build/set-xcode-analyzer \
- ${worksrcpath}/tools/clang/tools/scan-view/scan-view
-
- file rename ${worksrcpath}/tools/clang/tools/scan-build ${destroot}${prefix}/libexec/
- file rename ${worksrcpath}/tools/clang/tools/scan-view ${destroot}${prefix}/libexec/
-
- ln -s ${prefix}/libexec/scan-build/scan-build ${destroot}${prefix}/bin/scan-build
- ln -s ${prefix}/libexec/scan-view/scan-view ${destroot}${prefix}/bin/scan-view
- ln -s ${prefix}/bin ${destroot}${prefix}/libexec/scan-build/bin
- }
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111216/48d33e5a/attachment-0001.html>
More information about the macports-changes
mailing list