Modified: trunk/dports/lang/libomp/Portfile (148203 => 148204)
--- trunk/dports/lang/libomp/Portfile 2016-04-29 20:04:42 UTC (rev 148203)
+++ trunk/dports/lang/libomp/Portfile 2016-04-29 22:33:05 UTC (rev 148204)
@@ -5,10 +5,9 @@
PortGroup cmake 1.0
PortGroup muniversal 1.0
PortGroup compiler_blacklist_versions 1.0
+PortGroup github 1.0
name libomp
-version 0.0
-revision 266304
maintainers eborisch openmaintainer
homepage http://openmp.llvm.org
description The OpenMP subproject of LLVM
@@ -23,11 +22,37 @@
supported_archs i386 x86_64
license {MIT NCSA}
-fetch.type svn
-svn.url http://llvm.org/svn/llvm-project/openmp/trunk
-svn.revision ${revision}
-worksrcdir ${name}-${version}/runtime
+subport libomp-devel {}
+if {${subport} ne ${name}} {
+ conflicts libomp
+ github.setup llvm-mirror openmp 843428c
+ worksrcdir openmp-${version}/runtime
+ version 267472
+ name ${subport}
+ checksums \
+ rmd160 48e95915128a3061d20a1e130d143dc00bdf8a88 \
+ sha256 47cfbc8e7e0c84641936a1e2b14e01558ac097dec6466f01d8be4a91617f2427
+
+ livecheck.url \
+ http://llvm.org/viewvc/llvm-project/openmp/trunk/?view=log
+ livecheck.version ${version}
+ livecheck.regex revision=(\[0-9\]+)
+} else {
+ conflicts libomp-devel
+ github.setup llvm-mirror openmp 380 svn-tags/RELEASE_
+ worksrcdir openmp-${version}/final/runtime
+ version 3.8.0
+ # Moved to epoch 1 for svn # -> version # change.
+ epoch 1
+ name libomp
+ checksums \
+ rmd160 59bd6743a4b4f56c8cab5abe641517991810b3be \
+ sha256 7ccfce5a8427ae0903e31b967dd16fe351e4c68f40645bb479381f3be2195697
+ livecheck.url https://github.com/llvm-mirror/openmp/branches
+ livecheck.regex svn-tags/RELEASE_(\[0-9\]+)
+}
+
cmake.out_of_source yes
# According to documentation builds with clang >= 3.3
@@ -63,7 +88,6 @@
"Install (links to) omp.h and libs into ${prefix}/(include|lib)" {}
post-extract {
- file rename ${workpath}/trunk ${workpath}/${name}-${version}
# Patch tool for build with CMAKE_INSTALL_PREFIX
reinplace "/bulk.*compatibility/s/s\+/s+.*/" \
tools/check-depends.pl
@@ -99,8 +123,3 @@
test.run yes
test.target libomp-micro-tests
-livecheck.url \
- http://llvm.org/viewvc/llvm-project/openmp/trunk/?view=log
-
-livecheck.version ${revision}
-livecheck.regex revision=(\[0-9\]+)