<pre style='margin:0'>
Andrea D'Amore (anddam) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fc0fd1cea811229e3001d8bcd7e15a66d9f983f2">https://github.com/macports/macports-ports/commit/fc0fd1cea811229e3001d8bcd7e15a66d9f983f2</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fc0fd1cea811229e3001d8bcd7e15a66d9f983f2
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Mon Dec 19 14:40:05 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> hidapi-devel: new port, version 0.8.0-20160920
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> A library for interacting with HID-class devices.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Adding as *-devel port as upstream releases are infrequent,
</span><span style='display:block; white-space:pre;color:#404040;'> but master contains valuable fixes for macOS.
</span>---
comms/hidapi-devel/Portfile | 36 +++++++++++++++++++++++++++
comms/hidapi-devel/files/patch-appbundle.diff | 15 +++++++++++
2 files changed, 51 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/comms/hidapi-devel/Portfile b/comms/hidapi-devel/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0d68423
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/comms/hidapi-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup signal11 hidapi a6a622ffb680c55da0de787ff93b80280498330f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name hidapi-devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set portversion 20160920
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set version 0.8.0-${portversion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories comms
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers raimue \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license {GPL-3 BSD Permissive}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description library for interacting with HID-class devices
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HIDAPI is a multi-platform library which allows an application to \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ interface with USB and Bluetooth HID-Class devices.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 aa84a33aa09fb4b82f59e2e40d58c80ac37a5bfc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 32ea444bdd6c6a8a940bfa3287a2dc8c291a141fdc78cd638b37b546b44d95be
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_autoreconf yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant testgui description {Install GUI to test HIDAPI} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:fox
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --enable-testgui
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-appbundle.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set destapp ${destroot}${applications_dir}/HIDAPI-TestGUI.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/testgui/TestGUI.app ${destapp}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/bin/hidapi-testgui ${destapp}/Contents/MacOS/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/comms/hidapi-devel/files/patch-appbundle.diff b/comms/hidapi-devel/files/patch-appbundle.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..459d680
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/comms/hidapi-devel/files/patch-appbundle.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- testgui/Makefile.am.orig 2016-12-19 10:55:01.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ testgui/Makefile.am 2016-12-19 10:57:40.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,12 +20,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if OS_DARWIN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ hidapi_testgui_SOURCES = test.cpp mac_support_cocoa.m mac_support.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# Rules for copying the binary and its dependencies into the app bundle.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT): hidapi-testgui$(EXEEXT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(srcdir)/copy_to_bundle.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-all: all-am TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EXTRA_DIST = \
</span></pre><pre style='margin:0'>
</pre>