Hi, Here is a patch for astro/py-metar: i) Update to 1.1 ii) Switch HOMEPAGE and MASTER_SITES to https iii) Only run with python3 iv) Remove a trailing whitespace in DESCR v) Regenerate the patch
It build and run well in amd64-current system. Cheers ! wen
Index: Makefile =================================================================== RCS file: /cvs/ports/astro/py-metar/Makefile,v retrieving revision 1.26 diff -u -p -r1.26 Makefile --- Makefile 12 Jul 2019 20:43:31 -0000 1.26 +++ Makefile 3 Feb 2020 09:47:58 -0000 @@ -2,21 +2,25 @@ COMMENT = Python module to access NOAA's METAR weather reports -MODPY_EGG_VERSION = 0.21 +MODPY_EGG_VERSION = 1.1 DISTNAME = pymetar-${MODPY_EGG_VERSION} PKGNAME = py-metar-${MODPY_EGG_VERSION} CATEGORIES = astro -HOMEPAGE = http://www.schwarzvogel.de/software-pymetar.shtml +HOMEPAGE = https://www.schwarzvogel.de/software-pymetar.shtml MAINTAINER = Benoit Lecocq <ben...@openbsd.org> # GPLv2 PERMIT_PACKAGE = Yes -MASTER_SITES = http://www.schwarzvogel.de/pkgs/ +MASTER_SITES = https://www.schwarzvogel.de/pkgs/ MODULES = lang/python + +MODPY_PI = Yes +MODPY_SETUPTOOLS = Yes +MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3} NO_TEST = Yes Index: distinfo =================================================================== RCS file: /cvs/ports/astro/py-metar/distinfo,v retrieving revision 1.16 diff -u -p -r1.16 distinfo --- distinfo 29 Aug 2016 07:36:18 -0000 1.16 +++ distinfo 3 Feb 2020 09:47:58 -0000 @@ -1,2 +1,2 @@ -SHA256 (pymetar-0.21.tar.gz) = Mxl42cVNSZSOOBengrhX8kfbbCebi7W+vU9bGku1A+o= -SIZE (pymetar-0.21.tar.gz) = 22714 +SHA256 (pymetar-1.1.tar.gz) = yQoC/xR90nUxVu+/KgTrF0PDTpmjG/P+JVaeW+uhgng= +SIZE (pymetar-1.1.tar.gz) = 3162533 Index: patches/patch-setup_py =================================================================== RCS file: /cvs/ports/astro/py-metar/patches/patch-setup_py,v retrieving revision 1.8 diff -u -p -r1.8 patch-setup_py --- patches/patch-setup_py 21 Apr 2015 07:29:30 -0000 1.8 +++ patches/patch-setup_py 3 Feb 2020 09:47:58 -0000 @@ -1,15 +1,19 @@ -$OpenBSD: patch-setup_py,v 1.8 2015/04/21 07:29:30 benoit Exp $ ---- setup.py.orig Mon Apr 20 10:17:26 2015 -+++ setup.py Tue Apr 21 09:10:31 2015 -@@ -25,8 +25,8 @@ - url="http://www.schwarzvogel.de/software-pymetar.shtml", - packages=[""], - py_modules=["pymetar"], -- scripts=["bin/pymetar"], -- data_files=[("share/doc/pymetar-%s" % pymetar.__version__, -+ scripts=["bin/pymet"], -+ data_files=[("share/doc/py-metar", - ['README', 'COPYING', 'THANKS', 'librarydoc.txt']), -- ("share/man/man1", ['pymetar.1'])] -+ ("man/man1", ['pymetar.1'])] - ) +$OpenBSD$ + +Index: setup.py +--- setup.py.orig ++++ setup.py +@@ -30,10 +30,10 @@ setuptools.setup( + url="http://www.schwarzvogel.de/software-pymetar.shtml", + packages=setuptools.find_packages(), + py_modules=["pymetar"], +- scripts=["bin/pymetar"], +- data_files=[("share/doc/pymetar-%s" % pymetar.__version__, ++ scripts=["bin/pymet"], ++ data_files=[("share/doc/py-metar", + ['README.md', 'COPYING', 'THANKS']), +- ("share/man/man1", ['pymetar.1'])], ++ ("man/man1", ['pymetar.1'])], + classifiers=( + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", Index: pkg/DESCR =================================================================== RCS file: /cvs/ports/astro/py-metar/pkg/DESCR,v retrieving revision 1.3 diff -u -p -r1.3 DESCR --- pkg/DESCR 2 Aug 2004 20:59:38 -0000 1.3 +++ pkg/DESCR 3 Feb 2020 09:47:58 -0000 @@ -3,7 +3,7 @@ reports from the NOAA (http://www.noaa.g included weather information. To find a station ID, visit http://www.nws.noaa.gov/tg/siteloc.shtml -For instance, "Belgium/Bruxelles National" has the EBBR ID so a common +For instance, "Belgium/Bruxelles National" has the EBBR ID so a common usage of pymet2 would be: $ pymet EBBR Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/astro/py-metar/pkg/PLIST,v retrieving revision 1.6 diff -u -p -r1.6 PLIST --- pkg/PLIST 4 Sep 2012 15:47:38 -0000 1.6 +++ pkg/PLIST 3 Feb 2020 09:47:58 -0000 @@ -1,11 +1,14 @@ @comment $OpenBSD: PLIST,v 1.6 2012/09/04 15:47:38 ajacoutot Exp $ bin/pymet -lib/python${MODPY_VERSION}/site-packages/pymetar-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info +lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}pymetar.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pymetar-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/pymetar-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/pymetar-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/pymetar-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/pymetar-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt lib/python${MODPY_VERSION}/site-packages/pymetar.py -lib/python${MODPY_VERSION}/site-packages/pymetar.pyc @man man/man1/pymetar.1 -share/doc/${MODPY_PY_PREFIX}metar/ -share/doc/${MODPY_PY_PREFIX}metar/COPYING -share/doc/${MODPY_PY_PREFIX}metar/README -share/doc/${MODPY_PY_PREFIX}metar/THANKS -share/doc/${MODPY_PY_PREFIX}metar/librarydoc.txt +share/doc/py-metar/ +share/doc/py-metar/COPYING +share/doc/py-metar/README.md +share/doc/py-metar/THANKS