[135265] trunk/dports/devel/cmake/Portfile
michaelld at macports.org
michaelld at macports.org
Mon Apr 20 12:55:33 PDT 2015
Revision: 135265
https://trac.macports.org/changeset/135265
Author: michaelld at macports.org
Date: 2015-04-20 12:55:32 -0700 (Mon, 20 Apr 2015)
Log Message:
-----------
cmake:
+ update release to 3.2.2, which addresses ticket #47493;
+ add devel subport.
Modified Paths:
--------------
trunk/dports/devel/cmake/Portfile
Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- trunk/dports/devel/cmake/Portfile 2015-04-20 19:31:18 UTC (rev 135264)
+++ trunk/dports/devel/cmake/Portfile 2015-04-20 19:55:32 UTC (rev 135265)
@@ -5,8 +5,7 @@
PortGroup muniversal 1.0
name cmake
-version 3.2.1
-set branch [join [lrange [split ${version} .] 0 1] .]
+
categories devel
license BSD
installs_libs no
@@ -17,12 +16,50 @@
Unlike many cross-platform systems, CMake is designed to be \
used in conjunction with the native build environment.
homepage http://www.cmake.org/
-master_sites http://www.cmake.org/files/v${branch}/
platforms darwin freebsd
-checksums rmd160 8c102bce34d3c9ccb328ec8b629dcc91142a7243 \
- sha256 759f1cf6b1a26b037726a9acca6da501235c20ad3671df29d43f29052ef1502c
+dist_subdir cmake
+subport cmake-devel {}
+
+set branch 3.2
+
+if {${subport} eq ${name}} {
+
+ # release
+
+ version ${branch}.2
+ checksums rmd160 48eb3d047b6bf9671fcf8ef79908a09b710bffeb \
+ sha256 ade94e6e36038774565f2aed8866415443444fb7a362eb0ea5096e40d5407c78
+
+ conflicts cmake-devel
+
+ master_sites http://www.cmake.org/files/v${branch}/
+
+ livecheck.type regex
+ livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
+ livecheck.url [lindex $master_sites 0]
+
+} else {
+
+ # devel
+
+ version 20150419
+ set hash gfce170
+ checksums rmd160 f051fcd95acb98382cd10f68451318a2b5d70014 \
+ sha256 07a586b2ffb08029480a3cb32740329265ee23e5441df1e4b330629d73d3600c
+
+ master_sites http://www.cmake.org/files/dev/
+ distname ${name}-${branch}.${version}-${hash}
+ conflicts cmake
+
+ livecheck.type regex
+ livecheck.regex (${name}-\[0-9a-g.-\]+)${extract.suffix}
+ livecheck.version ${distname}
+ livecheck.url http://www.cmake.org/files/dev/
+
+}
+
depends_lib-append port:curl \
port:expat \
port:zlib \
@@ -183,7 +220,3 @@
return -code error "Invalid variant selection"
}
}
-
-livecheck.type regex
-livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
-livecheck.url [lindex $master_sites 0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150420/ab00467b/attachment.html>
More information about the macports-changes
mailing list