<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/70552455e286fe5c457587b4bf8baca48b8dc71f">https://github.com/macports/macports-ports/commit/70552455e286fe5c457587b4bf8baca48b8dc71f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 70552455e286fe5c457587b4bf8baca48b8dc71f
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Sun Apr 3 10:17:23 2022 -0400
<span style='display:block; white-space:pre;color:#404040;'> py-openbabel: rename to py-openbabel2
</span>---
python/{py-openbabel => py-openbabel2}/Portfile | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-openbabel/Portfile b/python/py-openbabel2/Portfile
</span>similarity index 72%
rename from python/py-openbabel/Portfile
rename to python/py-openbabel2/Portfile
<span style='display:block; white-space:pre;color:#808080;'>index 5d2fcb88eec..8067e6b914b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-openbabel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-openbabel2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,9 +4,10 @@ PortSystem 1.0
</span> PortGroup python 1.0
# these are the bindings for OpenBabel 2.x
<span style='display:block; white-space:pre;background:#ffe0e0;'>-name py-openbabel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name py-openbabel2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.rootname openbabel
</span> version 2.4.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
categories-append science chemistry devel
platforms darwin freebsd
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,7 +30,11 @@ checksums rmd160 898e24b4ca3e1a777d18aa3c7aa882d0e122a758 \
</span>
python.versions 39 310
<span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${name} ne ${subport}} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts py${python.version}-openbabel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append \
port:py${python.version}-setuptools \
port:eigen3 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,4 +49,15 @@ if {${name} ne ${subport}} {
</span> xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst ${destroot}${docdir}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # deactivate hack to have a smooth transition from the original py-openbabel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # (providing version 2.x) to the legacy py-openbabel2 port
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {set installed [lindex [registry_active py${python.version}-openbabel] 0]}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set _version [lindex $installed 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[vercmp $_version ${version}] <= 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ registry_deactivate_composite py${python.version}-openbabel "" [list ports_nodepcheck 1]
</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;'>+ }
</span> }
</pre><pre style='margin:0'>
</pre>