finance/libofx: Update to 0.9.14
This commit is contained in:
parent
24803d0342
commit
ad828a3f04
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=496580
@ -2,7 +2,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= libofx
|
PORTNAME= libofx
|
||||||
PORTVERSION= 0.9.12
|
PORTVERSION= 0.9.14
|
||||||
CATEGORIES= finance
|
CATEGORIES= finance
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
|
|||||||
libxml++-2.6.so:textproc/libxml++26 \
|
libxml++-2.6.so:textproc/libxml++26 \
|
||||||
libosp.so:textproc/opensp
|
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
|
compiler:c++11-lang
|
||||||
USE_CXXSTD= c++11
|
USE_CXXSTD= c++11
|
||||||
USE_GNOME= glib20 glibmm libsigc++20 libxml2
|
USE_GNOME= glib20 glibmm libsigc++20 libxml2
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
TIMESTAMP = 1507465983
|
TIMESTAMP = 1550800754
|
||||||
SHA256 (libofx-0.9.12.tar.gz) = c15fa062fa11e759eb6d8c7842191db2185ee1b221a3f75e9650e2849d7b7373
|
SHA256 (libofx-0.9.14.tar.gz) = b82757bfa15b27c02fb39dfd017cdfe5af51a063ba15afe495dd1b7367ff290a
|
||||||
SIZE (libofx-0.9.12.tar.gz) = 1288227
|
SIZE (libofx-0.9.14.tar.gz) = 1639297
|
||||||
|
@ -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
|
+++ lib/ofx_utilities.cpp
|
||||||
@@ -115,6 +115,11 @@ time_t ofxdate_to_time_t(const string ofxdate)
|
@@ -142,6 +142,10 @@ time_t ofxdate_to_time_t(const string ofxdate)
|
||||||
char time_zone_specified = false;
|
|
||||||
string ofxdate_whole;
|
|
||||||
time_t temptime;
|
|
||||||
+ int daylight = 0;
|
|
||||||
+
|
|
||||||
+ tzset();
|
|
||||||
+ if(tzname[1][0] != ' ')
|
|
||||||
+ daylight = 1;
|
|
||||||
|
|
||||||
time.tm_isdst = daylight; // initialize dst setting
|
|
||||||
std::time(&temptime);
|
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();
|
||||||
|
+ int daylight = ((tzname[1][0] == ' ') ? 0 : 1);
|
||||||
|
+#endif
|
||||||
|
time.tm_isdst = daylight;
|
||||||
|
|
||||||
|
if (ofxdate.size() != 0)
|
||||||
|
@ -5,7 +5,7 @@ include/libofx/libofx.h
|
|||||||
lib/libofx.a
|
lib/libofx.a
|
||||||
lib/libofx.so
|
lib/libofx.so
|
||||||
lib/libofx.so.7
|
lib/libofx.so.7
|
||||||
lib/libofx.so.7.0.1
|
lib/libofx.so.7.0.2
|
||||||
libdata/pkgconfig/libofx.pc
|
libdata/pkgconfig/libofx.pc
|
||||||
man/man1/ofxconnect.1.gz
|
man/man1/ofxconnect.1.gz
|
||||||
man/man1/ofxdump.1.gz
|
man/man1/ofxdump.1.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user