summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libwbxml/ChangeLog9
-rw-r--r--dev-libs/libwbxml/Manifest5
-rw-r--r--dev-libs/libwbxml/files/digest-libwbxml-0.9.01
-rw-r--r--dev-libs/libwbxml/files/wbxml2-0.9.0.nokia-6600.patch46
-rw-r--r--dev-libs/libwbxml/libwbxml-0.9.0.ebuild55
-rw-r--r--dev-libs/libwbxml/metadata.xml9
6 files changed, 125 insertions, 0 deletions
diff --git a/dev-libs/libwbxml/ChangeLog b/dev-libs/libwbxml/ChangeLog
new file mode 100644
index 000000000000..5c714141e45b
--- /dev/null
+++ b/dev-libs/libwbxml/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-libs/libwbxml
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libwbxml/ChangeLog,v 1.1 2005/12/30 14:04:45 s4t4n Exp $
+
+*libwbxml-0.9.0 (30 Dec 2005)
+
+ 30 Dec 2005; Michele Noberasco <s4t4n@gentoo.org> libwbxml-0.9.0.ebuild:
+ Initial import.
+
diff --git a/dev-libs/libwbxml/Manifest b/dev-libs/libwbxml/Manifest
new file mode 100644
index 000000000000..fc3c81cd6df8
--- /dev/null
+++ b/dev-libs/libwbxml/Manifest
@@ -0,0 +1,5 @@
+MD5 88dd6dcd97173572eaa775a552429a81 ChangeLog 331
+MD5 c1d0ca9ee0021341515bfabae1bf6e0d files/digest-libwbxml-0.9.0 68
+MD5 11cfc652ee5ed35f75b0fbd6e3e8332f files/wbxml2-0.9.0.nokia-6600.patch 1884
+MD5 c0b4766394a5b3c05ac08784ebf9a9e8 libwbxml-0.9.0.ebuild 1261
+MD5 4d01239e46295f54006f3d3afd40ac08 metadata.xml 254
diff --git a/dev-libs/libwbxml/files/digest-libwbxml-0.9.0 b/dev-libs/libwbxml/files/digest-libwbxml-0.9.0
new file mode 100644
index 000000000000..5146e752b3d2
--- /dev/null
+++ b/dev-libs/libwbxml/files/digest-libwbxml-0.9.0
@@ -0,0 +1 @@
+MD5 3f9b5bf104ec523b8eebe69f93919ded wbxml2-0.9.0-src.tar.gz 301756
diff --git a/dev-libs/libwbxml/files/wbxml2-0.9.0.nokia-6600.patch b/dev-libs/libwbxml/files/wbxml2-0.9.0.nokia-6600.patch
new file mode 100644
index 000000000000..789f9d5c2053
--- /dev/null
+++ b/dev-libs/libwbxml/files/wbxml2-0.9.0.nokia-6600.patch
@@ -0,0 +1,46 @@
+diff -u wbxml2-0.9.0/src/wbxml_encoder.c ../wbxml2-0.9.0/src/wbxml_encoder.c
+--- wbxml2-0.9.0/src/wbxml_encoder.c 2004-02-26 20:04:58.000000000 +0100
++++ ../wbxml2-0.9.0/src/wbxml_encoder.c 2004-09-09 17:04:24.000000000 +0200
+@@ -855,7 +855,20 @@
+ /* Must never happen */
+ return WBXML_ERROR_INTERNAL;
+ }
+-
++
++#if defined( WBXML_SUPPORT_SYNCML )
++ /* If this is a SyncML document ? */
++ if ((encoder->tree->lang->langID == WBXML_LANG_SYNCML_SYNCML10) ||
++ (encoder->tree->lang->langID == WBXML_LANG_SYNCML_SYNCML11))
++ {
++ if (node->content) {
++ if (wbxml_buffer_get_cstr(node->content)[0] == 0x0a && wbxml_buffer_len(node->content) == 1) {
++ wbxml_buffer_insert_cstr(node->content, "\r", 0);
++ }
++ }
++ }
++#endif /* WBXML_SUPPORT_SYNCML */
++
+ /* Add text into CDATA Buffer */
+ if (!wbxml_buffer_append(encoder->cdata, node->content))
+ return WBXML_ERROR_ENCODER_APPEND_DATA;
+diff -u wbxml2-0.9.0/src/wbxml_parser.c ../wbxml2-0.9.0/src/wbxml_parser.c
+--- wbxml2-0.9.0/src/wbxml_parser.c 2004-02-26 19:58:54.000000000 +0100
++++ ../wbxml2-0.9.0/src/wbxml_parser.c 2004-09-09 17:31:19.000000000 +0200
+@@ -1251,6 +1251,17 @@
+ if (is_token(parser, WBXML_PI))
+ return parse_pi(parser);
+
++ /**
++ * @note Non standard behaviour because of a Nokia 6600 bug
++ * that generate switch pages in wrong places.
++ *
++ * Thanks to Balaji Alasyam for finding this bug.
++ */
++
++ /* switchPage */
++ if ( is_token(parser, WBXML_SWITCH_PAGE) )
++ return parse_switch_page(parser, WBXML_TAG_TOKEN);
++
+ /** @note We have recurrency here ! */
+ return parse_element(parser);
+ }
diff --git a/dev-libs/libwbxml/libwbxml-0.9.0.ebuild b/dev-libs/libwbxml/libwbxml-0.9.0.ebuild
new file mode 100644
index 000000000000..0c3c4ad72a9a
--- /dev/null
+++ b/dev-libs/libwbxml/libwbxml-0.9.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libwbxml/libwbxml-0.9.0.ebuild,v 1.1 2005/12/30 14:04:45 s4t4n Exp $
+
+inherit eutils
+
+IUSE="nokia6600"
+
+MY_P="wbxml2-${PV}"
+
+DESCRIPTION="Library and tools to parse, encode and handle WBXML documents."
+HOMEPAGE="http://libwbxml.aymerick.com/"
+SRC_URI="mirror://sourceforge/wbxmllib/${MY_P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=sys-apps/sed-4.1.4"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack()
+{
+ unpack ${A}
+
+ cd ${S}
+
+ # Add optional Nokia 6600 support
+ use nokia6600 && epatch ${FILESDIR}/${MY_P}.nokia-6600.patch
+
+ # Remove ./configure stuff from the bootstrap script,
+ # we will handle that step directly
+ subst="./configure --prefix=/usr"
+ sed -i -e "s:${subst}:#${subst}:" bootstrap
+
+ # Add support for our own CFLAGS
+ sed -i -e "s:-O3\\\:${CFLAGS}:" src/Makefile.am
+ sed -i -e "s: -g::" src/Makefile.am
+ sed -i -e "s:-O3\\\:${CFLAGS}:" tools/Makefile.am
+ sed -i -e "s: -g::" tools/Makefile.am
+}
+
+src_compile()
+{
+ ./bootstrap
+
+ econf || die "Configuration failed"
+ emake || die "Compilation failed"
+}
+
+src_install()
+{
+ einstall || die "Installation failed"
+}
diff --git a/dev-libs/libwbxml/metadata.xml b/dev-libs/libwbxml/metadata.xml
new file mode 100644
index 000000000000..b6fbeb758390
--- /dev/null
+++ b/dev-libs/libwbxml/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>s4t4n@gentoo.org</email>
+ <name>Michele Noberasco</name>
+</maintainer>
+</pkgmetadata>