diff options
-rw-r--r-- | app-pda/libopensync/ChangeLog | 6 | ||||
-rw-r--r-- | app-pda/libopensync/files/libopensync-0.22-fbsd.patch | 20 | ||||
-rw-r--r-- | app-pda/libopensync/libopensync-0.22.ebuild | 11 |
3 files changed, 35 insertions, 2 deletions
diff --git a/app-pda/libopensync/ChangeLog b/app-pda/libopensync/ChangeLog index 9f2009265bbf..349098ef0804 100644 --- a/app-pda/libopensync/ChangeLog +++ b/app-pda/libopensync/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-pda/libopensync # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/ChangeLog,v 1.12 2007/06/16 14:41:56 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/ChangeLog,v 1.13 2007/06/17 12:32:32 peper Exp $ + + 17 Jun 2007; Piotr Jaroszyński <peper@gentoo.org> + +files/libopensync-0.22-fbsd.patch, libopensync-0.22.ebuild: + Fix for fbsd. Thanks to Toffanin Mauro <equilibrium@gechi.it> in bug #182314. 16 Jun 2007; Tobias Scherbaum <dertobi123@gentoo.org> libopensync-0.22.ebuild: diff --git a/app-pda/libopensync/files/libopensync-0.22-fbsd.patch b/app-pda/libopensync/files/libopensync-0.22-fbsd.patch new file mode 100644 index 000000000000..c9e7cdc9a8e2 --- /dev/null +++ b/app-pda/libopensync/files/libopensync-0.22-fbsd.patch @@ -0,0 +1,20 @@ +--- libopensync-0.22/formats/vformats-xml/vformat.c 2007-06-17 10:54:54 +0000 ++++ libopensync-0.22/formats/vformats-xml/vformat.c 2007-06-17 10:55:30 +0000 +@@ -236,7 +236,7 @@ + if (charset) { + + cd = iconv_open("UTF-8", charset->str); +-#ifdef SOLARIS ++#if defined(SOLARIS) || defined(__FreeBSD__) || defined(__NetBSD__) + if (iconv(cd, (const char**)&inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) { + #else + if (iconv(cd, &inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) { +@@ -264,7 +264,7 @@ + + /* because inbuf is not UTF-8, we think it is ISO-8859-1 */ + cd = iconv_open("UTF-8", "ISO-8859-1"); +-#ifdef SOLARIS ++#if defined(SOLARIS) || defined(__FreeBSD__) || defined(__NetBSD__) + if (iconv(cd, (const char**)&inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) { + #else + if (iconv(cd, &inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) { diff --git a/app-pda/libopensync/libopensync-0.22.ebuild b/app-pda/libopensync/libopensync-0.22.ebuild index b795b81a8c05..e19563b6bf3f 100644 --- a/app-pda/libopensync/libopensync-0.22.ebuild +++ b/app-pda/libopensync/libopensync-0.22.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/libopensync-0.22.ebuild,v 1.6 2007/06/16 14:41:56 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/libopensync-0.22.ebuild,v 1.7 2007/06/17 12:32:32 peper Exp $ + +inherit eutils DESCRIPTION="OpenSync synchronisation framework library" HOMEPAGE="http://www.opensync.org/" @@ -27,6 +29,13 @@ DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.9.0 doc? ( app-doc/doxygen )" +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}/${P}-fbsd.patch" +} + src_compile() { econf \ --enable-engine \ |