dev-python/protobuf-python: version bump to 3.3.0

Change license from Apache-2.0 to BSD
Fix python3 incompatibility in patch

Bug: https://bugs.gentoo.org/460608
This commit is contained in:
Aric Belsito
2017-05-07 11:11:08 -07:00
committed by Michał Górny
parent f5988bfcb1
commit 9448ce017d
4 changed files with 43 additions and 3 deletions

View File

@@ -9,8 +9,8 @@ diff -Naur python/setup.py python/setup.py
+ libD = []
+ try:
+ subprocess.check_call(['pkg-config', '--exists', 'protobuf'])
+ inclD += subprocess.check_output(['pkg-config','--variable=includedir','protobuf']).split()
+ libD = subprocess.check_output(['pkg-config','--variable=libdir','protobuf']).split()
+ inclD += subprocess.check_output(['pkg-config','--variable=includedir','protobuf']).decode().split()
+ libD = subprocess.check_output(['pkg-config','--variable=libdir','protobuf']).decode().split()
+ except OSError as osex:
+ if osex.errno == errno.ENOENT:
+ info('pkg-config not found')