| 1 | # -*- 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 |
| 2 | # $Id$ |
| 3 | |
| 4 | PortSystem 1.0 |
| 5 | |
| 6 | name usbids |
| 7 | version 2016.09.07 |
| 8 | categories sysutils |
| 9 | platforms darwin |
| 10 | maintainers schenkel.net:leonardo openmaintainer |
| 11 | license GPL-2+ BSD-3-Clause |
| 12 | description The USB ID Repository |
| 13 | long_description This is a public repository of all known ID's used in USB \ |
| 14 | devices: ID's of vendors, devices, subsystems and device \ |
| 15 | classes. It is used in various programs (e.g., The USB \ |
| 16 | Utilities) to display full human-readable names instead \ |
| 17 | of cryptic numeric codes. |
| 18 | homepage http://www.linux-usb.org/usb-ids.html |
| 19 | |
| 20 | master_sites http://www.linux-usb.org/ |
| 21 | distname usb.ids |
| 22 | extract.suffix .gz |
| 23 | checksums rmd160 9a9b3f751611a859f3b8ead57c1402b253a2ada9 \ |
| 24 | sha256 fb5565473730a024f76e97ebcb64643cf59510196591400c41035b376c6e48f8 |
| 25 | dist_subdir ${name}/${version} |
| 26 | |
| 27 | extract.mkdir yes |
| 28 | extract.post_args > ${worksrcpath}/usb.ids |
| 29 | patchfiles patch-20160907.diff |
| 30 | use_configure no |
| 31 | |
| 32 | build {} |
| 33 | destroot { |
| 34 | system "/usr/bin/gzip -9 ${worksrcpath}/usb.ids" |
| 35 | xinstall ${worksrcpath}/usb.ids.gz ${destroot}${prefix}/share/ |
| 36 | } |
| 37 | pre-activate { |
| 38 | if {![catch {set installed [lindex [registry_active usbutils] 0]}]} { |
| 39 | set _version [lindex $installed 1] |
| 40 | set _revision [lindex $installed 2] |
| 41 | if {[vercmp $_version 007] < 0 || ([vercmp $_version 007] == 0 && $_revision == 0)} { |
| 42 | registry_deactivate_composite usbutils "" [list ports_nodepcheck 1] |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | livecheck.type regex |
| 48 | livecheck.url http://www.linux-usb.org/usb.ids |
| 49 | livecheck.regex "Version: (\\d{4}\.\\d{2}\.\\d{2})" |