[137101] trunk/dports/devel/libusb/Portfile

michaelld at macports.org michaelld at macports.org
Thu Jun 4 16:01:41 PDT 2015


Revision: 137101
          https://trac.macports.org/changeset/137101
Author:   michaelld at macports.org
Date:     2015-06-04 16:01:41 -0700 (Thu, 04 Jun 2015)
Log Message:
-----------
libusb:
+ update to 1.0.19, which addresses ticket #44336;
+ move to using github, which requires non-standard configuration;
+ build verbosely;
+ fix livecheck for just releases.

Modified Paths:
--------------
    trunk/dports/devel/libusb/Portfile

Modified: trunk/dports/devel/libusb/Portfile
===================================================================
--- trunk/dports/devel/libusb/Portfile	2015-06-04 22:23:29 UTC (rev 137100)
+++ trunk/dports/devel/libusb/Portfile	2015-06-04 23:01:41 UTC (rev 137101)
@@ -1,10 +1,10 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem      1.0
+PortGroup       github 1.0
 
 name            libusb
-version         1.0.18
 categories      devel
 
 description     library for USB device access
@@ -17,12 +17,20 @@
 license         LGPL-2.1+
 maintainers     michaelld toby
 
-master_sites    sourceforge:libusb
-distname        libusb-${version}
-checksums       rmd160 8c1bb3591f876e255fbe17fa6aa1209297beb6ac \
-                sha256 c73f5cec45a5de94418da4e151b7232958571926984acfb9bce02b9424e83720
+github.setup    libusb libusb 1.0.19 v
+checksums       rmd160 c1ebcb76759695ef288bf1137e131ca1fa3456df \
+                sha256 5b743a35a13af01f965818ca4a5f78d56b0335426632a6dc5820f5f66fd4edd4
 
-use_bzip2       yes
+configure {
+    ui_debug "executing 'cd ${worksrcpath} && CC=${configure.cc} CFLAGS='${configure.cflags}' ./autogen.sh --prefix=${prefix}'"
+    system -W ${worksrcpath} "CC=${configure.cc} CFLAGS='${configure.cflags}' ./autogen.sh  --prefix=${prefix}"
+}
 
-livecheck.url   http://sourceforge.net/projects/libusb/files/libusb-1.0/
-livecheck.regex "${name}-(\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)${extract.suffix}"
+# build verbosely
+
+build.args-append AM_DEFAULT_VERBOSITY=1
+
+# overload the github livecheck regex to look for versions that
+# are just numbers and '.', no letters (e.g., "1.0.19rc1").
+
+livecheck.regex archive/[join ${github.tag_prefix} ""](\[0-9\.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150604/c40dfbdd/attachment.html>


More information about the macports-changes mailing list