- Update finance/libofx to 0.9.9

- Support staging
- Remove USE_GCC= any; port seems to build fine with clang
- Move LICENSE to proper location
- Modernize LIB_DEPENDS
- USE_GMAKE -> USES= gmake
- Update pkg-descr to reflect current capabilities
- Bump PORTREVISION on dependent ports due to so version bump
This commit is contained in:
Jason E. Hale 2013-10-04 13:26:28 +00:00
parent ed73823d24
commit b97c9d0f79
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329305
10 changed files with 46 additions and 50 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= gnucash
PORTVERSION= 2.4.13
PORTREVISION= 1
CATEGORIES= finance gnome
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION}

View file

@ -3,7 +3,7 @@
PORTNAME= grisbi
PORTVERSION= 0.8.9
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= finance
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION:R}.x/
@ -12,7 +12,7 @@ COMMENT= Personal accounting application
LICENSE= GPLv2
LIB_DEPENDS= ofx.5:${PORTSDIR}/finance/libofx
LIB_DEPENDS= libofx.so:${PORTSDIR}/finance/libofx
USE_BZIP2= yes
USES= gmake iconv pkgconfig

View file

@ -2,6 +2,7 @@
PORTNAME= homebank
PORTVERSION= 4.5.4
PORTREVISION= 1
CATEGORIES= finance
MASTER_SITES= http://homebank.free.fr/public/

View file

@ -2,7 +2,7 @@
PORTNAME= kmymoney
PORTVERSION= 4.6.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= finance kde
MASTER_SITES= SF/${PORTNAME}2/KMyMoney-KDE4/${PORTVERSION}

View file

@ -2,21 +2,20 @@
# $FreeBSD$
PORTNAME= libofx
PORTVERSION= 0.9.5
PORTREVISION= 1
PORTVERSION= 0.9.9
CATEGORIES= finance
MASTER_SITES= SF
MAINTAINER= jhale@FreeBSD.org
COMMENT= OpenSource implementation of the OFX (Open Financial eXchange)
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
xml\\+\\+-2.6.2:${PORTSDIR}/textproc/libxml++26 \
osp.5:${PORTSDIR}/textproc/opensp
LICENSE= GPLv2
USE_GCC= any
USES= iconv pkgconfig
USE_GMAKE= yes
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libxml++-2.6.so:${PORTSDIR}/textproc/libxml++26 \
libosp.so:${PORTSDIR}/textproc/opensp
USES= gmake iconv pkgconfig
USE_AUTOTOOLS= aclocal autoheader automake autoconf libtool
ACLOCAL_ARGS= -I m4
AUTOMAKE_ARGS= --add-missing
@ -28,27 +27,21 @@ USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
LICENSE= GPLv2
MAN1= ofxconnect.1 \
ofxdump.1
PORTDOCS= *
OPTIONS_DEFINE= APIDOC
APIDOC_DESC= Install full API documentation
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in AUTHORS ChangeLog INSTALL NEWS README totest.txt
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.if ${PORT_OPTIONS:MAPIDOC}
@(cd ${WRKSRC}/doc; ${COPYTREE_SHARE} html ${DOCSDIR})
@(cd ${WRKSRC}/doc; ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
.endif
.endif

View file

@ -1,2 +1,2 @@
SHA256 (libofx-0.9.5.tar.gz) = a075c5634b94bad16f8c949eeb77625d31bedea3bb10a8da174b989ffab7e78e
SIZE (libofx-0.9.5.tar.gz) = 1526857
SHA256 (libofx-0.9.9.tar.gz) = 94ef88c5cdc3e307e473fa2a55d4a05da802ee2feb65c85c63b9019c83747b23
SIZE (libofx-0.9.9.tar.gz) = 1072495

View file

@ -1,11 +1,11 @@
--- ./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();
--- ./lib/ofx_preproc.cpp.orig 2013-04-25 14:06:29.000000000 -0400
+++ ./lib/ofx_preproc.cpp 2013-10-04 06:27:25.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();
char * inchar = (char *)s_buffer.c_str();

View file

@ -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/

View file

@ -5,8 +5,10 @@ include/libofx/libofx.h
lib/libofx.a
lib/libofx.la
lib/libofx.so
lib/libofx.so.5
lib/libofx.so.6
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

View file

@ -2,6 +2,7 @@
PORTNAME= skrooge
PORTVERSION= 1.7.1
PORTREVISION= 1
CATEGORIES= finance kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTNAME}/${PORTVERSION}/src/