Add a patch to fix some wbxml problems.
authorPiotr Jaroszyński <peper@gentoo.org>
Sat, 25 Nov 2006 10:44:26 +0000 (10:44 +0000)
committerPiotr Jaroszyński <peper@gentoo.org>
Sat, 25 Nov 2006 10:44:26 +0000 (10:44 +0000)
Package-Manager: portage-2.1.2_rc2-r1

app-pda/libsyncml/ChangeLog
app-pda/libsyncml/Manifest
app-pda/libsyncml/files/digest-libsyncml-0.4.2-r1 [new file with mode: 0644]
app-pda/libsyncml/files/libsyncml-0.4.2-wbxml.patch [new file with mode: 0644]
app-pda/libsyncml/libsyncml-0.4.2-r1.ebuild [new file with mode: 0644]

index 42fb991fee32547e41bb26b48af03fecedb65c7d..bc3bc469bb41332bb56a3bcb4978a0c8e226d8aa 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-pda/libsyncml
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/libsyncml/ChangeLog,v 1.1 2006/11/13 22:02:11 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/libsyncml/ChangeLog,v 1.2 2006/11/25 10:44:26 peper Exp $
+
+*libsyncml-0.4.2-r1 (25 Nov 2006)
+
+  25 Nov 2006; Piotr Jaroszyński <peper@gentoo.org>
+  +files/libsyncml-0.4.2-wbxml.patch, +libsyncml-0.4.2-r1.ebuild:
+  Add a patch to fix some wbxml problems.
 
 *libsyncml-0.4.2 (13 Nov 2006)
 
index b4f8dc9f944523fd806001c72a5f951c5af46faf..6273c8607a07f80a616129dd82c0866e55262ea6 100644 (file)
@@ -1,15 +1,23 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
+AUX libsyncml-0.4.2-wbxml.patch 1398 RMD160 aad0f1e004cf87606b6871538572dfa447f6578e SHA1 4a5ed03039b4b298e53786ec13f21a689ed6dd69 SHA256 f3bbe29c088e7daa87646798d47925161ce8a017e9b94119a33c6824c90d7f4e
+MD5 0e2033af7c3a1438bee4801dffd57b91 files/libsyncml-0.4.2-wbxml.patch 1398
+RMD160 aad0f1e004cf87606b6871538572dfa447f6578e files/libsyncml-0.4.2-wbxml.patch 1398
+SHA256 f3bbe29c088e7daa87646798d47925161ce8a017e9b94119a33c6824c90d7f4e files/libsyncml-0.4.2-wbxml.patch 1398
 DIST libsyncml-0.4.2.tar.gz 512702 RMD160 ca8d7459807160d6e4a0bf98de01136c295cb458 SHA1 f1d1236ce441d610612c4bf44e28602799997d86 SHA256 f9d15887ab0c9103f7798940e22f5a864a6aa3de80f9796c1b56f8876d566f1e
+EBUILD libsyncml-0.4.2-r1.ebuild 1386 RMD160 8cf7557e078ec18147d9f7e250d81d773309f5b7 SHA1 8cdad7d6ff1b10b51e435b1ba9af4de32fc43177 SHA256 719ed92e05dd4d3bc1935023e6cc29273756eef94c515f5d4d1b4a501ed833de
+MD5 160c779171622e981b60538e6ca1e171 libsyncml-0.4.2-r1.ebuild 1386
+RMD160 8cf7557e078ec18147d9f7e250d81d773309f5b7 libsyncml-0.4.2-r1.ebuild 1386
+SHA256 719ed92e05dd4d3bc1935023e6cc29273756eef94c515f5d4d1b4a501ed833de libsyncml-0.4.2-r1.ebuild 1386
 EBUILD libsyncml-0.4.2.ebuild 1258 RMD160 001c1e00f15a2fdffda0477de7ee8ca8c15895ea SHA1 eec9ab710c6060909db5638a6c3f14a9a08afdb7 SHA256 e749c083143dbe4352f9b73f6f591c25291ac28d1eab2ed8b1a3e3fdd1193a49
 MD5 5d6fdc68b0e0869a241a3afa82403266 libsyncml-0.4.2.ebuild 1258
 RMD160 001c1e00f15a2fdffda0477de7ee8ca8c15895ea libsyncml-0.4.2.ebuild 1258
 SHA256 e749c083143dbe4352f9b73f6f591c25291ac28d1eab2ed8b1a3e3fdd1193a49 libsyncml-0.4.2.ebuild 1258
