svn commit: r447979 - in head/science: . py-tensorflow py-tensorflow/files

Li-Wen Hsu lwhsu at FreeBSD.org
Tue Aug 15 12:08:04 UTC 2017


Author: lwhsu
Date: Tue Aug 15 12:08:02 2017
New Revision: 447979
URL: https://svnweb.freebsd.org/changeset/ports/447979

Log:
  Ad TensorFlow 1.2.1
  
  PR:		219609
  Submitted by:	Jov <amutu at amutu.com>

Added:
  head/science/py-tensorflow/
  head/science/py-tensorflow/Makefile   (contents, props changed)
  head/science/py-tensorflow/distinfo   (contents, props changed)
  head/science/py-tensorflow/files/
  head/science/py-tensorflow/files/patch-WORKSPACE   (contents, props changed)
  head/science/py-tensorflow/files/patch-tensorflow__third__party_grpc_include_grpc_impl_codegen_port__platform.h   (contents, props changed)
  head/science/py-tensorflow/files/patch-tensorflow__third__party_protobuf_src_google_protobuf_compiler_plugin.pb.cc   (contents, props changed)
  head/science/py-tensorflow/files/patch-tensorflow__third__party_protobuf_src_google_protobuf_compiler_plugin.pb.h   (contents, props changed)
  head/science/py-tensorflow/files/patch-tensorflow_workspace.bzl   (contents, props changed)
  head/science/py-tensorflow/pkg-descr   (contents, props changed)
  head/science/py-tensorflow/pkg-plist   (contents, props changed)
Modified:
  head/science/Makefile

Modified: head/science/Makefile
==============================================================================
--- head/science/Makefile	Tue Aug 15 09:58:13 2017	(r447978)
+++ head/science/Makefile	Tue Aug 15 12:08:02 2017	(r447979)
@@ -165,6 +165,7 @@
     SUBDIR += py-scikit-sparse
     SUBDIR += py-scimath
     SUBDIR += py-scipy
+    SUBDIR += py-tensorflow
     SUBDIR += py-ws2300
     SUBDIR += pybrain
     SUBDIR += pycdf

