[51742] trunk/dports/devel/protobuf-c

landonf at macports.org landonf at macports.org
Tue Jun 2 00:00:57 PDT 2009


Revision: 51742
          http://trac.macports.org/changeset/51742
Author:   landonf at macports.org
Date:     2009-06-02 00:00:57 -0700 (Tue, 02 Jun 2009)
Log Message:
-----------
Update to protobuf-c 0.10
Issue: #19830
Submitted by: dcreager [at] dcreager.net

Modified Paths:
--------------
    trunk/dports/devel/protobuf-c/Portfile

Added Paths:
-----------
    trunk/dports/devel/protobuf-c/files/
    trunk/dports/devel/protobuf-c/files/protobuf-c-issue-20.patch

Modified: trunk/dports/devel/protobuf-c/Portfile
===================================================================
--- trunk/dports/devel/protobuf-c/Portfile	2009-06-02 06:54:03 UTC (rev 51741)
+++ trunk/dports/devel/protobuf-c/Portfile	2009-06-02 07:00:57 UTC (rev 51742)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name		protobuf-c
-version		0.6
+version		0.10
 categories	devel
 maintainers	landonf
 description	Pure C code generator and runtime libraries for Protocol Buffers
@@ -20,13 +20,23 @@
 master_sites	googlecode:protobuf-c
 
 distname	${name}-${version}
-checksums   md5     638d7abd76c5f5242005553817045fcf \
-            sha1    fa523ddc2ce1ff4f18c88c9ab8b3197492cd0080 \
-            rmd160  790d047492d5ef1e1d9ea0f48aa92aa50afb48ad
+checksums   ${distname}${extract.suffix} \
+              md5     588006ea06a1a12855881362b8e29bff \
+              sha1    1878203fea6808ecf2825d9fb37b49f669e4b8cc \
+              rmd160  ac2a38fef1e5771db97e73eda86d8b70f6f978fb \
+            protobuf-c-issue-20.patch \
+              md5     90ebe50e1ab5aa7e41e8e4d422adecfa \
+              sha1    1c502543db44380d3f98dea7ccea3db5b63f1e36 \
+              rmd160  03efa891c7418c79b7f94a942869b6a6a7373d5a
 
 platforms	darwin
 
 depends_lib	port:protobuf-cpp
 
+depends_build   port:autoconf
+use_autoconf    yes
+patch_sites     http://www.dcreager.net/ports/protobuf-c/
+patchfiles      protobuf-c-issue-20.patch
+
 test.run	yes
 test.target	check

Added: trunk/dports/devel/protobuf-c/files/protobuf-c-issue-20.patch
===================================================================
--- trunk/dports/devel/protobuf-c/files/protobuf-c-issue-20.patch	                        (rev 0)
+++ trunk/dports/devel/protobuf-c/files/protobuf-c-issue-20.patch	2009-06-02 07:00:57 UTC (rev 51742)
@@ -0,0 +1,54 @@
+--- src/test/cxx-generate-packed-data.cc	2008-09-09 14:02:10.000000000 -0400
++++ src/test/cxx-generate-packed-data.cc	2009-05-31 15:09:48.000000000 -0400
+@@ -757,18 +757,32 @@
+   EmptyMess mess;
+   const google::protobuf::Message::Reflection *reflection = mess.GetReflection();
+   google::protobuf::UnknownFieldSet *fs = reflection->MutableUnknownFields(&mess);
++
++#if PROTOC_VERSION >= 2001000
++  fs->AddVarint(5454, 255);
++  fs->AddFixed32(5555, 260);
++#else
+   google::protobuf::UnknownField *f;
+   f = fs->AddField(5454);
+   f->add_varint(255);
+   f = fs->AddField(5555);
+   f->add_fixed32(260);
++#endif
++
+   dump_message_bytes (&mess, "test_unknown_fields_0");
+ 
+   fs->Clear();
++
++#if PROTOC_VERSION >= 2001000
++  fs->AddLengthDelimited(6666, "xxxxxxxx");
++  fs->AddFixed64(7777, 0x10101);
++#else
+   f = fs->AddField(6666);
+   f->add_length_delimited("xxxxxxxx");
+   f = fs->AddField(7777);
+   f->add_fixed64(0x10101);
++#endif
++
+   dump_message_bytes (&mess, "test_unknown_fields_1");
+ }
+ 
+--- configure.ac	2009-04-04 19:06:25.000000000 -0400
++++ configure.ac	2009-05-31 19:20:31.000000000 -0400
+@@ -32,6 +32,16 @@
+ LIBS="$pbc_savelibs"
+ AC_LANG_POP()
+ 
++dnl Determine the version of the protoc compiler.
++
++if test -n $PROTOC; then
++   AC_MSG_CHECKING([which version of protoc is installed])
++   raw_vers=`protoc --version 2>/dev/null | sed -e 's/libprotoc //'`
++   vers=`echo $raw_vers | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
++   AC_DEFINE_UNQUOTED([PROTOC_VERSION], [$vers])
++   AC_MSG_RESULT([$raw_vers])
++fi
++
+ 
+ dnl  ------ define IS_LITTLE_ENDIAN ------
+ # We try to use, where possible the headers <endian.h>, <mach/endian.h>,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090602/f9c1fa73/attachment.html>


More information about the macports-changes mailing list