Index: head/finance/libofx/Makefile =================================================================== --- head/finance/libofx/Makefile (revision 496579) +++ head/finance/libofx/Makefile (revision 496580) @@ -1,36 +1,36 @@ # Created by: Glenn Johnson # $FreeBSD$ PORTNAME= libofx -PORTVERSION= 0.9.12 +PORTVERSION= 0.9.14 CATEGORIES= finance MASTER_SITES= SF/${PORTNAME}/${PORTNAME} MAINTAINER= jhale@FreeBSD.org COMMENT= OpenSource implementation of the OFX (Open Financial eXchange) LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcurl.so:ftp/curl \ libxml++-2.6.so:textproc/libxml++26 \ libosp.so:textproc/opensp -USES= gettext-runtime gmake iconv libtool localbase pathfix pkgconfig \ +USES= gettext-runtime gmake gnome iconv libtool localbase pathfix pkgconfig \ compiler:c++11-lang USE_CXXSTD= c++11 USE_GNOME= glib20 glibmm libsigc++20 libxml2 CONFIGURE_ARGS= --disable-doxygen --disable-dot --disable-gengetopt \ --with-opensp-includes=${LOCALBASE}/include/OpenSP \ --with-opensp-libs=${LOCALBASE}/lib GNU_CONFIGURE= yes USE_LDCONFIG= yes INSTALL_TARGET= install-strip PORTDOCS= * OPTIONS_DEFINE= DOCS post-install: ${RM} ${STAGEDIR}${DOCSDIR}/COPYING .include Index: head/finance/libofx/distinfo =================================================================== --- head/finance/libofx/distinfo (revision 496579) +++ head/finance/libofx/distinfo (revision 496580) @@ -1,3 +1,3 @@ -TIMESTAMP = 1507465983 -SHA256 (libofx-0.9.12.tar.gz) = c15fa062fa11e759eb6d8c7842191db2185ee1b221a3f75e9650e2849d7b7373 -SIZE (libofx-0.9.12.tar.gz) = 1288227 +TIMESTAMP = 1550800754 +SHA256 (libofx-0.9.14.tar.gz) = b82757bfa15b27c02fb39dfd017cdfe5af51a063ba15afe495dd1b7367ff290a +SIZE (libofx-0.9.14.tar.gz) = 1639297 Index: head/finance/libofx/files/patch-lib_ofx__utilities.cpp =================================================================== --- head/finance/libofx/files/patch-lib_ofx__utilities.cpp (revision 496579) +++ head/finance/libofx/files/patch-lib_ofx__utilities.cpp (revision 496580) @@ -1,14 +1,24 @@ ---- lib/ofx_utilities.cpp.orig 2013-04-16 19:50:51 UTC +Emulate the behavior of the USG UXIX daylight variable implemented in glibc. +It is supposed to be 0 if the time zone does not have any daylight saving time +rules and non-zero if there is a time during the year when daylight saving +time applies. [1] + +In FreeBSD, tzname[1] should be set to " " (three spaces) if DST is never +observed. [2] + +[1] https://www.gnu.org/software/libc/manual/html_node/Time-Zone-Functions.html#Time-Zone-Functions +[2] https://svnweb.freebsd.org/base/head/contrib/tzcode/stdtime/localtime.c?revision=313774&view=markup#l84 + +--- lib/ofx_utilities.cpp.orig 2018-05-02 19:39:38 UTC +++ lib/ofx_utilities.cpp -@@ -115,6 +115,11 @@ time_t ofxdate_to_time_t(const string ofxdate) - char time_zone_specified = false; - string ofxdate_whole; - time_t temptime; -+ int daylight = 0; -+ +@@ -142,6 +142,10 @@ time_t ofxdate_to_time_t(const string ofxdate) + std::time(&temptime); + local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime))); + /* daylight is set to 1 if the timezone indicated by the environment (either TZ or /etc/localtime) uses daylight savings time (aka summer time). We use it here to provisionally set tm_isdst. */ ++#if defined(__FreeBSD__) + tzset(); -+ if(tzname[1][0] != ' ') -+ daylight = 1; ++ int daylight = ((tzname[1][0] == ' ') ? 0 : 1); ++#endif + time.tm_isdst = daylight; - time.tm_isdst = daylight; // initialize dst setting - std::time(&temptime); + if (ofxdate.size() != 0) Index: head/finance/libofx/pkg-plist =================================================================== --- head/finance/libofx/pkg-plist (revision 496579) +++ head/finance/libofx/pkg-plist (revision 496580) @@ -1,15 +1,15 @@ bin/ofx2qif bin/ofxconnect bin/ofxdump include/libofx/libofx.h lib/libofx.a lib/libofx.so lib/libofx.so.7 -lib/libofx.so.7.0.1 +lib/libofx.so.7.0.2 libdata/pkgconfig/libofx.pc man/man1/ofxconnect.1.gz man/man1/ofxdump.1.gz %%DATADIR%%/dtd/ofc.dtd %%DATADIR%%/dtd/ofx160.dtd %%DATADIR%%/dtd/ofx201.dtd %%DATADIR%%/dtd/opensp.dcl