-MISC ChangeLog 349 RMD160 6dffa37d477f92eb9845b56f54bb64aa2af4f4d3 SHA1 8e3e97c8dfcb1c2ea640f975335e45f42adbc0de SHA256 4e9f26165ca660580a661f9ee6b6f3c8b5e9cd18682aa07b564b94b764fd20af
-MD5 5ea44ef6982dd8aa33b568e839a93a36 ChangeLog 349
-RMD160 6dffa37d477f92eb9845b56f54bb64aa2af4f4d3 ChangeLog 349
-SHA256 4e9f26165ca660580a661f9ee6b6f3c8b5e9cd18682aa07b564b94b764fd20af ChangeLog 349
+MISC ChangeLog 546 RMD160 545ddea5acd6d7a2b0f8714d68aa7b830e3ff6cd SHA1 8aa2f17839bbed3c65cdf26a15b2a1650eb19640 SHA256 af4d9193023c6652566af21ad46fb41d6ecc1604ac218d2fef7a499dd25ad6a3
+MD5 e669c078e5852b253106ecb84fff93be ChangeLog 546
+RMD160 545ddea5acd6d7a2b0f8714d68aa7b830e3ff6cd ChangeLog 546
+SHA256 af4d9193023c6652566af21ad46fb41d6ecc1604ac218d2fef7a499dd25ad6a3 ChangeLog 546
 MISC metadata.xml 304 RMD160 1da32fded95735800bc96b0ff4c0a3af4691a724 SHA1 b96c72c417192c099990a616b12a1d2f55a06064 SHA256 7fa8df0f64197f3f6c018ed0d6c4cc4da014fbcc9af2da9b633f71657470236a
 MD5 45ae331a9c100ecabad1b4cd916f3d37 metadata.xml 304
 RMD160 1da32fded95735800bc96b0ff4c0a3af4691a724 metadata.xml 304
@@ -17,10 +25,13 @@ SHA256 7fa8df0f64197f3f6c018ed0d6c4cc4da014fbcc9af2da9b633f71657470236a metadata
 MD5 f08782044de244eb18c8147dd04fb1a2 files/digest-libsyncml-0.4.2 247
 RMD160 06dc58d8055d86e4c8ec8b03cebe203e5148bb3c files/digest-libsyncml-0.4.2 247
 SHA256 3b4e4493d2a103ec2bfa502bc535bd11130811c574b83db8e6c23f2793fada1d files/digest-libsyncml-0.4.2 247
+MD5 f08782044de244eb18c8147dd04fb1a2 files/digest-libsyncml-0.4.2-r1 247
+RMD160 06dc58d8055d86e4c8ec8b03cebe203e5148bb3c files/digest-libsyncml-0.4.2-r1 247
+SHA256 3b4e4493d2a103ec2bfa502bc535bd11130811c574b83db8e6c23f2793fada1d files/digest-libsyncml-0.4.2-r1 247
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.5 (GNU/Linux)
 
-iD8DBQFFWOtrppoStNGKGywRAg32AJ0Wz/GeWnMi7WfmxiRrcaY/gKLbeACffbb9
-SDJtUtlnmwnZYqY8S6guBxc=
-=oIan
+iD8DBQFFaB6nppoStNGKGywRAnX1AKC1rebmwXDu+sfwgkuumgjekgGcFwCgslh5
+80pbCKGuSlWwt+JNEX/U3lQ=
+=Ytu8
 -----END PGP SIGNATURE-----
