wok-6.x rev 8464
Add: libofx*'
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Feb 07 16:40:34 2011 +0100 (2011-02-07) |
parents | 315e0bf472ea |
children | 518dcd52425b |
files | libofx/receipt libofx/stuff/libofx-0.9.1-include-cxx-headers.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libofx/receipt Mon Feb 07 16:40:34 2011 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="libofx" 1.7 +VERSION="0.9.1" 1.8 +CATEGORY="misc" 1.9 +SHORT_DESC="OFX parser library" 1.10 +MAINTAINER="remyhr@free.fr" 1.11 +DEPENDS="opensp" 1.12 +BUILD_DEPENDS="slitaz-toolchain opensp-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://libofx.sourceforge.net/" 1.15 +WGET_URL="http://sourceforge.net/projects/$PACKAGE/files/$PACKAGE/$VERSION/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + patch -p1 -i ../stuff/libofx-0.9.1-include-cxx-headers.patch 1.22 + ./configure --prefix=/usr $CONFIGURE_ARGS && 1.23 + make && 1.24 + make DESTDIR=$PWD/_pkg install 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + mkdir -p $fs/usr/bin $fs/usr/include /usr/lib 1.31 + cp -a $_pkg/usr/bin $fs/usr 1.32 + cp -a $_pkg/usr/include $fs/usr 1.33 + cp -a $_pkg/usr/lib $fs/usr 1.34 + 1.35 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/libofx/stuff/libofx-0.9.1-include-cxx-headers.patch Mon Feb 07 16:40:34 2011 +0100 2.3 @@ -0,0 +1,82 @@ 2.4 +diff -ur libofx-0.9.1-orig/lib/ofx_container_transaction.cpp libofx-0.9.1-patched/lib/ofx_container_transaction.cpp 2.5 +--- libofx-0.9.1-orig/lib/ofx_container_transaction.cpp 2007-11-09 23:13:21.000000000 +0000 2.6 ++++ libofx-0.9.1-patched/lib/ofx_container_transaction.cpp 2009-11-01 06:29:05.536051464 +0000 2.7 +@@ -22,6 +22,7 @@ 2.8 + #endif 2.9 + 2.10 + #include <string> 2.11 ++#include <cstdlib> 2.12 + #include "messages.hh" 2.13 + #include "libofx.h" 2.14 + #include "ofx_containers.hh" 2.15 +diff -ur libofx-0.9.1-orig/lib/ofx_request.cpp libofx-0.9.1-patched/lib/ofx_request.cpp 2.16 +--- libofx-0.9.1-orig/lib/ofx_request.cpp 2007-10-28 03:01:38.000000000 +0000 2.17 ++++ libofx-0.9.1-patched/lib/ofx_request.cpp 2009-11-01 06:29:22.034801091 +0000 2.18 +@@ -22,6 +22,7 @@ 2.19 + #endif 2.20 + 2.21 + #include <string> 2.22 ++#include <cstring> 2.23 + #include "messages.hh" 2.24 + #include "libofx.h" 2.25 + #include "ofx_request.hh" 2.26 +diff -ur libofx-0.9.1-orig/lib/ofx_request_accountinfo.cpp libofx-0.9.1-patched/lib/ofx_request_accountinfo.cpp 2.27 +--- libofx-0.9.1-orig/lib/ofx_request_accountinfo.cpp 2007-10-28 03:01:38.000000000 +0000 2.28 ++++ libofx-0.9.1-patched/lib/ofx_request_accountinfo.cpp 2009-11-01 06:29:38.054801212 +0000 2.29 +@@ -22,6 +22,7 @@ 2.30 + #endif 2.31 + 2.32 + #include <string> 2.33 ++#include <cstdlib> 2.34 + #include "libofx.h" 2.35 + #include "ofx_request_accountinfo.hh" 2.36 + 2.37 +diff -ur libofx-0.9.1-orig/lib/ofx_request_statement.cpp libofx-0.9.1-patched/lib/ofx_request_statement.cpp 2.38 +--- libofx-0.9.1-orig/lib/ofx_request_statement.cpp 2007-10-28 03:01:38.000000000 +0000 2.39 ++++ libofx-0.9.1-patched/lib/ofx_request_statement.cpp 2009-11-01 06:29:54.464800978 +0000 2.40 +@@ -22,6 +22,7 @@ 2.41 + #endif 2.42 + 2.43 + #include <string> 2.44 ++#include <cstdlib> 2.45 + #include "libofx.h" 2.46 + #include "ofx_utilities.hh" 2.47 + #include "ofx_request_statement.hh" 2.48 +diff -ur libofx-0.9.1-orig/lib/ofx_utilities.cpp libofx-0.9.1-patched/lib/ofx_utilities.cpp 2.49 +--- libofx-0.9.1-orig/lib/ofx_utilities.cpp 2007-10-27 13:15:58.000000000 +0100 2.50 ++++ libofx-0.9.1-patched/lib/ofx_utilities.cpp 2009-11-01 06:28:38.574801207 +0000 2.51 +@@ -18,10 +18,11 @@ 2.52 + #include <config.h> 2.53 + #include <iostream> 2.54 + #include <assert.h> 2.55 ++#include <cstdlib> 2.56 + 2.57 + #include "ParserEventGeneratorKit.h" 2.58 + #include "SGMLApplication.h" 2.59 +-#include <time.h> 2.60 ++#include <ctime> 2.61 + #include <string> 2.62 + #include <locale.h> 2.63 + #include "messages.hh" 2.64 +diff -ur libofx-0.9.1-orig/ofxdump/ofxdump.cpp libofx-0.9.1-patched/ofxdump/ofxdump.cpp 2.65 +--- libofx-0.9.1-orig/ofxdump/ofxdump.cpp 2006-08-02 05:19:22.000000000 +0100 2.66 ++++ libofx-0.9.1-patched/ofxdump/ofxdump.cpp 2009-11-01 06:31:23.564801519 +0000 2.67 +@@ -27,12 +27,14 @@ 2.68 + * (at your option) any later version. * 2.69 + * * 2.70 + ***************************************************************************/ 2.71 ++#include <config.h> /* Include config constants, e.g., VERSION TF */ 2.72 + #include <iostream> 2.73 + #include <iomanip> 2.74 + #include <string> 2.75 + #include "libofx.h" 2.76 +-#include <stdio.h> /* for printf() */ 2.77 +-#include <config.h> /* Include config constants, e.g., VERSION TF */ 2.78 ++#include <cstdlib> 2.79 ++#include <cstdio> /* for printf() */ 2.80 ++#include <cstring> 2.81 + #include <errno.h> 2.82 + 2.83 + #include "cmdline.h" /* Gengetopt generated parser */ 2.84 + 2.85 +