Date: Wed, 10 Jul 2013 16:26:48 GMT From: Thomas <metaf2xml@users.sourceforge.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/180441: [patch] updates to port for metaf2xml 1.52+ Message-ID: <201307101626.r6AGQmVL045150@oldred.freebsd.org> Resent-Message-ID: <201307101630.r6AGU0KS060082@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 180441 >Category: ports >Synopsis: [patch] updates to port for metaf2xml 1.52+ >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Jul 10 16:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Thomas >Release: >Organization: >Environment: >Description: Please apply the changes described below to the files for metaf2xml 1.52 (or later versions). If a change does not meet the requirements from the Porter's Handbook, feel free to adapt or drop it. Master Sites ============= The URL for downloads has changed to: http://<mirror>.dl.sourceforge.net/project/metaf2xml/<version>/metaf2xml-<version>.tgz e.g. for the current version: http://kent.dl.sourceforge.net/project/metaf2xml/1.52/metaf2xml-1.52.tgz Makefile ======== I added some changes to the Makefile in the patch. I don't know if the target pre-install is really required. It creates $CGI_BIN_DIR and $HTDOCS_DIR, but this is also done by install.pl and it should not be necessary to do it separately. There is one more file, metaf2xml-$VERSION-apache.conf, an example configuration for Apache. I assume the correct target directory is %%APACHEETCDIR%%/Includes . I found the project p5-Geo-METAR-1.15 with the categories Geography, Astro, Perl5 and py26-metar-0.17 with Geography, Astro, Python. Both do approximately the same as metaf2xml. However, metaf2xml has the category textproc, together with aspell, diffutils, OpenOffice and similar programs. Wouldn't the categories of p5-Geo-METAR-1.15 be more appropriate (except I'm not sure about the Astro)? But probably moving a port to a different subdirectory is a major change with a lot of effort ... pgk-descr ========= I added some changes to the pgk-descr in the patch. The first paragraph of the description (from the README) describes the main goal of the project, the second one describes additional components which are absolutely required for end users. So while it would be possible to omit the second paragraph if requirements command it, the project would maybe not reach as many end users as it could. pkg-plist ========= There are some files missing in the list, and one is obsolete. I added some changes to the pgk-plist in the patch. One more question regarding dependencies: Depending on how it is used, the perl script metaf.pl requires one or more of curl, xsltproc, and a Web server (tested: Apache) during runtime; maybe one or the other dependency should be added. Thank you very much for maintaining this port. If you need anything changed to make your work easier, just say so. Kind regards, Thomas >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 322708) +++ Makefile (working copy) @@ -6,21 +6,24 @@ # PORTNAME= metaf2xml -PORTVERSION= 1.42 -CATEGORIES= textproc +PORTVERSION= 1.52 +CATEGORIES= german spanish russian textproc science perl5 MASTER_SITES= SF EXTRACT_SUFX= .tgz MAINTAINER= clsung@FreeBSD.org -COMMENT= Parses METAR, TAF, and SYNOP messages and stores the components in XML +COMMENT= Parses METAR,TAF,SYNOP,BUOY messages and stores them as XML +MAN1= man/man1/metaf.1 man/man1/metaf2xml.1 man/man1/metafsrc2raw.1 +MAN3= man/man3/metaf2xml::parser.3pm man/man3/metaf2xml::src2raw.3pm MAKE_ARGS= CGI_BIN_DIR=${PREFIX}/www/metaf2xml/cgi-bin \ HTDOCS_DIR=${PREFIX}/www/metaf2xml/htdocs \ METAF2XML=${PREFIX} \ METAF2XML_LIB=${PREFIX}/${SITE_PERL_REL} \ - METAF2XML_XSL=${DATADIR} + METAF2XML_XSL=${DATADIR} \ + CONF_DIR=${APACHEETCDIR}/Includes NO_BUILD= yes -USE_PERL5_RUN= yes +USE_PERL5= yes pre-install: ${MKDIR} ${PREFIX}/www/metaf2xml/cgi-bin \ Index: distinfo =================================================================== --- distinfo (revision 322708) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (metaf2xml-1.42.tgz) = 54e0a43fbb6fe2b3f0ed1d08e1509d2f19f0f9ba1100d36ade6788b1be9e568e -SIZE (metaf2xml-1.42.tgz) = 260652 +SHA256 (metaf2xml-1.52.tgz) = f97782f70095ad0d41e6f99540d0f5fe56bde29a87378d3522f99c7161bd54dc +SIZE (metaf2xml-1.52.tgz) = 322093 Index: pkg-descr =================================================================== --- pkg-descr (revision 322708) +++ pkg-descr (working copy) @@ -1,6 +1,11 @@ -metaf2xml parses aviation routine weather reports (METAR, SPECI), -aerodrome forecasts (TAF), and synoptic observations (SYNOP) and -stores the components in XML. They can then be converted to plain -language (text, HTML), or XML with different schemas. +metaf2xml can download, parse and decode aviation routine weather +reports (METAR, SPECI, SAO), aerodrome forecasts (TAF), synoptic +observations (SYNOP) and observations from buoys (BUOY). The +extracted data can be written as XML or passed to a user-defined +function (all done in Perl). +It also provides XSLT style sheets to convert the XML to plain +language (text, HTML), or XML with different schemas. A web-based +(CGI) user interface can be used to download and display up-to-date +weather data from NOAA, Ogimet, and other sources. WWW: http://metaf2xml.sourceforge.net/ Index: pkg-plist =================================================================== --- pkg-plist (revision 322708) +++ pkg-plist (working copy) @@ -1,6 +1,11 @@ @comment $FreeBSD$ +%%APACHEETCDIR%%/Includes/metaf2xml-1.52-apache.conf %%DATADIR%%/metaf-fullhtml.xsl %%DATADIR%%/metaf-html.xsl +%%DATADIR%%/metaf-lang-de.xsl +%%DATADIR%%/metaf-lang-en.xsl +%%DATADIR%%/metaf-lang-es.xsl +%%DATADIR%%/metaf-lang-ru.xsl %%DATADIR%%/metaf-lang.xsl %%DATADIR%%/metaf-sum-html.xsl %%DATADIR%%/metaf-sum-text.xsl @@ -8,18 +13,28 @@ %%DATADIR%%/metaf-sum.xsl %%DATADIR%%/metaf-text.xsl %%DATADIR%%/metaf-ui.xsl +%%DATADIR%%/metaf.dtd %%DATADIR%%/metaf.xsl %%DATADIR%%/stations.xml -%%SITE_PERL%%/metaf2xml/XML.pm %%SITE_PERL%%/metaf2xml/parser.pm +bin/metaf.pl bin/metaf2xml.pl bin/metafsrc2raw.pl www/metaf2xml/cgi-bin/metaf.pl www/metaf2xml/htdocs/metaf-fullhtml.xsl +www/metaf2xml/htdocs/metaf-html.xsl +www/metaf2xml/htdocs/metaf-lang-de.xsl +www/metaf2xml/htdocs/metaf-lang-en.xsl +www/metaf2xml/htdocs/metaf-lang-es.xsl +www/metaf2xml/htdocs/metaf-lang-ru.xsl www/metaf2xml/htdocs/metaf-lang.xsl +www/metaf2xml/htdocs/metaf-sum-html.xsl +www/metaf2xml/htdocs/metaf-sum-text.xsl www/metaf2xml/htdocs/metaf-sum-ui.xsl www/metaf2xml/htdocs/metaf-sum.xsl +www/metaf2xml/htdocs/metaf-text.xsl www/metaf2xml/htdocs/metaf-ui.xsl +www/metaf2xml/htdocs/metaf.dtd www/metaf2xml/htdocs/metaf.xsl www/metaf2xml/htdocs/stations.xml @dirrmtry %%DATADIR%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307101626.r6AGQmVL045150>