<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0b26a6b1ae7be3327f0c3f4d64d01f15c7eacbbc">https://github.com/macports/macports-ports/commit/0b26a6b1ae7be3327f0c3f4d64d01f15c7eacbbc</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0b26a6b1ae7be3327f0c3f4d64d01f15c7eacbbc
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Apr 12 17:44:03 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> py-openbabel: Fix build by fixing invalid version
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/64945
</span>---
python/py-openbabel/Portfile | 2 ++
python/py-openbabel/files/version.patch | 17 +++++++++++++++++
2 files changed, 19 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-openbabel/Portfile b/python/py-openbabel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b9218c0f803..f71b71acfe5 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-openbabel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,6 +40,8 @@ if {${name} ne ${subport}} {
</span> depends_lib-append \
port:openbabel
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles version.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-openbabel/files/version.patch b/python/py-openbabel/files/version.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a8152bf519a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-openbabel/files/version.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix version. A semantic version number must be composed of exactly three
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+period-separated integers, and in addition it must match the version number
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+of openbabel. Because the version was invalid, the code in setup.py that
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+should look for openbabel using pkg-config didn't run and it instead assumed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+it was in /usr/local, which it isn't, so the build failed.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/openbabel/openbabel/issues/2408
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- openbabel/__init__.py.orig 2020-05-23 04:32:28.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ openbabel/__init__.py 2022-04-12 17:24:44.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2,7 +2,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ import warnings
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from . import openbabel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-__version__ = "3.1.1.1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++__version__ = "3.1.1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _thismodule = sys.modules[__name__]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>