[129388] trunk/dports/science/uhd/Portfile

michaelld at macports.org michaelld at macports.org
Fri Dec 12 06:02:44 PST 2014


Revision: 129388
          https://trac.macports.org/changeset/129388
Author:   michaelld at macports.org
Date:     2014-12-12 06:02:44 -0800 (Fri, 12 Dec 2014)
Log Message:
-----------
uhd*: override default version string to be MacPorts-specific.

Modified Paths:
--------------
    trunk/dports/science/uhd/Portfile

Modified: trunk/dports/science/uhd/Portfile
===================================================================
--- trunk/dports/science/uhd/Portfile	2014-12-12 13:03:03 UTC (rev 129387)
+++ trunk/dports/science/uhd/Portfile	2014-12-12 14:02:44 UTC (rev 129388)
@@ -24,10 +24,15 @@
     set base_version 3.8.0
     github.setup    EttusResearch uhd 00[join [split ${base_version} "."] "_00"] release_
     version         ${base_version}
+    revision        1
     conflicts       uhd-devel
     checksums       rmd160 9c1ddfc1b0c1df7e7747fc242c7085ebc2347380 \
                     sha256 a1e5b359cbf7decafabc95b848184809884583eba34b429d5ee9dd51a0c32742
 
+    # set the version override string
+
+    set UHD_VERSION_INFO "Release"
+
     # overload the github livecheck regex to look for versions that
     # are just numbers and '_', no letters (e.g., "3.7.3_rc2").
 
@@ -44,6 +49,7 @@
     conflicts       uhd
     github.setup    EttusResearch uhd 82ca8a921cae477275fdcda8df87a76784587251
     version         20141205
+    revision        1
     checksums       rmd160 d348fb2c7e99ad8336b1e23d4c0c10c9416382fa \
                     sha256 298da86b9beeb3265aec231a4ac5839db32e3536021cac685ddd380e6d9c23a2
 
@@ -52,6 +58,10 @@
 
     # livecheck.url   ${github.homepage}/commits/maint.atom
 
+    # set the version override string
+
+    set UHD_VERSION_INFO "git-[string range ${github.version} 0 7](${version})"
+
 }
 
 # override the github Portgroup's homepage setting
@@ -95,6 +105,12 @@
     -DCURSES_LIBRARY=${prefix}/lib/libcurses.dylib \
     -DCURSES_NCURSES_LIBRARY=${prefix}/lib/libncurses.dylib
 
+# override default version string to be MacPorts-specific
+
+configure.args-append \
+    -DUHD_GIT_COUNT="MacPorts" \
+    -DUHD_GIT_HASH="${UHD_VERSION_INFO}"
+
 # directory to install shared UHD files
 # (examples, images, modules, tests, utilities)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141212/d75f8bbc/attachment-0001.html>


More information about the macports-changes mailing list