Update to py-metar-1.1 from wen heping, thanks.

This commit is contained in:
benoit 2020-02-03 12:07:18 +00:00
parent 569259066a
commit b51a04f7fb
5 changed files with 41 additions and 30 deletions

View File

@ -1,23 +1,27 @@
# $OpenBSD: Makefile,v 1.26 2019/07/12 20:43:31 sthen Exp $
# $OpenBSD: Makefile,v 1.27 2020/02/03 12:07:18 benoit Exp $
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 <benoit@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
pre-build:

View File

@ -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

View File

@ -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: patch-setup_py,v 1.9 2020/02/03 12:07:19 benoit Exp $
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+)",

View File

@ -3,7 +3,7 @@ reports from the NOAA (http://www.noaa.gov) and allow access to the
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

View File

@ -1,11 +1,14 @@
@comment $OpenBSD: PLIST,v 1.6 2012/09/04 15:47:38 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.7 2020/02/03 12:07:19 benoit 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