<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/55c8ad7be401bc8a45dfcf120da78e83a56744d4">https://github.com/macports/macports-ports/commit/55c8ad7be401bc8a45dfcf120da78e83a56744d4</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 55c8ad7be401bc8a45dfcf120da78e83a56744d4
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Sat Jan 25 13:56:20 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> zeroinstall-injector: add and conform to modeline
</span>---
sysutils/zeroinstall-injector/Portfile | 102 +++++++++++++++++----------------
1 file changed, 54 insertions(+), 48 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/zeroinstall-injector/Portfile b/sysutils/zeroinstall-injector/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 453016d..db4f1e6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/zeroinstall-injector/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/zeroinstall-injector/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,33 +1,39 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-name zeroinstall-injector
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 1.7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin freebsd linux
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-categories sysutils
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license LGPL
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description The Zero Install Injector (0launch)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-The Zero Install Injector makes it easy for users to install software without \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-needing root privileges. It takes the URL of a program and runs it (downloading \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-it first if necessary). Any dependencies of the program are fetched in the same \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-way. The user controls which version of the program and its dependencies to \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://0install.net
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites sourceforge
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites.mirror_subdir zero-install
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 23e2adf699c52f8cdfbb7ad07d6c5568 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 eabe6d1284522be4a5c2675807646f247a33ffac \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 46ac65794f57146afed45582d4ff43f05ffe5bb9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib path:bin/gpg:gnupg2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_run bin:sudo:sudo
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set python.branch 2.x
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set python.bin ${prefix}/bin/python
</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 python 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name zeroinstall-injector
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin freebsd linux
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories sysutils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description The Zero Install Injector (0launch)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description The Zero Install Injector makes it easy for users to install \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ software without needing root privileges. It takes the URL of \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ a program and runs it (downloading it first if necessary). Any \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dependencies of the program are fetched in the same way. The \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ user controls which version of the program and its dependencies \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to use.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://0install.net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites sourceforge
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites.mirror_subdir zero-install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums md5 23e2adf699c52f8cdfbb7ad07d6c5568 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha1 eabe6d1284522be4a5c2675807646f247a33ffac \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 46ac65794f57146afed45582d4ff43f05ffe5bb9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib path:bin/gpg:gnupg2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run bin:sudo:sudo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python.branch 2.x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python.bin ${prefix}/bin/python
</span>
variant python26 conflicts python27 description "use python 2.6" {
depends_lib-append port:python26
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,42 +52,42 @@ set python.bin ${prefix}/bin/python${python.branch}
</span> }
if {![variant_isset python26]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants +python27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +python27
</span> }
post-patch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|'man/man1'|'share/man/man1'|" ${worksrcpath}/setup.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|local_0launch,|'${python.bin}', local_0launch,|" ${worksrcpath}/tests/testrun.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|'man/man1'|'share/man/man1'|" ${worksrcpath}/setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|local_0launch,|'${python.bin}', local_0launch,|" ${worksrcpath}/tests/testrun.py
</span> }
use_configure no
supported_archs noarch
pre-build {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.cmd ${python.bin} setup.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.cmd ${python.bin} setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target build
</span> }
pre-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.cmd ${python.bin} setup.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.destdir --prefix=${prefix} --skip-build --root=${destroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.cmd ${python.bin} setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.destdir --prefix=${prefix} --skip-build --root=${destroot}
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/bin/env python|${python.bin}|" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/lib/python${python.branch}/site-packages/zeroinstall/0launch-gui/0launch-gui
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/bin/env python|${python.bin}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/lib/python${python.branch}/site-packages/zeroinstall/0launch-gui/0launch-gui
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # move site-packages to wherever python is looking for it
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; import os; print os.path.dirname(get_python_lib())"]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file rename ${destroot}${prefix}/lib/python${python.branch}/site-packages \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # move site-packages to wherever python is looking for it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; import os; print os.path.dirname(get_python_lib())"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file rename ${destroot}${prefix}/lib/python${python.branch}/site-packages \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
</span> }
pre-test {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.cmd ${python.bin}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.dir ${worksrcpath}/tests
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target testall.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.cmd ${python.bin}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.dir ${worksrcpath}/tests
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.target testall.py
</span> }
livecheck.type regex
</pre><pre style='margin:0'>
</pre>