pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-grpcio: Make this build on Darwin
Module Name: pkgsrc-wip
Committed By: Min Sik Kim <minskim%NetBSD.org@localhost>
Pushed By: minskim
Date: Fri Apr 27 11:26:57 2018 -0700
Changeset: a00d96696d20e3155bfaafe4213d495f5f207ca2
Modified Files:
py-grpcio/Makefile
py-grpcio/distinfo
Added Files:
py-grpcio/patches/patch-setup.py
py-grpcio/patches/patch-src_python_grpcio_commands.py
Log Message:
py-grpcio: Make this build on Darwin
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a00d96696d20e3155bfaafe4213d495f5f207ca2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-grpcio/Makefile | 19 ++++++-------
py-grpcio/distinfo | 2 ++
py-grpcio/patches/patch-setup.py | 33 ++++++++++++++++++++++
.../patches/patch-src_python_grpcio_commands.py | 15 ++++++++++
4 files changed, 59 insertions(+), 10 deletions(-)
diffs:
diff --git a/py-grpcio/Makefile b/py-grpcio/Makefile
index 229c999ae5..3ab0b6df02 100644
--- a/py-grpcio/Makefile
+++ b/py-grpcio/Makefile
@@ -13,20 +13,19 @@ LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-protobuf>=3.5.0:../../devel/py-protobuf
DEPENDS+= ${PYPKGPREFIX}-six>=1.5.2:../../lang/py-six
-USE_LANGUAGES+= c++ c
-
-SUBST_CLASSES+= prefix
-SUBST_STAGE.prefix= post-patch
-SUBST_MESSAGE.prefix= Fix include path finding Python.h
-SUBST_FILES.prefix= src/python/grpcio/support.py
-SUBST_FILES.prefix= src/python/grpcio/grpc/_cython/cygrpc.c
-SUBST_VARS.prefix= PREFIX
-
.include "../../lang/python/pyversion.mk"
.if "${PYPKGPREFIX}" == "py27"
-DEPENDS+= ${PYPKGPREFIX}-futures>=2.2.0:../../devel/py-futures
DEPENDS+= ${PYPKGPREFIX}-enum34>=1.0.4:../../devel/py-enum34
+DEPENDS+= ${PYPKGPREFIX}-futures>=2.2.0:../../devel/py-futures
.endif
+USE_LANGUAGES+= c99 c++11
+USE_TOOLS+= gmake pkg-config
+
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.grpc+= grpc>=${PKGVERSION_NOREV}
+.include "../../net/grpc/buildlink3.mk"
+.include "../../net/libcares/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-grpcio/distinfo b/py-grpcio/distinfo
index fba1f62485..2c69e868a4 100644
--- a/py-grpcio/distinfo
+++ b/py-grpcio/distinfo
@@ -4,3 +4,5 @@ SHA1 (grpcio-1.10.1.tar.gz) = 0f8f4dcdff2ae57f13cf431bb8378e2f3a25ef35
RMD160 (grpcio-1.10.1.tar.gz) = 7a152d3653440fdd2ea43d007b63a1ef0655c2e4
SHA512 (grpcio-1.10.1.tar.gz) = d3300998437f7ee36026e1a7f0903f0c4a26c3fb919b5dbd397cf6ded88bf8ceca95bd48e11f6084a14a182d6b7c9f8dfa4af89eadd39d19877c25674111849e
Size (grpcio-1.10.1.tar.gz) = 13998215 bytes
+SHA1 (patch-setup.py) = 99f45057b37643d2e6598c20a7a85dfe138fa0fb
+SHA1 (patch-src_python_grpcio_commands.py) = e84c0ddb13d9d9a3d2c90fe93c9db72264176512
diff --git a/py-grpcio/patches/patch-setup.py b/py-grpcio/patches/patch-setup.py
new file mode 100644
index 0000000000..95d77f8c06
--- /dev/null
+++ b/py-grpcio/patches/patch-setup.py
@@ -0,0 +1,33 @@
+$NetBSD$
+
+Use dependencies in pkgsrc.
+
+--- setup.py.orig 2018-04-05 20:19:07.000000000 +0000
++++ setup.py
+@@ -150,7 +150,7 @@ EXTENSION_INCLUDE_DIRECTORIES = (
+ (PYTHON_STEM,) + CORE_INCLUDE + BORINGSSL_INCLUDE + ZLIB_INCLUDE +
+ CARES_INCLUDE)
+
+-EXTENSION_LIBRARIES = ()
++EXTENSION_LIBRARIES = ('cares', 'crypto', 'gpr', 'grpc', 'ssl')
+ if "linux" in sys.platform:
+ EXTENSION_LIBRARIES += ('rt',)
+ if not "win32" in sys.platform:
+@@ -203,7 +203,7 @@ def cython_extensions_and_necessity():
+ for name in CYTHON_EXTENSION_MODULE_NAMES]
+ config = os.environ.get('CONFIG', 'opt')
+ prefix = 'libs/' + config + '/'
+- if "darwin" in sys.platform:
++ if False and "darwin" in sys.platform:
+ extra_objects = [prefix + 'libares.a',
+ prefix + 'libboringssl.a',
+ prefix + 'libgpr.a',
+@@ -215,7 +215,7 @@ def cython_extensions_and_necessity():
+ extensions = [
+ _extension.Extension(
+ name=module_name,
+- sources=[module_file] + list(CYTHON_HELPER_C_FILES) + core_c_files,
++ sources=[module_file] + list(CYTHON_HELPER_C_FILES),
+ include_dirs=list(EXTENSION_INCLUDE_DIRECTORIES),
+ libraries=list(EXTENSION_LIBRARIES),
+ define_macros=list(DEFINE_MACROS),
diff --git a/py-grpcio/patches/patch-src_python_grpcio_commands.py b/py-grpcio/patches/patch-src_python_grpcio_commands.py
new file mode 100644
index 0000000000..b03b2328ec
--- /dev/null
+++ b/py-grpcio/patches/patch-src_python_grpcio_commands.py
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Use dependencies in pkgsrc.
+
+--- src/python/grpcio/commands.py.orig 2018-04-05 20:19:07.000000000 +0000
++++ src/python/grpcio/commands.py
+@@ -253,7 +253,7 @@ class BuildExt(build_ext.build_ext):
+ LINK_OPTIONS = {}
+
+ def build_extensions(self):
+- if "darwin" in sys.platform:
++ if False and "darwin" in sys.platform:
+ config = os.environ.get('CONFIG', 'opt')
+ target_path = os.path.abspath(
+ os.path.join(
Home |
Main Index |
Thread Index |
Old Index