Ticket #44804: protobuf.diff
File protobuf.diff, 8.9 KB (added by adfernandes (Andrew Fernandes), 10 years ago) |
---|
-
devel/protobuf-c/Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup github 1.0 4 5 5 6 name protobuf-c 6 version 0.157 version 1.1.0 7 8 categories devel 8 9 license Apache-2 9 10 maintainers landonf openmaintainer … … 17 18 version 1.0 is released. 18 19 19 20 20 homepage http://code.google.com/p/protobuf-c/21 master_sites googlecode21 homepage https://github.com/protobuf-c/protobuf-c 22 master_sites https://github.com/protobuf-c/protobuf-c/releases/download/v${version} 22 23 23 checksums md5 73ff0c8df50d2eee75269ad8f8c07dc8 \ 24 sha1 4fbd93f492c52154713de1951c0a2133ddd43abb \ 25 rmd160 50319bba2b173aafb96dd1fe70550d378e69f871 24 checksums sha1 20bfcf3663ae56b125a5bfc3b4dca8c7f0ef1e48 \ 25 sha256 9a973fc04aac003f9cf2b5a90ac4b8fa294cacb4e3f0796d3b5a789a5ad46c07 26 26 27 27 platforms darwin 28 28 -
devel/protobuf-cpp/Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup github 1.0 5 6 6 7 name protobuf-cpp 7 version 2. 5.08 version 2.6.1 8 9 categories devel 9 10 maintainers blair 10 11 license BSD … … 27 28 logical record of information, containing a series of \ 28 29 name-value pairs. 29 30 30 homepage http://code.google.com/p/protobuf/ 31 master_sites googlecode:protobuf 31 homepage https://github.com/google/protobuf 32 master_sites https://github.com/google/protobuf/releases/download/v${version} 33 distfiles protobuf-${version}.tar.bz2 34 worksrcdir protobuf-${version} 32 35 33 distname protobuf-${version}34 36 use_bzip2 yes 35 checksums sha1 62c10dcdac4b69cc8c6bb19f73db40c264cb2726\36 sha256 13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb67737 checksums sha1 6421ee86d8fb4e39f21f56991daa892a3e8d314b \ 38 sha256 ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910 37 39 38 40 platforms darwin 39 41 … … 47 49 48 50 xinstall -d -m 755 ${docdir} 49 51 50 foreach f {CHANGES.txt CONTRIBUTORS.txt COPYING.txt INSTALL.txt README.txt examples} {52 foreach f {CHANGES.txt CONTRIBUTORS.txt LICENSE INSTALL.txt README.md examples editors} { 51 53 file copy ${worksrcpath}/${f} ${docdir} 52 54 } 53 55 } -
devel/protobuf-java/Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup github 1.0 4 5 5 6 name protobuf-java 6 version 2. 5.07 version 2.6.1 7 8 categories devel 8 9 maintainers blair 9 10 license BSD … … 26 27 logical record of information, containing a series of \ 27 28 name-value pairs. 28 29 29 homepage http://code.google.com/p/protobuf/ 30 master_sites googlecode:protobuf 30 homepage https://github.com/google/protobuf 31 master_sites https://github.com/google/protobuf/releases/download/v${version} 32 distfiles protobuf-${version}.tar.bz2 33 worksrcdir protobuf-${version} 31 34 32 distname protobuf-${version}33 dist_subdir protobuf-cpp34 35 use_bzip2 yes 35 checksums sha1 62c10dcdac4b69cc8c6bb19f73db40c264cb2726\36 sha256 13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb67736 checksums sha1 6421ee86d8fb4e39f21f56991daa892a3e8d314b \ 37 sha256 ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910 37 38 38 39 platforms darwin 39 40 40 depends_lib port: protobuf-cpp41 depends_lib port:zlib port:protobuf-cpp 41 42 depends_build port:apache-ant 42 43 43 44 worksrcdir ${worksrcdir}/java -
python/py-protobuf/Portfile
2 2 3 3 PortSystem 1.0 4 4 PortGroup python 1.0 5 PortGroup github 1.0 5 6 6 7 name py-protobuf 7 version 2. 5.08 version 2.6.1 8 9 revision 1 9 10 categories-append devel 10 11 maintainers blair … … 28 29 logical record of information, containing a series of \ 29 30 name-value pairs. 30 31 31 homepage http://code.google.com/p/protobuf/ 32 master_sites googlecode:protobuf 32 homepage https://github.com/google/protobuf 33 master_sites https://github.com/google/protobuf/releases/download/v${version} 34 distfiles protobuf-${version}.tar.bz2 35 worksrcdir protobuf-${version} 33 36 34 distname protobuf-${version}35 dist_subdir protobuf-cpp36 37 use_bzip2 yes 37 checksums sha1 62c10dcdac4b69cc8c6bb19f73db40c264cb2726\38 sha256 13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb67738 checksums sha1 6421ee86d8fb4e39f21f56991daa892a3e8d314b \ 39 sha256 ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910 39 40 40 41 platforms darwin 41 42 … … 47 48 48 49 worksrcdir ${worksrcdir}/python 49 50 50 patchfiles patch-python-except-clause-compatibility.diff 51 52 # PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp is disabled until 53 # this bug [1] is fixed. Better to ensure that the Python 54 # protobuf bindings slowly and properly encode and decode data 55 # then quickly fail ;) 56 # 57 # [1] http://code.google.com/p/protobuf/issues/detail?id=503 58 59 # build.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp 60 build.cmd-append build_ext -I${prefix}/include 61 62 # destroot.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp 51 destroot.cmd-append --cpp_implementation 63 52 64 53 test.run yes 65 # test.env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp66 54 test.cmd "${python.bin} setup.py" 67 test.target test 55 test.target test --cpp_implementation 68 56 } -
python/py-protobuf/files/patch-python-except-clause-compatibility.diff
1 diff -ru ../../protobuf-2.5.0.orig/python/google/protobuf/descriptor_pool.py ./google/protobuf/descriptor_pool.py2 --- ../../protobuf-2.5.0.orig/python/google/protobuf/descriptor_pool.py 2013-02-26 09:56:33.000000000 -08003 +++ ./google/protobuf/descriptor_pool.py 2013-04-17 16:11:05.000000000 -07004 @@ -104,7 +104,7 @@5 6 try:7 file_proto = self._internal_db.FindFileByName(file_name)8 - except KeyError as error:9 + except KeyError, error:10 if self._descriptor_db:11 file_proto = self._descriptor_db.FindFileByName(file_name)12 else:13 @@ -128,7 +128,7 @@14 15 try:16 file_proto = self._internal_db.FindFileContainingSymbol(symbol)17 - except KeyError as error:18 + except KeyError, error:19 if self._descriptor_db:20 file_proto = self._descriptor_db.FindFileContainingSymbol(symbol)21 else:22 diff -ru ../../protobuf-2.5.0.orig/python/google/protobuf/internal/reflection_test.py ./google/protobuf/internal/reflection_test.py23 --- ../../protobuf-2.5.0.orig/python/google/protobuf/internal/reflection_test.py 2013-02-26 09:56:33.000000000 -080024 +++ ./google/protobuf/internal/reflection_test.py 2013-04-17 16:10:38.000000000 -070025 @@ -1650,7 +1650,7 @@26 unicode_decode_failed = False27 try:28 message2.MergeFromString(bytes)29 - except UnicodeDecodeError as e:30 + except UnicodeDecodeError:31 unicode_decode_failed = True32 string_field = message2.str33 self.assertTrue(unicode_decode_failed or type(string_field) == str)34 @@ -2361,7 +2361,7 @@35 """This method checks if the excpetion type and message are as expected."""36 try:37 callable_obj()38 - except exc_class as ex:39 + except exc_class, ex:40 # Check if the exception message is the right one.41 self.assertEqual(exception, str(ex))42 return43 diff -ru ../../protobuf-2.5.0.orig/python/google/protobuf/internal/text_format_test.py ./google/protobuf/internal/text_format_test.py44 --- ../../protobuf-2.5.0.orig/python/google/protobuf/internal/text_format_test.py 2013-02-26 09:56:33.000000000 -080045 +++ ./google/protobuf/internal/text_format_test.py 2013-04-17 16:11:19.000000000 -070046 @@ -458,7 +458,7 @@47 48 try:49 func(*args, **kwargs)50 - except e_class as expr:51 + except e_class, expr:52 if str(expr) != e:53 msg = '%s raised, but with wrong message: "%s" instead of "%s"'54 raise self.failureException(msg % (exc_name,