<pre style='margin:0'>
Aaron Madlon-Kay (amake) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8b9e2ea712c9da9e3b09780fb4c84228abeb4c9c">https://github.com/macports/macports-ports/commit/8b9e2ea712c9da9e3b09780fb4c84228abeb4c9c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8b9e2ea712c9da9e3b09780fb4c84228abeb4c9c
</span>Author: Aaron Madlon-Kay <amake@macports.org>
AuthorDate: Tue Nov 12 17:50:10 2019 +0900
<span style='display:block; white-space:pre;color:#404040;'> yubico-authenticator: new port
</span>---
aqua/yubico-authenticator/Portfile | 55 ++++++++++++++++++++++
...ip-installation-for-packaging-in-MacPorts.patch | 42 +++++++++++++++++
2 files changed, 97 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/yubico-authenticator/Portfile b/aqua/yubico-authenticator/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..3a836cb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/yubico-authenticator/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,55 @@
</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 qmake5 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;'>+qt5.depends_component qtdeclarative qtquickcontrols2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name yubico-authenticator
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup Yubico yubioath-desktop 5.0.1 yubioath-desktop-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories aqua security
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {amake @amake} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Tool for generating one-time password codes with YubiKey
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Cross-platform application for generating Open Authentication (OATH) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ time-based TOTP and event-based HOTP one-time password codes, with the help \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ of a YubiKey that protects the shared secrets.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://developers.yubico.com/yubioath-desktop/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 a4a0d1d4a4f67ca940d02d398bae99e74d9f107a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 97bcb5ef12559fa6122bd9ba1cc53ca2e4d932be8b73e1ba2366c77f718574ae \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4847629
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Python version must be synced with pyotherside and yubikey-manager ports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python.version 37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python.branch [string range ${python.version} 0 end-1].[string index ${python.version} end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python.pkgd ${python.prefix}/lib/python${python.branch}/site-packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:pyotherside
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run-append port:yubikey-manager
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles 0001-Remove-pip-installation-for-packaging-in-MacPorts.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Install bundled Python code
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}/${python.pkgd}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy {*}[glob ${worksrcpath}/py/*] ${destroot}${python.pkgd}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Bundled Python is now a symlink to global site-packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${python.pkgd} ${worksrcpath}/yubioath-desktop.app/Contents/MacOS/pymodules
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The default install task insists on putting it in $(INSTALL_ROOT)/usr/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # so we do our own thing here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/yubioath-desktop.app \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "strip Contents/MacOS/yubioath-desktop"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/yubioath-desktop.app "${destroot}/${applications_dir}/Yubico Authenticator.app"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/yubico-authenticator/files/0001-Remove-pip-installation-for-packaging-in-MacPorts.patch b/aqua/yubico-authenticator/files/0001-Remove-pip-installation-for-packaging-in-MacPorts.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..17ad671
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/yubico-authenticator/files/0001-Remove-pip-installation-for-packaging-in-MacPorts.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,42 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 563fa1b5cbbe6816f468ea922f381b0892a60265 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Aaron Madlon-Kay <aaron@madlon-kay.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 12 Nov 2019 16:44:11 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Remove pip installation for packaging in MacPorts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+MacPorts provides the Python modules globally
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ yubioath-desktop.pro | 11 -----------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 11 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/yubioath-desktop.pro b/yubioath-desktop.pro
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f1aff3e..3978e9d 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/yubioath-desktop.pro
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/yubioath-desktop.pro
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -28,16 +28,6 @@ QRC_JSON = resources.json
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Generate first time
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system(python build_qrc.py resources.json)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# Install python dependencies with pip on mac and win
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-win32|macx {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- pip.target = pymodules
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QMAKE_EXTRA_TARGETS += pip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PRE_TARGETDEPS += pymodules
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QMAKE_CLEAN += -r pymodules
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-macx {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- pip.commands = python3 -m venv pymodules && source pymodules/bin/activate && pip3 install -r requirements.txt && deactivate
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ !macx {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pip.commands = pip3 install -r requirements.txt --target pymodules
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -52,7 +42,6 @@ RC_ICONS = resources/icons/yubioath.ico
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macx {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ICON = resources/icons/yubioath.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QMAKE_INFO_PLIST = resources/mac/Info.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QMAKE_POST_LINK += cp -rnf pymodules/lib/python3*/site-packages/ yubioath-desktop.app/Contents/MacOS/pymodules/
</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;background:#e0ffe0;'>+ # For generating a XML file with all strings.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.24.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>