diff --git a/app-pda/libsyncml/files/digest-libsyncml-0.4.2-r1 b/app-pda/libsyncml/files/digest-libsyncml-0.4.2-r1
new file mode 100644 (file)
index 0000000..0953590
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 66fad49f54e78ce34c1453c62958e037 libsyncml-0.4.2.tar.gz 512702
+RMD160 ca8d7459807160d6e4a0bf98de01136c295cb458 libsyncml-0.4.2.tar.gz 512702
+SHA256 f9d15887ab0c9103f7798940e22f5a864a6aa3de80f9796c1b56f8876d566f1e libsyncml-0.4.2.tar.gz 512702
diff --git a/app-pda/libsyncml/files/libsyncml-0.4.2-wbxml.patch b/app-pda/libsyncml/files/libsyncml-0.4.2-wbxml.patch
new file mode 100644 (file)
index 0000000..225ebef
--- /dev/null
@@ -0,0 +1,22 @@
+diff -ur libsyncml-0.4.2/libsyncml/parser/sml_xml_assm.c libsyncml/libsyncml/parser/sml_xml_assm.c
+--- libsyncml-0.4.2/libsyncml/parser/sml_xml_assm.c    2006-09-09 16:40:08.000000000 +0200
++++ libsyncml/libsyncml/parser/sml_xml_assm.c  2006-11-24 16:20:14.000000000 +0100
+@@ -1441,14 +1443,17 @@
+       /* Add the syncml start node */
+       switch (assm->session->version) {
+               case SML_VERSION_10:
++                      xmlTextWriterWriteRaw(assm->writer, (xmlChar *)"<!DOCTYPE SyncML PUBLIC \"-//SYNCML//DTD SyncML 1.0//EN\" \"http://www.syncml.org/docs/syncml_represent_v10_20001207.dtd\">");
+                       if (!_smlXmlAssemblerStartNodeNS(assm, SML_ELEMENT_SYNCML, SML_NAMESPACE_SYNCML10, error))
+                               goto error_free_writer;
+                       break;
+               case SML_VERSION_11:
++                      xmlTextWriterWriteRaw(assm->writer, (xmlChar *)"<!DOCTYPE SyncML PUBLIC \"-//SYNCML//DTD SyncML 1.1//EN\" \"http://www.syncml.org/docs/syncml_represent_v11_20020213.dtd.dtd\">");
+                       if (!_smlXmlAssemblerStartNodeNS(assm, SML_ELEMENT_SYNCML, SML_NAMESPACE_SYNCML11, error))
+                               goto error_free_writer;
+                       break;
+               case SML_VERSION_12:
++                      xmlTextWriterWriteRaw(assm->writer, (xmlChar *)"<!DOCTYPE SyncML PUBLIC \"-//SYNCML//DTD SyncML 1.2//EN\" \"http://www.openmobilealliance.org/tech/DTD/OMA-TS-SyncML_RepPro_DTD-V1_2.dtd\">");
+                       if (!_smlXmlAssemblerStartNodeNS(assm, SML_ELEMENT_SYNCML, SML_NAMESPACE_SYNCML12, error))
+                               goto error_free_writer;
+                       break;
+
diff --git a/app-pda/libsyncml/libsyncml-0.4.2-r1.ebuild b/app-pda/libsyncml/libsyncml-0.4.2-r1.ebuild
new file mode 100644 (file)
index 0000000..e330572
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-pda/libsyncml/libsyncml-0.4.2-r1.ebuild,v 1.1 2006/11/25 10:44:26 peper Exp $
+
+inherit eutils
+
+DESCRIPTION="Implementation of the SyncML protocol"
+HOMEPAGE="http://libsyncml.opensync.org/"
+SRC_URI="http://dev.gentooexperimental.org/~peper/distfiles/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="LGPL-2.1"
+IUSE="bluetooth debug doc http obex"
+#test
+
+RDEPEND=">=dev-libs/glib-2.0
+       >=dev-libs/libwbxml-0.9.2
+       dev-libs/libxml2
+       http? ( >=net-libs/libsoup-2.2.91 )
+       obex? ( >=dev-libs/openobex-1.1 )
+       bluetooth? ( net-wireless/bluez-libs )"
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig
+       doc? ( app-doc/doxygen )"
+       #test? ( dev-libs/check )
+
+# Some of the tests are broken
+RESTRICT="test"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       # Fix some wbxml problems
+       epatch "${FILESDIR}/${P}-wbxml.patch"
+}
+
+src_compile() {
+       econf \
+               $(use_enable bluetooth) \
+               $(use_enable obex) \
+               $(use_enable http) \
+               $(use_enable debug) \
+               $(use_enable debug tracing) \
+               --disable-unit-tests \
+               || die "econf failed"
+               #$(use_enable test unit-tests) \
+
+       emake || die "emake failed"
+
+       use doc && doxygen Doxyfile
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+       dodoc AUTHORS ChangeLog README
+
+       use doc && dohtml docs/html/*
+}