diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2008-05-05 22:29:48 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2008-05-05 22:29:48 +0000 |
commit | 64d05139571cb71724815b275470e8a2ebf75a4e (patch) | |
tree | 79309f2f2748e6dcbaaa04d9ba6dd54c3f92caf1 /dev-libs | |
parent | Keyword ~amd64 wrt #219985. (diff) | |
download | historical-64d05139571cb71724815b275470e8a2ebf75a4e.tar.gz historical-64d05139571cb71724815b275470e8a2ebf75a4e.tar.bz2 historical-64d05139571cb71724815b275470e8a2ebf75a4e.zip |
Fix compilation with gcc 4.3, see bug #218782.
Package-Manager: portage-2.1.5_rc6
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libofx/ChangeLog | 6 | ||||
-rw-r--r-- | dev-libs/libofx/Manifest | 15 | ||||
-rw-r--r-- | dev-libs/libofx/files/libofx-0.9.0-gcc43.patch | 374 | ||||
-rw-r--r-- | dev-libs/libofx/libofx-0.9.0.ebuild | 9 |
4 files changed, 399 insertions, 5 deletions
diff --git a/dev-libs/libofx/ChangeLog b/dev-libs/libofx/ChangeLog index 062329287c9a..40dd43b2a1b6 100644 --- a/dev-libs/libofx/ChangeLog +++ b/dev-libs/libofx/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/libofx # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libofx/ChangeLog,v 1.44 2008/03/27 22:36:54 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libofx/ChangeLog,v 1.45 2008/05/05 22:29:47 eva Exp $ + + 06 May 2008; Gilles Dartiguelongue <eva@gentoo.org> + +files/libofx-0.9.0-gcc43.patch, libofx-0.9.0.ebuild: + Fix compilation with gcc 4.3, see bug #218782. 27 Mar 2008; Jeroen Roovers <jer@gentoo.org> libofx-0.9.0.ebuild: Marked ~hppa (bug #214356). diff --git a/dev-libs/libofx/Manifest b/dev-libs/libofx/Manifest index cbf7a718df2a..046f720c5853 100644 --- a/dev-libs/libofx/Manifest +++ b/dev-libs/libofx/Manifest @@ -1,9 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX libofx-0.8.0-tree.diff 202 RMD160 ca49fae10a435334b7b5f188f3b469d0969ad95a SHA1 eefd9713284a12a76beefbd21fcd371426f373cb SHA256 5f2234544ab945c9e878050fe50875de112fb25439814ba733f8f9ce8d445c24 +AUX libofx-0.9.0-gcc43.patch 14699 RMD160 47536638d447a9b694816f8b7ed83aa394763004 SHA1 571bd81cc304c6e56abc39928f95621275a177c8 SHA256 3b888b3178b3c3d99e8b23d676bfebc4aa1d6adc9c4c02db432a99bd5db5cffb DIST libofx-0.8.0.tar.gz 748496 RMD160 b4b6f7562a2435e465f8bc40c4a338082b82d901 SHA1 38c2782ed50bd3dd2e89ec3b7c4f3f3611ea44d2 SHA256 542221f78ee5d50e3be3fe8b3abfd3b0b9c8971a0af6bbe2895dc7736e4b289c DIST libofx-0.8.3.tar.gz 971250 RMD160 a5c9acd6af4ce252d5a0941c82436af72961cd7c SHA1 0fa22f0535c1f50d4b9056f6f86d1429f1c8485f SHA256 bcba43e92468fc007b40af263ed229c4834b0b65cd556fd456530c0509e46ce4 DIST libofx-0.9.0.tar.gz 1260933 RMD160 cca1ddc7b7c18350d82cfe986ad1c252984ffd5b SHA1 12e6f07d43240b090f0a39e7b118cbf64d57c90b SHA256 0aeec8a10e870474f80fe1385ecd5bb284d8f281c2b527796fdc3ee647ce7c20 EBUILD libofx-0.8.0-r1.ebuild 963 RMD160 0222a13cc47fd8304219446877ef3cd77bbd823e SHA1 bea07c2168ffa7ae3709fa53c5d33b6ea429f484 SHA256 eaf5e7042018ff03e00359a27d223503b15fade795199e1a5e6d09184475e236 EBUILD libofx-0.8.3.ebuild 920 RMD160 ec4598ec00aa471e121a97493aebfb8520ad41b1 SHA1 4856b783a8eccd9b1634de12b83a4947a3c9de80 SHA256 b36e78eba3c8a744e16f80fd2fc69f1269c457f2cde6b7e4613ff14527749c30 -EBUILD libofx-0.9.0.ebuild 1393 RMD160 c2fedfff98ba0f7dbc470a3dc31e4a7bba1c3f4e SHA1 838ffc26d6b35e163ff3f02554f6b37ef71d8728 SHA256 b1b20b1d08457848cc8d17f4c4fcdec3ad4e4b125f6a7d8aace5ace27933a42b -MISC ChangeLog 5445 RMD160 61dda01df1ae5ec759ae9b0a46bb859909d31efc SHA1 2830baf3da80b3e3e8581b2d76138598226e12be SHA256 269df9776061e7f64a4b2cfd2d4d2733907b655b8e6486802ed98b110fd6b300 +EBUILD libofx-0.9.0.ebuild 1497 RMD160 7f5127b5d3f85ab3a6beed80889d8a958129c872 SHA1 a759d8c1f99779305d10674e6bf4aeb74d6a847c SHA256 9071611a78b87af39a7a72d870fd5da048c856d7115aedb3206f724a67a7c463 +MISC ChangeLog 5605 RMD160 0fe86dcb7c088780f72746b1974d69e83452150a SHA1 dc93126c7a1c9993b920776e56271f3d4cf3b789 SHA256 0bbe3052a5730da2cbfe017b1bbe7796b5eabb1a3627e35cf1bd695ef8342cfc MISC metadata.xml 231 RMD160 c13056229989c3d4f448a7c7abcff3f4ee7ce13c SHA1 2d63dfb700b223f8f37c078692a81b2237896bce SHA256 4595c2615fd7c9095517949b1a920d4457f92801eb9d46307b18aafe58ec2a8a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkgfpoIACgkQ1fmVwcYIWAacYACgjxocAVVr0Ex53mogmmAILvUn +fuQAoLxyO2xkjbzKdq/C+jEXbc1IOxnM +=Z3OE +-----END PGP SIGNATURE----- diff --git a/dev-libs/libofx/files/libofx-0.9.0-gcc43.patch b/dev-libs/libofx/files/libofx-0.9.0-gcc43.patch new file mode 100644 index 000000000000..c4964a4117ac --- /dev/null +++ b/dev-libs/libofx/files/libofx-0.9.0-gcc43.patch @@ -0,0 +1,374 @@ +diff -NrU5 libofx-0.9.0.orig/lib/ofx_container_transaction.cpp libofx-0.9.0/lib/ofx_container_transaction.cpp +--- libofx-0.9.0.orig/lib/ofx_container_transaction.cpp 2007-11-10 00:10:49.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_container_transaction.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,10 +19,11 @@ + + #ifdef HAVE_CONFIG_H + #include <config.h> + #endif + ++#include <cstdlib> + #include <string> + #include "messages.hh" + #include "libofx.h" + #include "ofx_containers.hh" + #include "ofx_utilities.hh" +diff -NrU5 libofx-0.9.0.orig/lib/ofx_request_accountinfo.cpp libofx-0.9.0/lib/ofx_request_accountinfo.cpp +--- libofx-0.9.0.orig/lib/ofx_request_accountinfo.cpp 2007-10-28 03:33:43.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_request_accountinfo.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,10 +19,11 @@ + + #ifdef HAVE_CONFIG_H + #include <config.h> + #endif + ++#include <cstdlib> + #include <string> + #include "libofx.h" + #include "ofx_request_accountinfo.hh" + + using namespace std; +diff -NrU5 libofx-0.9.0.orig/lib/ofx_request.cpp libofx-0.9.0/lib/ofx_request.cpp +--- libofx-0.9.0.orig/lib/ofx_request.cpp 2007-10-28 03:37:52.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_request.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,10 +19,11 @@ + + #ifdef HAVE_CONFIG_H + #include <config.h> + #endif + ++#include <cstring> + #include <string> + #include "messages.hh" + #include "libofx.h" + #include "ofx_request.hh" + +diff -NrU5 libofx-0.9.0.orig/lib/ofx_request_statement.cpp libofx-0.9.0/lib/ofx_request_statement.cpp +--- libofx-0.9.0.orig/lib/ofx_request_statement.cpp 2007-10-28 13:57:18.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_request_statement.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,10 +19,11 @@ + + #ifdef HAVE_CONFIG_H + #include <config.h> + #endif + ++#include <cstdlib> + #include <string> + #include "libofx.h" + #include "ofx_utilities.hh" + #include "ofx_request_statement.hh" + +diff -NrU5 libofx-0.9.0.orig/lib/ofx_utilities.cpp libofx-0.9.0/lib/ofx_utilities.cpp +--- libofx-0.9.0.orig/lib/ofx_utilities.cpp 2007-10-27 14:12:49.000000000 +0200 ++++ libofx-0.9.0/lib/ofx_utilities.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -19,11 +19,12 @@ + #include <iostream> + #include <assert.h> + + #include "ParserEventGeneratorKit.h" + #include "SGMLApplication.h" +-#include <time.h> ++#include <ctime> ++#include <cstdlib> + #include <string> + #include <locale.h> + #include "messages.hh" + #include "ofx_utilities.hh" + +diff -NrU5 libofx-0.9.0.orig/lib/ofx_utilities.cpp.orig libofx-0.9.0/lib/ofx_utilities.cpp.orig +--- libofx-0.9.0.orig/lib/ofx_utilities.cpp.orig 1970-01-01 01:00:00.000000000 +0100 ++++ libofx-0.9.0/lib/ofx_utilities.cpp.orig 2007-10-27 14:12:49.000000000 +0200 +@@ -0,0 +1,245 @@ ++/*************************************************************************** ++ ofx_util.cpp ++ ------------------- ++ copyright : (C) 2002 by Benoit Grégoire ++ email : bock@step.polymtl.ca ++ ***************************************************************************/ ++/**@file ++ * \brief Various simple functions for type conversion & al ++ */ ++/*************************************************************************** ++ * * ++ * This program is free software; you can redistribute it and/or modify * ++ * it under the terms of the GNU General Public License as published by * ++ * the Free Software Foundation; either version 2 of the License, or * ++ * (at your option) any later version. * ++ * * ++ ***************************************************************************/ ++#include <config.h> ++#include <iostream> ++#include <assert.h> ++ ++#include "ParserEventGeneratorKit.h" ++#include "SGMLApplication.h" ++#include <time.h> ++#include <string> ++#include <locale.h> ++#include "messages.hh" ++#include "ofx_utilities.hh" ++ ++#ifdef OS_WIN32 ++# define DIRSEP "\\" ++#else ++# define DIRSEP "/" ++#endif ++ ++ ++using namespace std; ++/** ++ Convert an OpenSP CharString directly to a C++ stream, to enable the use of cout directly for debugging. ++*/ ++/*ostream &operator<<(ostream &os, SGMLApplication::CharString s) ++ { ++ for (size_t i = 0; i < s.len; i++) ++ { ++ os << ((char *)(s.ptr))[i*sizeof(SGMLApplication::Char)]; ++ } ++ return os; ++ }*/ ++ ++/*wostream &operator<<(wostream &os, SGMLApplication::CharString s) ++ { ++ for (size_t i = 0; i < s.len; i++) ++ {//cout<<i; ++ os << wchar_t(s.ptr[i*MULTIPLY4]); ++ } ++ return os; ++ } */ ++ ++/*wchar_t* CharStringtowchar_t(SGMLApplication::CharString source, wchar_t *dest) ++ { ++ size_t i; ++ for (i = 0; i < source.len; i++) ++ { ++ dest[i]+=wchar_t(source.ptr[i*sizeof(SGMLApplication::Char)*(sizeof(char)/sizeof(wchar_t))]); ++ } ++ return dest; ++ }*/ ++ ++string CharStringtostring(const SGMLApplication::CharString source, string &dest) ++{ ++ size_t i; ++ dest.assign("");//Empty the provided string ++ // cout<<"Length: "<<source.len<<"sizeof(Char)"<<sizeof(SGMLApplication::Char)<<endl; ++ for (i = 0; i < source.len; i++){ ++ dest+=(char)(((source.ptr)[i])); ++ // cout<<i<<" "<<(char)(((source.ptr)[i]))<<endl; ++ } ++ return dest; ++} ++ ++string AppendCharStringtostring(const SGMLApplication::CharString source, string &dest) ++{ ++ size_t i; ++ for (i = 0; i < source.len; i++) ++ { ++ dest+=(char)(((source.ptr)[i])); ++ } ++ return dest; ++} ++ ++/** ++ * Converts a date from the YYYYMMDDHHMMSS.XXX[gmt offset:tz name] OFX format (see OFX 2.01 spec p.66) to a C time_t. ++ * @param ofxdate date from the YYYYMMDDHHMMSS.XXX[gmt offset:tz name] OFX format ++ * @return C time_t in the local time zone ++ * @note ++ * @li The library always returns the time in the systems local time ++ * @li OFX defines the date up to the millisecond. The library ignores those milliseconds, since ANSI C does not handle such precision cleanly. The date provided by LibOFX is precise to the second, assuming that information this precise was provided in the ofx file. So you wont know the millisecond you were ruined... ++ ++ * @note DEVIATION FROM THE SPECS : The OFX specifications (both version 1.6 and 2.02) state that a client should assume that if the server returns a date without à specific time, we assume it means 0h00 GMT. As such, when we apply the local timezone and for example you are in the EST timezone, we will remove 5h, and the transaction will have occurred on the prior day! This is probably not what the bank intended (and will lead to systematic errors), but the spec is quite explicit in this respect (Ref: OFX 2.01 spec pp. 66-68)<BR><BR> ++ * To solve this problem (since usually a time error is relatively unimportant, but date error is), and to avoid problems in Australia caused by the behaviour in libofx up to 0.6.4, it was decided starting with 0.6.5 to use the following behavior:<BR><BR> ++ * -No specific time is given in the file (date only): Considering that most banks seem to be sending dates in this format represented as local time (not compliant with the specs), the transaction is assumed to have occurred 11h59 (just before noon) LOCAL TIME. This way, we should never change the date, since you'd have to travel in a timezone at least 11 hours backwards or 13 hours forward from your own to introduce mistakes. However, if you are in timezone +13 or +14, and your bank meant the data to be interpreted by the spec, you will get the wrong date. We hope that banks in those timezone will either represent in local time like most, or specify the timezone properly.<BR><BR> ++ * -No timezone is specified, but exact time is, the same behavior is mostly used, as many banks just append zeros instead of using the short notation. However, the time specified is used, even if 0 (midnight).<BR><BR> ++ * -When a timezone is specified, it is always used to properly convert in local time, following the spec. ++ * ++ */ ++time_t ofxdate_to_time_t(const string ofxdate) ++{ ++ struct tm time; ++ double local_offset; /* in seconds */ ++ float ofx_gmt_offset; /* in fractionnal hours */ ++ char timezone[4]; /* Original timezone: the library does not expose this value*/ ++ char exact_time_specified = false; ++ char time_zone_specified = false; ++ ++ time_t temptime; ++ std::time(&temptime); ++ local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime))); ++ ++ if(ofxdate.size()!=0){ ++ time.tm_year=atoi(ofxdate.substr(0,4).c_str())-1900; ++ time.tm_mon=atoi(ofxdate.substr(4,2).c_str())-1; ++ time.tm_mday=atoi(ofxdate.substr(6,2).c_str()); ++ if(ofxdate.size()>8) { ++ /* if exact time is specified */ ++exact_time_specified = true; ++ time.tm_hour=atoi(ofxdate.substr(8,2).c_str()); ++ time.tm_min=atoi(ofxdate.substr(10,2).c_str()); ++ time.tm_sec=atoi(ofxdate.substr(12,2).c_str()); ++ } ++ ++ /* Check if the timezone has been specified */ ++ string::size_type startidx = ofxdate.find("["); ++ string::size_type endidx; ++ if(startidx!=string::npos){ ++ /* Time zone was specified */ ++ time_zone_specified = true; ++ startidx++; ++ endidx = ofxdate.find(":", startidx)-1; ++ ofx_gmt_offset=atof(ofxdate.substr(startidx,(endidx-startidx)+1).c_str()); ++ startidx = endidx+2; ++ strncpy(timezone,ofxdate.substr(startidx,3).c_str(),4); ++ } ++ else{ ++ /* Time zone was not specified, assume GMT (provisionnaly) in case exact time is specified */ ++ ofx_gmt_offset=0; ++ strcpy(timezone, "GMT"); ++ } ++ ++ if(time_zone_specified == true) ++ { ++ /* If the timezone is specified always correct the timezone */ ++ /* If the timezone is not specified, but the exact time is, correct the timezone, assuming GMT following the spec */ ++ /* Correct the time for the timezone */ ++ time.tm_sec = time.tm_sec + (int)(local_offset - (ofx_gmt_offset*60*60));//Convert from fractionnal hours to seconds ++ } ++ else if (exact_time_specified == false) ++ { ++ /*Time zone data missing and exact time not specified, diverge from the OFX spec ans assume 11h59 local time */ ++ time.tm_hour=11; ++ time.tm_min=59; ++ time.tm_sec=0; ++ } ++ } ++ else{ ++ message_out(ERROR, "ofxdate_to_time_t(): Unable to convert time, string is 0 length!"); ++ } ++ return mktime(&time); ++} ++ ++/** ++ * Convert a C++ string containing an amount of money as specified by the OFX standard and convert it to a double float. ++ *\note The ofx number format is the following: "." or "," as decimal separator, NO thousands separator. ++ */ ++double ofxamount_to_double(const string ofxamount) ++{ ++ //Replace commas and decimal points for atof() ++ string::size_type idx; ++ string tmp = ofxamount; ++ ++ idx = tmp.find(','); ++ if(idx==string::npos){ ++ idx = tmp.find('.'); ++ } ++ ++ if(idx!=string::npos){ ++ tmp.replace(idx,1,1,((localeconv())->decimal_point)[0]); ++ } ++ ++ return atof(tmp.c_str()); ++} ++ ++/** ++Many weird caracters can be present inside a SGML element, as a result on the transfer protocol, or for any reason. This function greatly enhances the reliability of the library by zapping those gremlins (backspace,formfeed,newline,carriage return, horizontal and vertical tabs) as well as removing whitespace at the begining and end of the string. Otherwise, many problems will occur during stringmatching. ++*/ ++string strip_whitespace(const string para_string) ++{ ++ size_t index; ++ size_t i; ++ string temp_string = para_string; ++ const char *whitespace = " \b\f\n\r\t\v"; ++ const char *abnormal_whitespace = "\b\f\n\r\t\v";//backspace,formfeed,newline,cariage return, horizontal and vertical tabs ++ message_out(DEBUG4,"strip_whitespace() Before: |"+temp_string+"|"); ++ for(i=0;i<=temp_string.size()&&temp_string.find_first_of(whitespace, i)==i&&temp_string.find_first_of(whitespace, i)!=string::npos;i++); ++ temp_string.erase(0,i);//Strip leading whitespace ++ for(i=temp_string.size()-1;(i>=0)&&(temp_string.find_last_of(whitespace, i)==i)&&(temp_string.find_last_of(whitespace, i)!=string::npos);i--); ++ temp_string.erase(i+1,temp_string.size()-(i+1));//Strip trailing whitespace ++ ++while ((index = temp_string.find_first_of(abnormal_whitespace))!=string::npos) ++ { ++ temp_string.erase(index,1);//Strip leading whitespace ++ }; ++ ++ message_out(DEBUG4,"strip_whitespace() After: |"+temp_string+"|"); ++ ++ return temp_string; ++} ++ ++ ++int mkTempFileName(const char *tmpl, char *buffer, unsigned int size) { ++ const char *tmp_dir; ++ ++ tmp_dir = getenv ("TMPDIR"); ++ if (!tmp_dir) ++ tmp_dir = getenv ("TMP"); ++ if (!tmp_dir) ++ tmp_dir = getenv ("TEMP"); ++ ++ if (!tmp_dir) ++ { ++#ifdef OS_WIN32 ++ tmp_dir = "C:\\"; ++#else ++ tmp_dir = "/tmp"; ++#endif /* !OS_WIN32 */ ++ } ++ ++ strncpy(buffer, tmp_dir, size); ++ assert((strlen(buffer)+strlen(tmpl)+2)<size); ++ strcat(buffer, DIRSEP); ++ strcat(buffer, tmpl); ++ return 0; ++} ++ ++ ++ +diff -NrU5 libofx-0.9.0.orig/ofxconnect/ofxconnect.cpp libofx-0.9.0/ofxconnect/ofxconnect.cpp +--- libofx-0.9.0.orig/ofxconnect/ofxconnect.cpp 2007-10-26 20:24:10.000000000 +0200 ++++ libofx-0.9.0/ofxconnect/ofxconnect.cpp 2008-04-21 22:31:18.000000000 +0200 +@@ -34,10 +34,11 @@ + #include "libofx.h" + #include <config.h> /* Include config constants, e.g., VERSION TF */ + #include <stdio.h> + #include <stdlib.h> + #include <unistd.h> ++#include <cstring> + + #ifdef HAVE_LIBCURL + #include <curl/curl.h> + #endif + +diff -NrU5 libofx-0.9.0.orig/ofxconnect/ofxpartner.cpp libofx-0.9.0/ofxconnect/ofxpartner.cpp +--- libofx-0.9.0.orig/ofxconnect/ofxpartner.cpp 2006-03-26 06:49:54.000000000 +0200 ++++ libofx-0.9.0/ofxconnect/ofxpartner.cpp 2008-04-21 22:28:26.000000000 +0200 +@@ -33,10 +33,13 @@ + #include <sys/stat.h> + + #include <iostream> + #include <string> + #include <vector> ++#include <algorithm> ++#include <cstring> ++ + + using std::string; + using std::vector; + using std::cout; + using std::endl; +diff -NrU5 libofx-0.9.0.orig/ofxdump/ofxdump.cpp libofx-0.9.0/ofxdump/ofxdump.cpp +--- libofx-0.9.0.orig/ofxdump/ofxdump.cpp 2006-08-02 06:19:22.000000000 +0200 ++++ libofx-0.9.0/ofxdump/ofxdump.cpp 2008-04-21 22:26:24.000000000 +0200 +@@ -27,10 +27,12 @@ + * (at your option) any later version. * + * * + ***************************************************************************/ + #include <iostream> + #include <iomanip> ++#include <cstdlib> ++#include <cstring> + #include <string> + #include "libofx.h" + #include <stdio.h> /* for printf() */ + #include <config.h> /* Include config constants, e.g., VERSION TF */ + #include <errno.h> diff --git a/dev-libs/libofx/libofx-0.9.0.ebuild b/dev-libs/libofx/libofx-0.9.0.ebuild index 12629250897c..8f0f568d8ba9 100644 --- a/dev-libs/libofx/libofx-0.9.0.ebuild +++ b/dev-libs/libofx/libofx-0.9.0.ebuild @@ -1,12 +1,14 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libofx/libofx-0.9.0.ebuild,v 1.5 2008/03/27 22:36:54 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libofx/libofx-0.9.0.ebuild,v 1.6 2008/05/05 22:29:47 eva Exp $ EAPI="1" +inherit eutils + DESCRIPTION="Library to support the Open Financial eXchange XML Format" HOMEPAGE="http://libofx.sourceforge.net/" -SRC_URI="mirror://sourceforge/libofx/${P}.tar.gz" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" @@ -37,6 +39,9 @@ src_unpack() { -e 's|^\(SUBDIRS = .*\) doc|\1|' \ "${S}/Makefile.in" || die "sed failed" fi + + # Fix compilation with gcc 4.3, see bug #218782 + epatch "${FILESDIR}/${P}-gcc43.patch" } src_install() { |