diff options
author | ultima <ultima@FreeBSD.org> | 2017-06-26 00:19:05 +0800 |
---|---|---|
committer | ultima <ultima@FreeBSD.org> | 2017-06-26 00:19:05 +0800 |
commit | 328b12c3eecb6bf8a681eb5b159f901a680f271a (patch) | |
tree | c8127d6ac6127947bdbf25a9b16c241430b89a9d /science/metaf2xml | |
parent | 363d1c8d5c67681ca1b7dff0119c5463bc44e355 (diff) | |
download | freebsd-ports-gnome-328b12c3eecb6bf8a681eb5b159f901a680f271a.tar.gz freebsd-ports-gnome-328b12c3eecb6bf8a681eb5b159f901a680f271a.tar.zst freebsd-ports-gnome-328b12c3eecb6bf8a681eb5b159f901a680f271a.zip |
* Updated to 2.2
Changelog: http://metaf2xml.sourceforge.net/RelInfo-2.2.txt
PR: 220081
Submitted by: <metaf2xml@users.sourceforge.net>
Reviewed by: matthew (mentor)
Approved by: matthew (mentor)
Differential Revision: https://reviews.freebsd.org/D11313
Diffstat (limited to 'science/metaf2xml')
-rw-r--r-- | science/metaf2xml/Makefile | 13 | ||||
-rw-r--r-- | science/metaf2xml/distinfo | 6 | ||||
-rw-r--r-- | science/metaf2xml/files/patch-install.pl | 20 |
3 files changed, 32 insertions, 7 deletions
diff --git a/science/metaf2xml/Makefile b/science/metaf2xml/Makefile index 82b8ee5247b5..690052d8a985 100644 --- a/science/metaf2xml/Makefile +++ b/science/metaf2xml/Makefile @@ -2,15 +2,14 @@ # $FreeBSD$ PORTNAME= metaf2xml -PORTVERSION= 2.0 +PORTVERSION= 2.2 CATEGORIES= science perl5 MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Parse and Decode METAR, TAF, SYNOP, BUOY and AMDAR and Write as XML -LICENSE= GPLv2 GPLv3 -LICENSE_COMB= dual +LICENSE= GPLv2+ RUN_DEPENDS= p5-CGI>0:www/p5-CGI @@ -27,7 +26,8 @@ MAKE_ARGS= CGI_BIN_DIR=${WWWDIR}/cgi-bin \ METAF2XML_DOC=${DOCSDIR} \ METAF2XML_MAN=${PREFIX}/man \ METAF2XML_XSL=${DATADIR} \ - BUILD_ROOT=${STAGEDIR} + BUILD_ROOT=${STAGEDIR} \ + PERL=${LOCALBASE}/bin/perl NO_BUILD= yes NO_ARCH= yes USES= perl5 shebangfix tar:tgz @@ -39,4 +39,9 @@ PLIST_SUB= VERSION=${PORTVERSION} APACHE_MAKE_ARGS= CONF_DIR=${PREFIX}/${APACHEETCDIR}/Includes APACHE_USE= APACHE_RUN=22+ +post-patch: + ${REINPLACE_CMD} 's|%%METAF2XML_XSL%%|../../${DATADIR_REL}| ; \ + s|%%METAF2XML_BIN%%|../${WWWDIR_REL}/cgi-bin|' \ + ${WRKSRC}/install.pl + .include <bsd.port.mk> diff --git a/science/metaf2xml/distinfo b/science/metaf2xml/distinfo index c8e855fae8f4..830d7ed5370d 100644 --- a/science/metaf2xml/distinfo +++ b/science/metaf2xml/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1474612314 -SHA256 (metaf2xml-2.0.tgz) = 9fbb25644f168327c91fb5a867f34926234b39144ab741311d66b804757157ce -SIZE (metaf2xml-2.0.tgz) = 371661 +TIMESTAMP = 1497707637 +SHA256 (metaf2xml-2.2.tgz) = 52a48ff8bbc80cdd62c9b169d555a0af4510048310f9ca30499a261ead17f30e +SIZE (metaf2xml-2.2.tgz) = 375726 diff --git a/science/metaf2xml/files/patch-install.pl b/science/metaf2xml/files/patch-install.pl new file mode 100644 index 000000000000..7c0a3d6f2a2b --- /dev/null +++ b/science/metaf2xml/files/patch-install.pl @@ -0,0 +1,20 @@ +--- install.pl.orig 2017-06-23 13:29:20 UTC ++++ install.pl +@@ -658,7 +658,7 @@ if ($cmd eq 'all' || $cmd eq 'cgi') { + if ($USE_CP) { + do_copy "$BUILD_ROOT$METAF2XML_XSL/$_", "$BUILD_ROOT$HTDOCS_DIR/"; + } else { +- $symlink->("$METAF2XML_XSL/$_", "$BUILD_ROOT$HTDOCS_DIR/$_") ++ $symlink->("%%METAF2XML_XSL%%/$_", "$BUILD_ROOT$HTDOCS_DIR/$_") + or usage "ERROR: symlink '$BUILD_ROOT$HTDOCS_DIR/$_': $!\n"; + } + } +@@ -667,7 +667,7 @@ if ($cmd eq 'all' || $cmd eq 'cgi') { + if ($USE_CP) { + do_copy "$BUILD_ROOT$METAF2XML_BIN/metaf.pl","$BUILD_ROOT$CGI_BIN_DIR/"; + } else { +- $symlink->("$METAF2XML_BIN/metaf.pl","$BUILD_ROOT$CGI_BIN_DIR/metaf.pl") ++ $symlink->("%%METAF2XML_BIN%%/metaf.pl","$BUILD_ROOT$CGI_BIN_DIR/metaf.pl") + or usage "ERROR: symlink '$BUILD_ROOT$CGI_BIN_DIR/metaf.pl': $!\n"; + } + |