Ticket #52376: usbutils.2.patch

File usbutils.2.patch, 676 bytes (added by lbschenkel (Leonardo Brondani Schenkel), 8 years ago)

downloads DB at build time

  • usbutils/Portfile

    diff --git a/usbutils/Portfile b/usbutils/Portfile
    a b  
    55
    66name                usbutils
    77version             007
     8revision            1
    89categories          net
    910platforms           darwin
    1011maintainers         bwalle.de:bernhard
     
    2627# Darwin linker has no "--as-needed"
    2728build.args          AM_LDFLAGS=""
    2829
     30post-extract {
     31    # download latest version of USB ID database
     32    system "/usr/bin/curl -o ${worksrcpath}/usb.ids http://www.linux-usb.org/usb.ids"
     33}
     34
    2935# since many usbutils programs only work on Linux, install the one we need
    3036# ("lsusb" and the hardware database) manually
    3137destroot {