[Midnightbsd-cvs] mports [17643] trunk/finance/libofx: libofx 0.9.10
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 28 18:53:09 EDT 2014
Revision: 17643
http://svnweb.midnightbsd.org/mports/?rev=17643
Author: laffer1
Date: 2014-09-28 18:53:07 -0400 (Sun, 28 Sep 2014)
Log Message:
-----------
libofx 0.9.10
Modified Paths:
--------------
trunk/finance/libofx/Makefile
trunk/finance/libofx/distinfo
trunk/finance/libofx/pkg-descr
trunk/finance/libofx/pkg-plist
Added Paths:
-----------
trunk/finance/libofx/files/patch-lib__Makefile.in
trunk/finance/libofx/files/patch-lib__ofx_preproc.cpp
trunk/finance/libofx/files/patch-lib__ofx_utilities.cpp
trunk/finance/libofx/files/patch-ofxconnect__ofxpartner.cpp
Removed Paths:
-------------
trunk/finance/libofx/files/patch-Makefile.am
trunk/finance/libofx/files/patch-lib_ofx_preproc.cpp
trunk/finance/libofx/files/patch-lib_ofx_utilities.cpp
Modified: trunk/finance/libofx/Makefile
===================================================================
--- trunk/finance/libofx/Makefile 2014-09-28 22:50:46 UTC (rev 17642)
+++ trunk/finance/libofx/Makefile 2014-09-28 22:53:07 UTC (rev 17643)
@@ -1,41 +1,41 @@
# $MidnightBSD$
PORTNAME= libofx
-PORTVERSION= 0.9.5
+PORTVERSION= 0.9.10
CATEGORIES= finance
MASTER_SITES= SF
MAINTAINER= ports at MidnightBSD.org
COMMENT= OpenSource implementation of the OFX (Open Financial eXchange)
+
LICENSE= gpl2
-LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \
- xml\\+\\+-2.6.2:${PORTSDIR}/textproc/libxml++26 \
- osp.5:${PORTSDIR}/textproc/opensp
+LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
+ libxml++-2.6.so:${PORTSDIR}/textproc/libxml++26 \
+ libosp.so:${PORTSDIR}/textproc/opensp
-USE_GCC= any
-USE_ICONV= yes
-USE_GMAKE= yes
-USE_AUTOTOOLS= aclocal autoheader automake autoconf libtool
-ACLOCAL_ARGS= -I m4
+USES= gmake iconv pkgconfig pathfix libtool
CONFIGURE_ARGS= --disable-doxygen --disable-dot --disable-gengetopt \
--with-opensp-includes=${LOCALBASE}/include/OpenSP \
--with-opensp-libs=${LOCALBASE}/lib
-MAKE_JOBS_SAFE= yes
+GNU_CONFIGURE= yes
USE_LDCONFIG= yes
+INSTALL_TARGET= install-strip
-CPPFLAGS= -I${LOCALBASE}/include
-LDFLAGS= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+OPTIONS_DEFINE= DOCS DOXYGEN
+
+.include <bsd.mport.options.mk>
+
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in AUTHORS ChangeLog INSTALL NEWS README totest.txt
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
- ${TAR} -C ${WRKSRC}/doc -cf - html | \
- ${TAR} -C ${DOCSDIR} --unlink -xf -
- @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+ ${RM} -f ${STAGEDIR}${DOCSDIR}/COPYING
+.if ${PORT_OPTIONS:MDOXYGEN}
+ @${FIND} -P ${STAGEDIR}${DOCSDIR}/html -type f 2>/dev/null | \
+ ${SED} -ne 's|^${STAGEDIR}${PREFIX}/||p' >> ${TMPPLIST}
+ @${FIND} -P -d ${STAGEDIR}${DOCSDIR}/ -type d 2>/dev/null | \
+ ${SED} -ne 's|^${STAGEDIR}${PREFIX}/|@dirrmtry |p' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>
Modified: trunk/finance/libofx/distinfo
===================================================================
--- trunk/finance/libofx/distinfo 2014-09-28 22:50:46 UTC (rev 17642)
+++ trunk/finance/libofx/distinfo 2014-09-28 22:53:07 UTC (rev 17643)
@@ -1,2 +1,2 @@
-SHA256 (libofx-0.9.5.tar.gz) = a075c5634b94bad16f8c949eeb77625d31bedea3bb10a8da174b989ffab7e78e
-SIZE (libofx-0.9.5.tar.gz) = 1526857
+SHA256 (libofx-0.9.10.tar.gz) = 54e26a4944ef2785087cfd8ed8f187ab9d397d9b92b5acc199dd7d5d095cf695
+SIZE (libofx-0.9.10.tar.gz) = 1433837
Deleted: trunk/finance/libofx/files/patch-Makefile.am
===================================================================
--- trunk/finance/libofx/files/patch-Makefile.am 2014-09-28 22:50:46 UTC (rev 17642)
+++ trunk/finance/libofx/files/patch-Makefile.am 2014-09-28 22:53:07 UTC (rev 17643)
@@ -1,35 +0,0 @@
---- ./Makefile.am.orig 2011-04-18 12:44:39.000000000 -0400
-+++ ./Makefile.am 2011-06-01 11:04:55.000000000 -0400
-@@ -2,20 +2,16 @@
- MAYBE_OFXCONNECT = ofxconnect
- endif
- DIST_SUBDIRS = m4 inc dtd lib doc . ofx2qif ofxdump ofxconnect
--SUBDIRS = m4 inc dtd lib doc . ofx2qif ofxdump $(MAYBE_OFXCONNECT)
--
--docdir = $(datadir)/doc/libofx
-+SUBDIRS = m4 inc dtd lib . ofx2qif ofxdump $(MAYBE_OFXCONNECT)
-
--doc_DATA = \
-+EXTRA_DIST = \
- AUTHORS \
- COPYING \
- INSTALL \
- NEWS \
- README \
- ChangeLog \
-- totest.txt
--
--EXTRA_DIST = \
-+ totest.txt \
- libofx.spec.in \
- libofx.spec \
- libofx.pc \
-@@ -23,7 +19,7 @@
- libofx.lsm.in \
- libofx.lsm
-
--pkgconfigdir=$(libdir)/pkgconfig
-+pkgconfigdir=$(prefix)/libdata/pkgconfig
- pkgconfig_DATA=libofx.pc
-
- .PHONY: doc
Added: trunk/finance/libofx/files/patch-lib__Makefile.in
===================================================================
--- trunk/finance/libofx/files/patch-lib__Makefile.in (rev 0)
+++ trunk/finance/libofx/files/patch-lib__Makefile.in 2014-09-28 22:53:07 UTC (rev 17643)
@@ -0,0 +1,11 @@
+--- ./lib/Makefile.in.orig 2014-06-22 19:45:04.000000000 -0400
++++ ./lib/Makefile.in 2014-06-22 19:46:20.000000000 -0400
+@@ -299,7 +299,7 @@
+
+
+ #libofx_la_LIBADD = @LIBOBJS@ ${OPENSPLIBS} -lstdc++
+-libofx_la_LIBADD = $(OPENSPLIBS) $(ICONV_LIBS) -lstdc++
++libofx_la_LIBADD = $(OPENSPLIBS) $(ICONV_LIBS)
+ libofx_la_LDFLAGS = -no-undefined -version-info @LIBOFX_SO_CURRENT@:@LIBOFX_SO_REVISION@:@LIBOFX_SO_AGE@
+ all: all-am
+
Property changes on: trunk/finance/libofx/files/patch-lib__Makefile.in
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/finance/libofx/files/patch-lib__ofx_preproc.cpp
===================================================================
--- trunk/finance/libofx/files/patch-lib__ofx_preproc.cpp (rev 0)
+++ trunk/finance/libofx/files/patch-lib__ofx_preproc.cpp 2014-09-28 22:53:07 UTC (rev 17643)
@@ -0,0 +1,11 @@
+--- ./lib/ofx_preproc.cpp.orig 2013-04-25 14:06:29.000000000 -0400
++++ ./lib/ofx_preproc.cpp 2014-06-22 19:44:48.000000000 -0400
+@@ -310,7 +310,7 @@
+ size_t outbytesleft = inbytesleft * 2 - 1;
+ iconv_buffer = (char*) malloc (inbytesleft * 2);
+ memset(iconv_buffer, 0, inbytesleft * 2);
+-#if defined(OS_WIN32) || defined(__sun)
++#if defined(OS_WIN32) || defined(__sun) || defined(__FreeBSD__)
+ const char * inchar = (const char *)s_buffer.c_str();
+ #else
+ char * inchar = (char *)s_buffer.c_str();
Property changes on: trunk/finance/libofx/files/patch-lib__ofx_preproc.cpp
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/finance/libofx/files/patch-lib__ofx_utilities.cpp
===================================================================
--- trunk/finance/libofx/files/patch-lib__ofx_utilities.cpp (rev 0)
+++ trunk/finance/libofx/files/patch-lib__ofx_utilities.cpp 2014-09-28 22:53:07 UTC (rev 17643)
@@ -0,0 +1,18 @@
+--- ./lib/ofx_utilities.cpp.orig 2013-04-16 15:50:51.000000000 -0400
++++ ./lib/ofx_utilities.cpp 2014-06-22 19:44:48.000000000 -0400
+@@ -115,9 +115,14 @@
+ char time_zone_specified = false;
+ string ofxdate_whole;
+ time_t temptime;
++ int daylight;
++ const struct tm* t;
++
++ std::time(&temptime);
++ t = localtime(&temptime);
++ daylight = t->tm_isdst;
+
+ time.tm_isdst = daylight; // initialize dst setting
+- std::time(&temptime);
+ local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime))) + (3600 * daylight);
+
+ if (ofxdate.size() != 0)
Property changes on: trunk/finance/libofx/files/patch-lib__ofx_utilities.cpp
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/finance/libofx/files/patch-lib_ofx_preproc.cpp
===================================================================
--- trunk/finance/libofx/files/patch-lib_ofx_preproc.cpp 2014-09-28 22:50:46 UTC (rev 17642)
+++ trunk/finance/libofx/files/patch-lib_ofx_preproc.cpp 2014-09-28 22:53:07 UTC (rev 17643)
@@ -1,11 +0,0 @@
---- ./lib/ofx_preproc.cpp.orig 2011-06-08 08:07:52.000000000 -0400
-+++ ./lib/ofx_preproc.cpp 2012-02-22 08:46:57.000000000 -0500
-@@ -231,7 +231,7 @@
- memset(iconv_buffer, 0, READ_BUFFER_SIZE * 2);
- size_t inbytesleft = strlen(s_buffer.c_str());
- size_t outbytesleft = READ_BUFFER_SIZE * 2 - 1;
--#ifdef OS_WIN32
-+#if defined(OS_WIN32) || defined(__FreeBSD__)
- const char * inchar = (const char *)s_buffer.c_str();
- #else
- char * inchar = (char *)s_buffer.c_str();
Deleted: trunk/finance/libofx/files/patch-lib_ofx_utilities.cpp
===================================================================
--- trunk/finance/libofx/files/patch-lib_ofx_utilities.cpp 2014-09-28 22:50:46 UTC (rev 17642)
+++ trunk/finance/libofx/files/patch-lib_ofx_utilities.cpp 2014-09-28 22:53:07 UTC (rev 17643)
@@ -1,18 +0,0 @@
---- ./lib/ofx_utilities.cpp.orig 2011-04-18 11:51:21.000000000 -0400
-+++ ./lib/ofx_utilities.cpp 2011-06-01 21:09:51.000000000 -0400
-@@ -115,9 +115,14 @@
- char time_zone_specified = false;
- string ofxdate_whole;
- time_t temptime;
-+ int daylight;
-+ const struct tm* t;
-+
-+ std::time(&temptime);
-+ t = localtime(&temptime);
-+ daylight = t->tm_isdst;
-
- time.tm_isdst = daylight; // initialize dst setting
-- std::time(&temptime);
- local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime))) + (3600 * daylight);
-
- if (ofxdate.size() != 0)
Added: trunk/finance/libofx/files/patch-ofxconnect__ofxpartner.cpp
===================================================================
--- trunk/finance/libofx/files/patch-ofxconnect__ofxpartner.cpp (rev 0)
+++ trunk/finance/libofx/files/patch-ofxconnect__ofxpartner.cpp 2014-09-28 22:53:07 UTC (rev 17643)
@@ -0,0 +1,10 @@
+--- ./ofxconnect/ofxpartner.cpp.orig 2013-04-16 15:50:51.000000000 -0400
++++ ./ofxconnect/ofxpartner.cpp 2014-06-22 19:44:48.000000000 -0400
+@@ -37,6 +37,7 @@
+ #include <vector>
+ #include <algorithm>
+ #include <string.h>
++#include <unistd.h>
+
+ using std::string;
+ using std::vector;
Property changes on: trunk/finance/libofx/files/patch-ofxconnect__ofxpartner.cpp
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/finance/libofx/pkg-descr
===================================================================
--- trunk/finance/libofx/pkg-descr 2014-09-28 22:50:46 UTC (rev 17642)
+++ trunk/finance/libofx/pkg-descr 2014-09-28 22:53:07 UTC (rev 17643)
@@ -1,24 +1,22 @@
-LibOFX is an API designed to allow applications to very easily support
-OFX command responses, usually provided by financial institutions.
+LibOFX is a parser and an API designed to allow applications to
+very easily support OFX command responses, usually provided by
+financial institutions for statement downloads.
LibOFX was implemented directly from the full OFX 1.6 spec, and
currently supports:
--Banking transactions and statements
--Credit card and statements
-
-For the 1.0 release, it should also support:
--Header parsing
--DTD autodetection
--OFX 2.0
--Currency conversion
-Somewhere in the future:
--investment transactions.
+- Banking transactions and statements
+- Credit card and statements
+- Investment transactions
+- OFX 2.0
-You should read the file doc/implementation_notes.txt
-
-This is an ALPHA release. It really works and is not vaporware, but the
-API is still subject to change, and several OFX structures are not fully
-implemented, notably currency conversions and the <PAYEE> aggregate.
+Future projects for LibOFX include:
+- Header parsing
+- DTD autodetection
+- Currency conversion
+- QIF import
+- QIF export (integrated inside the library)
+- OFX export
+
WWW: http://libofx.sourceforge.net/
Modified: trunk/finance/libofx/pkg-plist
===================================================================
--- trunk/finance/libofx/pkg-plist 2014-09-28 22:50:46 UTC (rev 17642)
+++ trunk/finance/libofx/pkg-plist 2014-09-28 22:53:07 UTC (rev 17643)
@@ -3,14 +3,19 @@
bin/ofxdump
include/libofx/libofx.h
lib/libofx.a
-lib/libofx.la
lib/libofx.so
-lib/libofx.so.5
+lib/libofx.so.6
+lib/libofx.so.6.0.0
libdata/pkgconfig/libofx.pc
+man/man1/ofxconnect.1.gz
+man/man1/ofxdump.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/totest.txt
%%DATADIR%%/dtd/ofc.dtd
%%DATADIR%%/dtd/ofx160.dtd
%%DATADIR%%/dtd/ofx201.dtd
%%DATADIR%%/dtd/opensp.dcl
- at dirrm %%DATADIR%%/dtd
- at dirrm %%DATADIR%%
- at dirrm include/libofx
More information about the Midnightbsd-cvs
mailing list