ports/157515: [MAINTAINER] finance/libofx: Update to 0.94

Jason E. Hale bsdkaffee at gmail.com
Thu Jun 2 02:20:09 UTC 2011


>Number:         157515
>Category:       ports
>Synopsis:       [MAINTAINER] finance/libofx: Update to 0.94
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 02 02:20:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jason E. Hale
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
none 
>Environment:
System: FreeBSD mocha.verizon.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Feb 22 19:19:42 EST 2011 root at mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA8 i386


	
>Description:
- Update finance/libofx to 0.94
- Improve the patch for ofx_utilities.cpp (taken from OpenBSD ports) 
	
>How-To-Repeat:
Use attached diff
	
>Fix:

	

--- 2011-06-01-libofx.diff begins here ---
diff -ruN libofx.orig/Makefile libofx/Makefile
--- libofx.orig/Makefile	2011-06-01 18:26:20.000000000 -0400
+++ libofx/Makefile	2011-06-01 21:43:54.000000000 -0400
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	libofx
-PORTVERSION=	0.9.2
+PORTVERSION=	0.9.4
 CATEGORIES=	finance
 MASTER_SITES=	SF
 
@@ -14,14 +14,14 @@
 COMMENT=	OpenSource implementation of the OFX (Open Financial eXchange)
 
 LIB_DEPENDS=	curl.6:${PORTSDIR}/ftp/curl \
-		xml\\+\\+-1.0.1:${PORTSDIR}/textproc/libxml++ \
+		xml\\+\\+-2.6.2:${PORTSDIR}/textproc/libxml++26 \
 		osp.5:${PORTSDIR}/textproc/opensp
 
 USE_ICONV=	yes
 USE_GMAKE=	yes
 USE_AUTOTOOLS=	aclocal autoheader automake autoconf libtool
 ACLOCAL_ARGS=	-I m4
-CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ENV=	LDFLAGS="${LDFLAGS}"
 CONFIGURE_ARGS=	--disable-doxygen --disable-dot --disable-gengetopt \
 		--with-opensp-includes=${LOCALBASE}/include/OpenSP \
 		--with-opensp-libs=${LOCALBASE}/lib
@@ -34,6 +34,9 @@
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MAN1=		ofxconnect.1 \
+		ofxdump.1
+
 PORTDOCS=	*
 
 OPTIONS=	APIDOC "Install full API documentation" off
diff -ruN libofx.orig/distinfo libofx/distinfo
--- libofx.orig/distinfo	2011-06-01 18:26:20.000000000 -0400
+++ libofx/distinfo	2011-06-01 18:26:50.000000000 -0400
@@ -1,2 +1,2 @@
-SHA256 (libofx-0.9.2.tar.gz) = f6d690d3c5305a414b332b814e6c86f2200e809702ae7dffed9331a445e52d6d
-SIZE (libofx-0.9.2.tar.gz) = 1162303
+SHA256 (libofx-0.9.4.tar.gz) = 9b30641fd5672e7a4a7fd3dd789a8a9df80039e5cc5756e28e16e8935560dbaf
+SIZE (libofx-0.9.4.tar.gz) = 1263379
diff -ruN libofx.orig/files/patch-Makefile.am libofx/files/patch-Makefile.am
--- libofx.orig/files/patch-Makefile.am	2011-06-01 18:26:20.000000000 -0400
+++ libofx/files/patch-Makefile.am	2011-06-01 21:11:40.000000000 -0400
@@ -1,14 +1,14 @@
---- Makefile.am.orig	2007-10-27 20:28:07.000000000 +0900
-+++ Makefile.am	2009-03-16 04:05:45.000000000 +0900
-@@ -1,27 +1,23 @@
- if BUILD_OFXCONNECT
-        MAYBE_OFXCONNECT = ofxconnect
+--- ./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)
  
--docdir = ${prefix}/share/doc/libofx
--
 -doc_DATA = \
 +EXTRA_DIST = \
    AUTHORS \
@@ -24,7 +24,8 @@
    libofx.spec.in \
    libofx.spec \
    libofx.pc \
-   totest.txt \
+@@ -23,7 +19,7 @@
+   libofx.lsm.in \
    libofx.lsm
  
 -pkgconfigdir=$(libdir)/pkgconfig
diff -ruN libofx.orig/files/patch-lib_ofx_preproc.cpp libofx/files/patch-lib_ofx_preproc.cpp
--- libofx.orig/files/patch-lib_ofx_preproc.cpp	2011-06-01 18:26:20.000000000 -0400
+++ libofx/files/patch-lib_ofx_preproc.cpp	2011-06-01 18:51:34.000000000 -0400
@@ -1,14 +1,11 @@
-
-$FreeBSD: ports/finance/libofx/files/patch-lib_ofx_preproc.cpp,v 1.5 2011/02/17 21:31:17 dhn Exp $
-
---- ./lib/ofx_preproc.cpp.orig	2011-02-12 11:51:02.000000000 -0500
-+++ ./lib/ofx_preproc.cpp	2011-02-14 13:04:17.000000000 -0500
-@@ -194,7 +194,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;
+--- ./lib/ofx_preproc.cpp.orig	2011-04-16 13:10:20.000000000 -0400
++++ ./lib/ofx_preproc.cpp	2011-04-21 11:03:43.000000000 -0400
+@@ -228,7 +228,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(OS_FREEBSD)
- 	    const char * inchar = (const char *)s_buffer.c_str();
+           const char * inchar = (const char *)s_buffer.c_str();
  #else
- 	    char * inchar = (char *)s_buffer.c_str();
+           char * inchar = (char *)s_buffer.c_str();
diff -ruN libofx.orig/files/patch-lib_ofx_utilities.cpp libofx/files/patch-lib_ofx_utilities.cpp
--- libofx.orig/files/patch-lib_ofx_utilities.cpp	2011-06-01 18:26:20.000000000 -0400
+++ libofx/files/patch-lib_ofx_utilities.cpp	2011-06-01 21:14:01.000000000 -0400
@@ -1,15 +1,18 @@
---- ./lib/ofx_utilities.cpp.orig	2011-02-12 11:51:02.000000000 -0500
-+++ ./lib/ofx_utilities.cpp	2011-02-14 22:24:26.000000000 -0500
-@@ -115,9 +115,10 @@
- 
+--- ./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);
  
--  time.tm_isdst = daylight; // iniitialize dst setting
-+  bzero(&time, sizeof(time));
-+
-   std::time(&temptime);
--  local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime))) + (3600*daylight);
-+  local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime)));
-   
-   if(ofxdate.size()!=0){
-     if (ofxdate.substr(0,8).find_first_not_of("0123456789") != string::npos ){
+   if (ofxdate.size() != 0)
--- 2011-06-01-libofx.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list