pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/libopensync Initial import libopensync version 0.22



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a25b9a6a8558
branches:  trunk
changeset: 529049:a25b9a6a8558
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed May 23 12:44:40 2007 +0000

description:
Initial import libopensync version 0.22

OpenSync is a synchronization framework that is platform and distribution
independent. It consists of a powerful sync-engine and several plugins
that can be used to connect to devices.

OpenSync is very flexible and capable of synchronizing any type of data,
including contacts, calendar, tasks, notes and files.

diffstat:

 comms/libopensync/DESCR            |   6 +++
 comms/libopensync/Makefile         |  26 +++++++++++++++
 comms/libopensync/PLIST            |  55 +++++++++++++++++++++++++++++++++
 comms/libopensync/buildlink3.mk    |  23 ++++++++++++++
 comms/libopensync/distinfo         |   6 +++
 comms/libopensync/patches/patch-aa |  62 ++++++++++++++++++++++++++++++++++++++
 6 files changed, 178 insertions(+), 0 deletions(-)

diffs (202 lines):

diff -r 9d762b4b0d76 -r a25b9a6a8558 comms/libopensync/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync/DESCR   Wed May 23 12:44:40 2007 +0000
@@ -0,0 +1,6 @@
+OpenSync is a synchronization framework that is platform and distribution
+independent. It consists of a powerful sync-engine and several plugins
+that can be used to connect to devices.
+
+OpenSync is very flexible and capable of synchronizing any type of data,
+including contacts, calendar, tasks, notes and files.
diff -r 9d762b4b0d76 -r a25b9a6a8558 comms/libopensync/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync/Makefile        Wed May 23 12:44:40 2007 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+#
+
+DISTNAME=      libopensync-0.22
+CATEGORIES=    comms
+MASTER_SITES=  http://www.opensync.org/attachment/wiki/download/
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.opensync.org/
+COMMENT=       Platform independent synchronization framework
+
+USE_TOOLS+=    pkg-config
+USE_LANGUAGES= c
+USE_LIBTOOL=   yes
+GNU_CONFIGURE= yes
+
+DISTURL=${MASTER_SITES}${DISTNAME}${EXTRACT_SUFX}?format=raw
+pre-fetch:
+       ${TEST} -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} || \
+       (cd ${DISTDIR} && ${FETCH_CMD} -o ${DISTNAME}${EXTRACT_SUFX} ${DISTURL:Q})
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9d762b4b0d76 -r a25b9a6a8558 comms/libopensync/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync/PLIST   Wed May 23 12:44:40 2007 +0000
@@ -0,0 +1,55 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+bin/osyncbinary
+bin/osyncdump
+bin/osyncplugin
+bin/osyncstress
+bin/osynctest
+include/opensync-1.0/opensync/file.h
+include/opensync-1.0/opensync/opensync-xml-contact.h
+include/opensync-1.0/opensync/opensync.h
+include/opensync-1.0/opensync/opensync_anchor.h
+include/opensync-1.0/opensync/opensync_change.h
+include/opensync-1.0/opensync/opensync_changecmds.h
+include/opensync-1.0/opensync/opensync_context.h
+include/opensync-1.0/opensync/opensync_convert.h
+include/opensync-1.0/opensync/opensync_convreg.h
+include/opensync-1.0/opensync/opensync_debug.h
+include/opensync-1.0/opensync/opensync_env.h
+include/opensync-1.0/opensync/opensync_error.h
+include/opensync-1.0/opensync/opensync_filter.h
+include/opensync-1.0/opensync/opensync_group.h
+include/opensync-1.0/opensync/opensync_hashtable.h
+include/opensync-1.0/opensync/opensync_member.h
+include/opensync-1.0/opensync/opensync_plugin.h
+include/opensync-1.0/opensync/opensync_serializer.h
+include/opensync-1.0/opensync/opensync_time.h
+include/opensync-1.0/opensync/opensync_xml.h
+include/opensync-1.0/opensync/xml-support.h
+include/opensync-1.0/osengine/engine.h
+include/opensync-1.0/osengine/osengine_debug.h
+include/opensync-1.0/osengine/osengine_engine.h
+include/opensync-1.0/osengine/osengine_mapping.h
+include/opensync-1.0/osengine/osengine_status.h
+lib/libopensync-xml.la
+lib/libopensync.la
+lib/libosengine.la
+lib/opensync/formats/contact.la
+lib/opensync/formats/data.la
+lib/opensync/formats/event.la
+lib/opensync/formats/file.la
+lib/opensync/formats/note.la
+lib/opensync/formats/todo.la
+lib/opensync/formats/xml-evolution.la
+lib/opensync/formats/xml-kde.la
+lib/opensync/formats/xml-vcal.la
+lib/opensync/formats/xml-vcard.la
+lib/opensync/formats/xml-vnote.la
+lib/opensync/formats/xmldoc.la
+lib/pkgconfig/opensync-1.0.pc
+lib/pkgconfig/osengine-1.0.pc
+libexec/osplugin
+@dirrm lib/opensync/formats
+@dirrm lib/opensync
+@dirrm include/opensync-1.0/osengine
+@dirrm include/opensync-1.0/opensync
+@dirrm include/opensync-1.0
diff -r 9d762b4b0d76 -r a25b9a6a8558 comms/libopensync/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync/buildlink3.mk   Wed May 23 12:44:40 2007 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+LIBOPENSYNC_BUILDLINK3_MK:=    ${LIBOPENSYNC_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+=    libopensync
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nlibopensync}
+BUILDLINK_PACKAGES+=   libopensync
+BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libopensync
+
+.if ${LIBOPENSYNC_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.libopensync+=    libopensync>=0.22
+BUILDLINK_PKGSRCDIR.libopensync?=      ../../mcs/libopensync
+.endif # LIBOPENSYNC_BUILDLINK3_MK
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
diff -r 9d762b4b0d76 -r a25b9a6a8558 comms/libopensync/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync/distinfo        Wed May 23 12:44:40 2007 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+
+SHA1 (libopensync-0.22.tar.bz2) = 47860a8c6621aa89fbff2af2517787747af7cc30
+RMD160 (libopensync-0.22.tar.bz2) = a1e9715d037a7c474b80d609e6c96a24cbb6692f
+Size (libopensync-0.22.tar.bz2) = 489978 bytes
+SHA1 (patch-aa) = 9940ffc5dd7fabfb0291a12254451286a9ed3e00
diff -r 9d762b4b0d76 -r a25b9a6a8558 comms/libopensync/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync/patches/patch-aa        Wed May 23 12:44:40 2007 +0000
@@ -0,0 +1,62 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/05/23 12:44:40 markd Exp $
+
+--- formats/vformats-xml/vformat.c.orig        2007-03-27 23:49:27.000000000 +1200
++++ formats/vformats-xml/vformat.c
+@@ -236,7 +236,7 @@ static void _read_attribute_value_add (V
+       if (charset) {
+ 
+               cd = iconv_open("UTF-8", charset->str);
+-#ifdef SOLARIS
++#if defined(SOLARIS) || 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 @@ static void _read_attribute_value_add (V
+ 
+                       /* 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(__NetBSD__)
+                         if (iconv(cd, (const char**)&inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+ #else
+                         if (iconv(cd, &inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+@@ -302,8 +302,8 @@ static void _read_attribute_value (VForm
+                       if ((a = *(++lp)) == '\0') break;
+                       if ((b = *(++lp)) == '\0') break;
+                       
+-                      if (isalnum(a)) {
+-                              if (isalnum(b)) {
++                      if (isalnum((int)a)) {
++                              if (isalnum((int)b)) {
+                                       /* e.g. ...N=C3=BCrnberg\r\n
+                                        *          ^^^
+                                        */
+@@ -317,7 +317,7 @@ static void _read_attribute_value (VForm
+                                        * ^
+                                        */
+                                       char *tmplp = lp;
+-                                      if (*(++tmplp) == '\r' && *(++tmplp) == '\n' && isalnum(*(++tmplp))) {
++                                      if (*(++tmplp) == '\r' && *(++tmplp) == '\n' && isalnum((int)*(++tmplp))) {
+                                               x1 = a;
+                                               x2 = *tmplp;
+                                               lp = tmplp;     
+@@ -336,7 +336,7 @@ static void _read_attribute_value (VForm
+                               c = *(++tmplp);
+                               d = *(++tmplp);
+                               e = *(++tmplp);
+-                              if (b == '\r' && c == '\n' && isalnum(d) && isalnum(e)) {
++                              if (b == '\r' && c == '\n' && isalnum((int)d) && isalnum((int)e)) {
+                                       x1 = d;
+                                       x2 = e;
+                                       lp = tmplp;
+@@ -357,8 +357,8 @@ static void _read_attribute_value (VForm
+                       if (x1 && x2) {
+                               char c;
+ 
+-                              a = tolower (x1);
+-                              b = tolower (x2);
++                              a = tolower ((int)x1);
++                              b = tolower ((int)x2);
+ 
+                               c = (((a>='a'?a-'a'+10:a-'0')&0x0f) << 4)
+                                       | ((b>='a'?b-'a'+10:b-'0')&0x0f);



Home | Main Index | Thread Index | Old Index