pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/py-metar Import py27-metar-0.19 as net/py-metar.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a10b0825aab5
branches:  trunk
changeset: 629452:a10b0825aab5
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jan 21 13:33:31 2014 +0000

description:
Import py27-metar-0.19 as net/py-metar.

Pymetar is a python module and command line tool designed to fetch Metar
reports from the NOAA (http://www.noaa.gov) and allow access to the included
weather information.

diffstat:

 net/py-metar/DESCR            |   3 +++
 net/py-metar/Makefile         |  29 +++++++++++++++++++++++++++++
 net/py-metar/PLIST            |  11 +++++++++++
 net/py-metar/distinfo         |   6 ++++++
 net/py-metar/patches/patch-aa |  23 +++++++++++++++++++++++
 5 files changed, 72 insertions(+), 0 deletions(-)

diffs (92 lines):

diff -r a575d4c84956 -r a10b0825aab5 net/py-metar/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-metar/DESCR        Tue Jan 21 13:33:31 2014 +0000
@@ -0,0 +1,3 @@
+Pymetar is a python module and command line tool designed to fetch Metar
+reports from the NOAA (http://www.noaa.gov) and allow access to the included
+weather information.
diff -r a575d4c84956 -r a10b0825aab5 net/py-metar/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-metar/Makefile     Tue Jan 21 13:33:31 2014 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2014/01/21 13:33:31 wiz Exp $
+
+DISTNAME=      pymetar-0.19
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
+CATEGORIES=    net python
+MASTER_SITES=  http://www.schwarzvogel.de/pkgs/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.schwarzvogel.de/software-pymetar.shtml
+COMMENT=       Downloads weather reports
+LICENSE=       gnu-gpl-v2 # or later
+
+PLIST_SUBST+=  PYVERSSUFFIX=${PYVERSSUFFIX:Q}
+PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of 0.19
+
+SUBST_CLASSES+=                manpath
+SUBST_SED.manpath=     -e 's,share/man,${PKGMANDIR},'
+SUBST_FILES.manpath+=  setup.py
+SUBST_STAGE.manpath=   pre-configure
+SUBST_MESSAGE.manpath= Fix man page installation path.
+
+CONFLICTS=     ${PYPKGPREFIX}-pymetar-[0-9]*
+
+post-extract:
+       ${MV} ${WRKSRC}/bin/pymetar ${WRKSRC}/bin/pymetar${PYVERSSUFFIX}
+
+.include "../../lang/python/distutils.mk"
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a575d4c84956 -r a10b0825aab5 net/py-metar/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-metar/PLIST        Tue Jan 21 13:33:31 2014 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2014/01/21 13:33:31 wiz Exp $
+bin/pymetar${PYVERSSUFFIX}
+man/man1/pymetar.1
+${PYSITELIB}/${EGG_FILE}
+${PYSITELIB}/pymetar.py
+${PYSITELIB}/pymetar.pyc
+${PYSITELIB}/pymetar.pyo
+share/doc/pymetar-${PYVERSSUFFIX}-${PKGVERSION}/COPYING
+share/doc/pymetar-${PYVERSSUFFIX}-${PKGVERSION}/README
+share/doc/pymetar-${PYVERSSUFFIX}-${PKGVERSION}/THANKS
+share/doc/pymetar-${PYVERSSUFFIX}-${PKGVERSION}/librarydoc.txt
diff -r a575d4c84956 -r a10b0825aab5 net/py-metar/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-metar/distinfo     Tue Jan 21 13:33:31 2014 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2014/01/21 13:33:31 wiz Exp $
+
+SHA1 (pymetar-0.19.tar.gz) = 968c4ec413f034e1ba7da99e91bd5e048fbf53c0
+RMD160 (pymetar-0.19.tar.gz) = 81332aaa30573b8fa8ef8f9b53186f58b0bb8287
+Size (pymetar-0.19.tar.gz) = 22123 bytes
+SHA1 (patch-aa) = bd82eddff9a3c52bdf04a538dd8c4c81f3d37d2f
diff -r a575d4c84956 -r a10b0825aab5 net/py-metar/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-metar/patches/patch-aa     Tue Jan 21 13:33:31 2014 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1 2014/01/21 13:33:31 wiz Exp $
+
+--- setup.py.orig      2012-01-25 14:01:19.000000000 +0000
++++ setup.py
+@@ -16,6 +16,7 @@
+ from distutils.core import setup
+ 
+ import pymetar
++import sys
+ 
+ setup(name = "pymetar", version = pymetar.__version__,
+       license = "GNU GPL",
+@@ -25,8 +26,8 @@ setup(name = "pymetar", version = pymeta
+       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/pymetar" + sys.version[0:3] ], 
++      data_files = [("share/doc/pymetar-%s-%s"%(sys.version[0:3],pymetar.__version__),
+        ['README', 'COPYING', 'THANKS', 'librarydoc.txt']),
+        ("share/man/man1", ['pymetar.1'])]
+       )



Home | Main Index | Thread Index | Old Index