Added: head/science/py-tensorflow/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-tensorflow/Makefile	Tue Aug 15 12:08:02 2017	(r447979)
@@ -0,0 +1,94 @@
+# Created by: Jov <amutu at amutu.com>
+# $FreeBSD$
+
+PORTNAME=	tensorflow
+PORTVERSION=	1.2.1
+DISTVERSIONPREFIX=	v
+CATEGORIES=	science python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	amutu at amutu.com
+COMMENT=	Computation using data flow graphs for scalable machine learning
+
+LICENSE=	APACHE20
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wheel>=0.29.0:devel/py-wheel \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.11.2:math/py-numpy \
+		bash:shells/bash
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.11.2:math/py-numpy \
+		${PYTHON_PKGNAMEPREFIX}markdown>=2.6.8:textproc/py-markdown \
+		${PYTHON_PKGNAMEPREFIX}bleach>=1.4.2:www/py-bleach \
+		${PYTHON_PKGNAMEPREFIX}html5lib>=0.9999999:www/py-html5lib \
+		${PYTHON_PKGNAMEPREFIX}protobuf>=3.2.0:devel/py-protobuf \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0.29.0:devel/py-wheel \
+		${PYTHON_PKGNAMEPREFIX}mock>=1.3.0:devel/py-mock \
+		${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six \
+		${PYTHON_PKGNAMEPREFIX}backports.weakref>=0:devel/py-backports.weakref \
+		${PYTHON_PKGNAMEPREFIX}werkzeug>=0.11.10:www/py-werkzeug
+
+USES=		python shebangfix
+
+USE_GITHUB=	yes
+GH_TUPLE=	amutu:tensorflow_third_party:v${PORTVERSION}:tf/tensorflow_third_party
+
+USE_PYTHON=	autoplist distutils
+
+BAZEL_BOOT=	--output_user_root=${WRKSRC}/bazel_ot --batch
+
+SHEBANG_GLOB=	*.py
+
+PLIST_SUB=	TF_PORT_VERSION=${PORTVERSION}
+
+.include <bsd.port.pre.mk>
+
+.if ${OSREL:R} <= 10
+BUILD_DEPENDS+=	bazel:devel/bazel-clang38
+.else
+BUILD_DEPENDS+=	bazel:devel/bazel
+.endif
+
+#clang has this check enabled by default, disable it
+#see: https://github.com/tensorflow/tensorflow/issues/8894
+.if ${ARCH} == "i386"
+BAZEL_COPT+=	--copt=-Wno-c++11-narrowing
+.endif
+
+post-patch:
+	(cd ${WRKSRC} && \
+	${REINPLACE_CMD} "s#bazel \([cf]\)#echo bazel ${BAZEL_BOOT} \1#g" \
+	configure && \
+	${REINPLACE_CMD} "s#tensorflow_third_party#${WRKSRC}/&#g" \
+	WORKSPACE tensorflow/workspace.bzl)
+
+do-configure:
+	(cd ${WRKSRC} && ${SETENV} \
+		PYTHON_BIN_PATH=${PYTHON_CMD} \
+		TF_NEED_MKL=N \
+		CC_OPT_FLAGS="${CFLAGS}" \
+		TF_NEED_GCP=N TF_NEED_HDFS=N \
+		TF_ENABLE_XLA=N \
+		TF_NEED_OPENCL=N \
+		TF_NEED_CUDA=N \
+		PYTHON_LIB_PATH="${PYTHON_SITELIBDIR}" \
+		TF_NEED_VERBS=N \
+		./configure)
+
+do-build:
+	(cd ${WRKSRC} && bazel ${BAZEL_BOOT} info && \
+		bazel ${BAZEL_BOOT} build ${BAZEL_COPT} --config=opt \
+		//tensorflow/tools/pip_package:build_pip_package --verbose_failures)
+	(cd ${WRKSRC} && ${SETENV} TMPDIR=${WRKDIR} \
+		bazel-bin/tensorflow/tools/pip_package/build_pip_package \
+		${WRKDIR}/whl)
+
+do-install:
+	@${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR}
+	@${MKDIR} ${WRKDIR}/tmp
+	@${UNZIP_NATIVE_CMD} -d ${WRKDIR}/tmp ${WRKDIR}/whl/${PORTNAME}-${PORTVERSION}-*.whl
+	@${FIND} ${WRKDIR}/tmp -name "*.so*" | ${XARGS} ${STRIP_CMD}
+	cd ${WRKDIR}/tmp && ${COPYTREE_SHARE} ${PORTNAME}-${PORTVERSION}.dist-info \
+		${STAGEDIR}${PYTHON_SITELIBDIR}
+	cd ${WRKDIR}/tmp/${PORTNAME}-${PORTVERSION}.data/purelib && \
+		${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}
+
+.include <bsd.port.post.mk>

Added: head/science/py-tensorflow/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-tensorflow/distinfo	Tue Aug 15 12:08:02 2017	(r447979)
@@ -0,0 +1,5 @@
+TIMESTAMP = 1500437892
+SHA256 (tensorflow-tensorflow-v1.2.1_GH0.tar.gz) = f2baf09b1a9a0500907b4d5cb5473070b3ecede06ed6e8d1096873c91922fb9e
+SIZE (tensorflow-tensorflow-v1.2.1_GH0.tar.gz) = 14488674
+SHA256 (amutu-tensorflow_third_party-v1.2.1_GH0.tar.gz) = 69e8d2a14981aa5dd23f7217e5e4b97fc7109a105cd4329b97c2801a66fb6b09
+SIZE (amutu-tensorflow_third_party-v1.2.1_GH0.tar.gz) = 170852467

Added: head/science/py-tensorflow/files/patch-WORKSPACE
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-tensorflow/files/patch-WORKSPACE	Tue Aug 15 12:08:02 2017	(r447979)
@@ -0,0 +1,739 @@
+--- WORKSPACE.orig	2017-06-14 19:02:07 UTC
++++ WORKSPACE
+@@ -1,523 +1,365 @@
+ workspace(name = "org_tensorflow")
+ 
+-http_archive(
++local_repository(
+     name = "io_bazel_rules_closure",
+-    sha256 = "4be8a887f6f38f883236e77bb25c2da10d506f2bf1a8e5d785c0f35574c74ca4",
+-    strip_prefix = "rules_closure-aac19edc557aec9b603cd7ffe359401264ceff0d",
+-    urls = [
+-        "http://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/aac19edc557aec9b603cd7ffe359401264ceff0d.tar.gz",  # 2017-05-10
+-        "https://github.com/bazelbuild/rules_closure/archive/aac19edc557aec9b603cd7ffe359401264ceff0d.tar.gz",
+-    ],
++    path = "tensorflow_third_party/io_bazel_rules_closure"
+ )
+-
++
+ load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
+ 
+ closure_repositories()
+ 
+ load("//tensorflow:workspace.bzl", "tf_workspace")
+ 
+-# Uncomment and update the paths in these entries to build the Android demo.
+-#android_sdk_repository(
+-#    name = "androidsdk",
+-#    api_level = 23,
+-#    # Ensure that you have the build_tools_version below installed in the 
+-#    # SDK manager as it updates periodically.
+-#    build_tools_version = "25.0.2",
+-#    # Replace with path to Android SDK on your system
+-#    path = "<PATH_TO_SDK>",
+-#)
+-#
+-# Android NDK r12b is recommended (higher may cause issues with Bazel)
+-#android_ndk_repository(
+-#    name="androidndk",
+-#    path="<PATH_TO_NDK>",
+-#    # This needs to be 14 or higher to compile TensorFlow. 
+-#    # Note that the NDK version is not the API level.
+-#    api_level=14)
+-
+-# Please add all new TensorFlow dependencies in workspace.bzl.
+ tf_workspace()
+ 
+-new_http_archive(
++local_repository(
+   name = "inception5h",
+-  build_file = "models.BUILD",
+-  url = "https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip",
+-  sha256 = "d13569f6a98159de37e92e9c8ec4dae8f674fbf475f69fe6199b514f756d4364"
++  path = "tensorflow_third_party/inception5h"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "mobile_multibox",
+-  build_file = "models.BUILD",
+-  url = "https://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
+-  sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96"
++  path = "tensorflow_third_party/mobile_multibox"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "stylize",
+-  build_file = "models.BUILD",
+-  url = "https://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip",
+-  sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa"
++  path = "tensorflow_third_party/stylize"
+ )
+-
+-# TENSORBOARD_BOWER_AUTOGENERATED_BELOW_THIS_LINE_DO_NOT_EDIT
+-
+-new_http_archive(
++
++local_repository(
+   name = "d3",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/mbostock-bower/d3-bower/archive/v3.5.15.tar.gz",
+-  strip_prefix = "d3-bower-3.5.15",
++  path = "tensorflow_third_party/d3"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "dagre",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/cpettitt/dagre/archive/v0.7.4.tar.gz",
+-  strip_prefix = "dagre-0.7.4",
++  path = "tensorflow_third_party/dagre"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "es6_promise",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/components/es6-promise/archive/v2.1.0.tar.gz",
+-  strip_prefix = "es6-promise-2.1.0",
++  path = "tensorflow_third_party/es6_promise"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "font_roboto",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/font-roboto/archive/v1.0.1.tar.gz",
+-  strip_prefix = "font-roboto-1.0.1",
++  path = "tensorflow_third_party/font_roboto"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "graphlib",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/cpettitt/graphlib/archive/v1.0.7.tar.gz",
+-  strip_prefix = "graphlib-1.0.7",
++  path = "tensorflow_third_party/graphlib"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_a11y_announcer",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-a11y-announcer/archive/v1.0.5.tar.gz",
+-  strip_prefix = "iron-a11y-announcer-1.0.5",
++  path = "tensorflow_third_party/iron_a11y_announcer"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_a11y_keys_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-a11y-keys-behavior/archive/v1.1.8.tar.gz",
+-  strip_prefix = "iron-a11y-keys-behavior-1.1.8",
++  path = "tensorflow_third_party/iron_a11y_keys_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_ajax",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-ajax/archive/v1.2.0.tar.gz",
+-  strip_prefix = "iron-ajax-1.2.0",
++  path = "tensorflow_third_party/iron_ajax"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_autogrow_textarea",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-autogrow-textarea/archive/v1.0.12.tar.gz",
+-  strip_prefix = "iron-autogrow-textarea-1.0.12",
++  path = "tensorflow_third_party/iron_autogrow_textarea"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_behaviors",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-behaviors/archive/v1.0.17.tar.gz",
+-  strip_prefix = "iron-behaviors-1.0.17",
++  path = "tensorflow_third_party/iron_behaviors"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_checked_element_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-checked-element-behavior/archive/v1.0.4.tar.gz",
+-  strip_prefix = "iron-checked-element-behavior-1.0.4",
++  path = "tensorflow_third_party/iron_checked_element_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_collapse",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-collapse/archive/v1.0.8.tar.gz",
+-  strip_prefix = "iron-collapse-1.0.8",
++  path = "tensorflow_third_party/iron_collapse"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_dropdown",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-dropdown/archive/v1.4.0.tar.gz",
+-  strip_prefix = "iron-dropdown-1.4.0",
++  path = "tensorflow_third_party/iron_dropdown"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_fit_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-fit-behavior/archive/v1.2.5.tar.gz",
+-  strip_prefix = "iron-fit-behavior-1.2.5",
++  path = "tensorflow_third_party/iron_fit_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_flex_layout",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-flex-layout/archive/v1.3.0.tar.gz",
+-  strip_prefix = "iron-flex-layout-1.3.0",
++  path = "tensorflow_third_party/iron_flex_layout"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_form_element_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-form-element-behavior/archive/v1.0.6.tar.gz",
+-  strip_prefix = "iron-form-element-behavior-1.0.6",
++  path = "tensorflow_third_party/iron_form_element_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_icon",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-icon/archive/v1.0.11.tar.gz",
+-  strip_prefix = "iron-icon-1.0.11",
++  path = "tensorflow_third_party/iron_icon"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_icons",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-icons/archive/v1.1.3.tar.gz",
+-  strip_prefix = "iron-icons-1.1.3",
++  path = "tensorflow_third_party/iron_icons"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_iconset_svg",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-iconset-svg/archive/v1.1.0.tar.gz",
+-  strip_prefix = "iron-iconset-svg-1.1.0",
++  path = "tensorflow_third_party/iron_iconset_svg"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_input",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-input/archive/1.0.10.tar.gz",
+-  strip_prefix = "iron-input-1.0.10",
++  path = "tensorflow_third_party/iron_input"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_list",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-list/archive/v1.3.9.tar.gz",
+-  strip_prefix = "iron-list-1.3.9",
++  path = "tensorflow_third_party/iron_list"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_menu_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-menu-behavior/archive/v1.1.10.tar.gz",
+-  strip_prefix = "iron-menu-behavior-1.1.10",
++  path = "tensorflow_third_party/iron_menu_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_meta",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-meta/archive/v1.1.1.tar.gz",
+-  strip_prefix = "iron-meta-1.1.1",
++  path = "tensorflow_third_party/iron_meta"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_overlay_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-overlay-behavior/archive/v1.10.1.tar.gz",
+-  strip_prefix = "iron-overlay-behavior-1.10.1",
++  path = "tensorflow_third_party/iron_overlay_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_range_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-range-behavior/archive/v1.0.4.tar.gz",
+-  strip_prefix = "iron-range-behavior-1.0.4",
++  path = "tensorflow_third_party/iron_range_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_resizable_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-resizable-behavior/archive/v1.0.3.tar.gz",
+-  strip_prefix = "iron-resizable-behavior-1.0.3",
++  path = "tensorflow_third_party/iron_resizable_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_scroll_target_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-scroll-target-behavior/archive/v1.0.3.tar.gz",
+-  strip_prefix = "iron-scroll-target-behavior-1.0.3",
++  path = "tensorflow_third_party/iron_scroll_target_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_selector",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-selector/archive/v1.5.2.tar.gz",
+-  strip_prefix = "iron-selector-1.5.2",
++  path = "tensorflow_third_party/iron_selector"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "iron_validatable_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/iron-validatable-behavior/archive/v1.1.1.tar.gz",
+-  strip_prefix = "iron-validatable-behavior-1.1.1",
++  path = "tensorflow_third_party/iron_validatable_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "lodash",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/lodash/lodash/archive/3.8.0.tar.gz",
+-  strip_prefix = "lodash-3.8.0",
++  path = "tensorflow_third_party/lodash"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "neon_animation",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/neon-animation/archive/v1.2.2.tar.gz",
+-  strip_prefix = "neon-animation-1.2.2",
++  path = "tensorflow_third_party/neon_animation"
+ )
+-
+-http_file(
++
++local_repository(
+   name = "numericjs_numeric_min_js",
+-  url = "https://cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js",
++  path = "tensorflow_third_party/numericjs_numeric_min_js"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_behaviors",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-behaviors/archive/v1.0.12.tar.gz",
+-  strip_prefix = "paper-behaviors-1.0.12",
++  path = "tensorflow_third_party/paper_behaviors"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_button",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-button/archive/v1.0.11.tar.gz",
+-  strip_prefix = "paper-button-1.0.11",
++  path = "tensorflow_third_party/paper_button"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_checkbox",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-checkbox/archive/v1.4.0.tar.gz",
+-  strip_prefix = "paper-checkbox-1.4.0",
++  path = "tensorflow_third_party/paper_checkbox"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_dialog",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-dialog/archive/v1.0.4.tar.gz",
+-  strip_prefix = "paper-dialog-1.0.4",
++  path = "tensorflow_third_party/paper_dialog"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_dialog_behavior",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-dialog-behavior/archive/v1.2.5.tar.gz",
+-  strip_prefix = "paper-dialog-behavior-1.2.5",
++  path = "tensorflow_third_party/paper_dialog_behavior"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_dialog_scrollable",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-dialog-scrollable/archive/1.1.5.tar.gz",
+-  strip_prefix = "paper-dialog-scrollable-1.1.5",
++  path = "tensorflow_third_party/paper_dialog_scrollable"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_dropdown_menu",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-dropdown-menu/archive/v1.4.0.tar.gz",
+-  strip_prefix = "paper-dropdown-menu-1.4.0",
++  path = "tensorflow_third_party/paper_dropdown_menu"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_header_panel",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-header-panel/archive/v1.1.4.tar.gz",
+-  strip_prefix = "paper-header-panel-1.1.4",
++  path = "tensorflow_third_party/paper_header_panel"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_icon_button",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-icon-button/archive/v1.1.3.tar.gz",
+-  strip_prefix = "paper-icon-button-1.1.3",
++  path = "tensorflow_third_party/paper_icon_button"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_input",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-input/archive/v1.1.18.tar.gz",
+-  strip_prefix = "paper-input-1.1.18",
++  path = "tensorflow_third_party/paper_input"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_item",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-item/archive/v1.1.4.tar.gz",
+-  strip_prefix = "paper-item-1.1.4",
++  path = "tensorflow_third_party/paper_item"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_listbox",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-listbox/archive/v1.1.2.tar.gz",
+-  strip_prefix = "paper-listbox-1.1.2",
++  path = "tensorflow_third_party/paper_listbox"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_material",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-material/archive/v1.0.6.tar.gz",
+-  strip_prefix = "paper-material-1.0.6",
++  path = "tensorflow_third_party/paper_material"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_menu",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-menu/archive/v1.2.2.tar.gz",
+-  strip_prefix = "paper-menu-1.2.2",
++  path = "tensorflow_third_party/paper_menu"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_menu_button",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-menu-button/archive/v1.5.1.tar.gz",
+-  strip_prefix = "paper-menu-button-1.5.1",
++  path = "tensorflow_third_party/paper_menu_button"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_progress",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-progress/archive/v1.0.9.tar.gz",
+-  strip_prefix = "paper-progress-1.0.9",
++  path = "tensorflow_third_party/paper_progress"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_radio_button",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-radio-button/archive/v1.1.2.tar.gz",
+-  strip_prefix = "paper-radio-button-1.1.2",
++  path = "tensorflow_third_party/paper_radio_button"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_radio_group",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-radio-group/archive/v1.0.9.tar.gz",
+-  strip_prefix = "paper-radio-group-1.0.9",
++  path = "tensorflow_third_party/paper_radio_group"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_ripple",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-ripple/archive/v1.0.5.tar.gz",
+-  strip_prefix = "paper-ripple-1.0.5",
++  path = "tensorflow_third_party/paper_ripple"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_slider",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-slider/archive/v1.0.10.tar.gz",
+-  strip_prefix = "paper-slider-1.0.10",
++  path = "tensorflow_third_party/paper_slider"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_spinner",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-spinner/archive/v1.1.1.tar.gz",
+-  strip_prefix = "paper-spinner-1.1.1",
++  path = "tensorflow_third_party/paper_spinner"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_styles",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-styles/archive/v1.1.4.tar.gz",
+-  strip_prefix = "paper-styles-1.1.4",
++  path = "tensorflow_third_party/paper_styles"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_tabs",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-tabs/archive/v1.7.0.tar.gz",
+-  strip_prefix = "paper-tabs-1.7.0",
++  path = "tensorflow_third_party/paper_tabs"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_toast",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-toast/archive/v1.3.0.tar.gz",
+-  strip_prefix = "paper-toast-1.3.0",
++  path = "tensorflow_third_party/paper_toast"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_toggle_button",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-toggle-button/archive/v1.2.0.tar.gz",
+-  strip_prefix = "paper-toggle-button-1.2.0",
++  path = "tensorflow_third_party/paper_toggle_button"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_toolbar",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-toolbar/archive/v1.1.4.tar.gz",
+-  strip_prefix = "paper-toolbar-1.1.4",
++  path = "tensorflow_third_party/paper_toolbar"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "paper_tooltip",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerelements/paper-tooltip/archive/v1.1.2.tar.gz",
+-  strip_prefix = "paper-tooltip-1.1.2",
++  path = "tensorflow_third_party/paper_tooltip"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "plottable",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/palantir/plottable/archive/v1.16.1.tar.gz",
+-  strip_prefix = "plottable-1.16.1",
++  path = "tensorflow_third_party/plottable"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "polymer",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymer/polymer/archive/v1.7.0.tar.gz",
+-  strip_prefix = "polymer-1.7.0",
++  path = "tensorflow_third_party/polymer"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "promise_polyfill",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/polymerlabs/promise-polyfill/archive/v1.0.0.tar.gz",
+-  strip_prefix = "promise-polyfill-1.0.0",
++  path = "tensorflow_third_party/promise_polyfill"
+ )
+-
+-http_file(
++
++local_repository(
+   name = "three_js_three_min_js",
+-  url = "https://raw.githubusercontent.com/mrdoob/three.js/r77/build/three.min.js",
++  path = "tensorflow_third_party/three_js_three_min_js"
+ )
+-
+-http_file(
++
++local_repository(
+   name = "three_js_orbitcontrols_js",
+-  url = "https://raw.githubusercontent.com/mrdoob/three.js/r77/examples/js/controls/OrbitControls.js",
++  path = "tensorflow_third_party/three_js_orbitcontrols_js"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "web_animations_js",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/web-animations/web-animations-js/archive/2.2.1.tar.gz",
+-  strip_prefix = "web-animations-js-2.2.1",
++  path = "tensorflow_third_party/web_animations_js"
+ )
+-
+-new_http_archive(
++
++local_repository(
+   name = "webcomponentsjs",
+-  build_file = "bower.BUILD",
+-  url = "https://github.com/webcomponents/webcomponentsjs/archive/v0.7.22.tar.gz",
+-  strip_prefix = "webcomponentsjs-0.7.22",
++  path = "tensorflow_third_party/webcomponentsjs"
+ )
+-
+-http_file(
++
++local_repository(
+   name = "weblas_weblas_js",
+-  url = "https://raw.githubusercontent.com/waylonflinn/weblas/v0.9.0/dist/weblas.js",
++  path = "tensorflow_third_party/weblas_weblas_js"
+ )
++

Added: head/science/py-tensorflow/files/patch-tensorflow__third__party_grpc_include_grpc_impl_codegen_port__platform.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-tensorflow/files/patch-tensorflow__third__party_grpc_include_grpc_impl_codegen_port__platform.h	Tue Aug 15 12:08:02 2017	(r447979)
@@ -0,0 +1,47 @@
+--- tensorflow_third_party/grpc/include/grpc/impl/codegen/port_platform.h.orig	2017-06-12 12:45:01 UTC
++++ tensorflow_third_party/grpc/include/grpc/impl/codegen/port_platform.h
+@@ -131,7 +131,7 @@
+ #define GPR_POSIX_SOCKETUTILS 1
+ #define GPR_SUPPORT_CHANNELS_FROM_FD 1
+ #define GPR_HAVE_UNIX_SOCKET 1
+-#define GPR_HAVE_IP_PKTINFO 1
++//#define GPR_HAVE_IP_PKTINFO 1
+ #define GPR_HAVE_IPV6_RECVPKTINFO 1
+ #define GPR_LINUX_ENV 1
+ #define GPR_POSIX_FILE 1
+@@ -176,7 +176,7 @@
+ #define GPR_SUPPORT_CHANNELS_FROM_FD 1
+ #define GPR_HAVE_MSG_NOSIGNAL 1
+ #define GPR_HAVE_UNIX_SOCKET 1
+-#define GPR_HAVE_IP_PKTINFO 1
++//#define GPR_HAVE_IP_PKTINFO 1
+ #define GPR_HAVE_IPV6_RECVPKTINFO 1
+ #elif defined(__linux__)
+ #define GPR_POSIX_CRASH_HANDLER 1
+@@ -202,7 +202,7 @@
+ #define GPR_POSIX_SOCKETADDR 1
+ #define GPR_SUPPORT_CHANNELS_FROM_FD 1
+ #define GPR_HAVE_UNIX_SOCKET 1
+-#define GPR_HAVE_IP_PKTINFO 1
++//#define GPR_HAVE_IP_PKTINFO 1
+ #define GPR_HAVE_IPV6_RECVPKTINFO 1
+ #ifdef __GLIBC_PREREQ
+ #if __GLIBC_PREREQ(2, 9)
+@@ -269,7 +269,7 @@
+ #define GPR_SUPPORT_CHANNELS_FROM_FD 1
+ #define GPR_HAVE_SO_NOSIGPIPE 1
+ #define GPR_HAVE_UNIX_SOCKET 1
+-#define GPR_HAVE_IP_PKTINFO 1
++//#define GPR_HAVE_IP_PKTINFO 1
+ #ifdef _LP64
+ #define GPR_ARCH_64 1
+ #else /* _LP64 */
+@@ -301,7 +301,7 @@
+ #define GPR_SUPPORT_CHANNELS_FROM_FD 1
+ #define GPR_HAVE_SO_NOSIGPIPE 1
+ #define GPR_HAVE_UNIX_SOCKET 1
+-#define GPR_HAVE_IP_PKTINFO 1
++//#define GPR_HAVE_IP_PKTINFO 1
+ #define GPR_HAVE_IPV6_RECVPKTINFO 1
+ #ifdef _LP64
+ #define GPR_ARCH_64 1

Added: head/science/py-tensorflow/files/patch-tensorflow__third__party_protobuf_src_google_protobuf_compiler_plugin.pb.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-tensorflow/files/patch-tensorflow__third__party_protobuf_src_google_protobuf_compiler_plugin.pb.cc	Tue Aug 15 12:08:02 2017	(r447979)
@@ -0,0 +1,80 @@
+--- tensorflow_third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc.orig	2017-06-12 12:45:01 UTC
++++ tensorflow_third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc
+@@ -370,12 +370,12 @@ void Version::SerializeWithCachedSizes(
+   // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.Version)
+   // optional int32 major = 1;
+   if (has_major()) {
+-    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->major(), output);
++    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->_major(), output);
+   }
+ 
+   // optional int32 minor = 2;
+   if (has_minor()) {
+-    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->minor(), output);
++    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->_minor(), output);
+   }
+ 
+   // optional int32 patch = 3;
+@@ -406,12 +406,12 @@ void Version::SerializeWithCachedSizes(
+   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.Version)
+   // optional int32 major = 1;
+   if (has_major()) {
+-    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->major(), target);
++    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->_major(), target);
+   }
+ 
+   // optional int32 minor = 2;
+   if (has_minor()) {
+-    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->minor(), target);
++    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->_minor(), target);
+   }
+ 
+   // optional int32 patch = 3;
+@@ -459,14 +459,14 @@ size_t Version::ByteSizeLong() const {
+     if (has_major()) {
+       total_size += 1 +
+         ::google::protobuf::internal::WireFormatLite::Int32Size(
+-          this->major());
++          this->_major());
+     }
+ 
+     // optional int32 minor = 2;
+     if (has_minor()) {
+       total_size += 1 +
+         ::google::protobuf::internal::WireFormatLite::Int32Size(
+-          this->minor());
++          this->_minor());
+     }
+ 
+     // optional int32 patch = 3;
+@@ -509,10 +509,10 @@ void Version::MergeFrom(const Version& f
+       suffix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.suffix_);
+     }
+     if (from.has_major()) {
+-      set_major(from.major());
++      set_major(from._major());
+     }
+     if (from.has_minor()) {
+-      set_minor(from.minor());
++      set_minor(from._minor());
+     }
+     if (from.has_patch()) {
+       set_patch(from.patch());
+@@ -574,7 +574,7 @@ void Version::clear_major() {
+   major_ = 0;
+   clear_has_major();
+ }
+-::google::protobuf::int32 Version::major() const {
++::google::protobuf::int32 Version::_major() const {
+   // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.major)
+   return major_;
+ }
+@@ -598,7 +598,7 @@ void Version::clear_minor() {
+   minor_ = 0;
+   clear_has_minor();
+ }
+-::google::protobuf::int32 Version::minor() const {
++::google::protobuf::int32 Version::_minor() const {
+   // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.minor)
+   return minor_;
+ }

Added: head/science/py-tensorflow/files/patch-tensorflow__third__party_protobuf_src_google_protobuf_compiler_plugin.pb.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/py-tensorflow/files/patch-tensorflow__third__party_protobuf_src_google_protobuf_compiler_plugin.pb.h	Tue Aug 15 12:08:02 2017	(r447979)
@@ -0,0 +1,37 @@
+--- tensorflow_third_party/protobuf/src/google/protobuf/compiler/plugin.pb.h.orig	2017-06-12 12:45:01 UTC
++++ tensorflow_third_party/protobuf/src/google/protobuf/compiler/plugin.pb.h
+@@ -235,14 +235,14 @@ class LIBPROTOC_EXPORT Version : public 
+   bool has_major() const;
+   void clear_major();
+   static const int kMajorFieldNumber = 1;
+-  ::google::protobuf::int32 major() const;

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***


More information about the svn-ports-all mailing list