Lines 1-7
Link Here
|
1 |
# Created by: Klaus Aehlig <aehlig@linta.de> |
1 |
# Created by: Klaus Aehlig <aehlig@linta.de> |
2 |
|
2 |
|
3 |
PORTNAME= bazel |
3 |
PORTNAME= bazel |
4 |
DISTVERSION= 4.2.1 |
4 |
DISTVERSION= 5.0.0 |
5 |
CATEGORIES= devel java |
5 |
CATEGORIES= devel java |
6 |
MASTER_SITES= https://storage.googleapis.com/bazel/${PORTVERSION}/rc${FINALRC}/ |
6 |
MASTER_SITES= https://storage.googleapis.com/bazel/${PORTVERSION}/rc${FINALRC}/ |
7 |
DISTNAME= bazel-${PORTVERSION}rc${FINALRC}-dist |
7 |
DISTNAME= bazel-${PORTVERSION}rc${FINALRC}-dist |
Lines 25-31
Link Here
|
25 |
CPE_VENDOR= google |
25 |
CPE_VENDOR= google |
26 |
|
26 |
|
27 |
USE_JAVA= yes |
27 |
USE_JAVA= yes |
28 |
JAVA_VERSION= 1.8 |
28 |
JAVA_VERSION= 11 |
29 |
JAVA_VENDOR= openjdk |
29 |
JAVA_VENDOR= openjdk |
30 |
JAVA_BUILD= yes |
30 |
JAVA_BUILD= yes |
31 |
JAVA_RUN= yes |
31 |
JAVA_RUN= yes |
Lines 40-46
Link Here
|
40 |
# In bazel, a release is always code-wise identical to the final release candidate. |
40 |
# In bazel, a release is always code-wise identical to the final release candidate. |
41 |
# Hence we can also download that one and so have a simple way to also test earlier release |
41 |
# Hence we can also download that one and so have a simple way to also test earlier release |
42 |
# candidates. |
42 |
# candidates. |
43 |
FINALRC= 2 |
43 |
FINALRC= 4 |
44 |
|
44 |
|
45 |
.include <bsd.port.pre.mk> |
45 |
.include <bsd.port.pre.mk> |
46 |
|
46 |
|
Lines 55-60
Link Here
|
55 |
pre-patch: |
55 |
pre-patch: |
56 |
@${CP} ${FILESDIR}/extra-patch-absl_base_internal_unscaledcycleclock.cc \ |
56 |
@${CP} ${FILESDIR}/extra-patch-absl_base_internal_unscaledcycleclock.cc \ |
57 |
${FILESDIR}/extra-patch-bazel_grpc__deps.bzl \ |
57 |
${FILESDIR}/extra-patch-bazel_grpc__deps.bzl \ |
|
|
58 |
${FILESDIR}/extra-patch-bazel_build_defs.bzl \ |
58 |
${WRKSRC}/third_party/grpc/ |
59 |
${WRKSRC}/third_party/grpc/ |
59 |
|
60 |
|
60 |
# Have the location of the system-wide rc file reside ${ETCDIR}. |
61 |
# Have the location of the system-wide rc file reside ${ETCDIR}. |
Lines 65-71
Link Here
|
65 |
-e "s|/etc/bazel.bazelrc|${ETCDIR}/bazel.bazelrc|" \ |
66 |
-e "s|/etc/bazel.bazelrc|${ETCDIR}/bazel.bazelrc|" \ |
66 |
${WRKSRC}/src/main/cpp/BUILD |
67 |
${WRKSRC}/src/main/cpp/BUILD |
67 |
@${ECHO_CMD} build --strategy=Javac=standalone >> ${WRKSRC}/scripts/packages/bazel.bazelrc |
68 |
@${ECHO_CMD} build --strategy=Javac=standalone >> ${WRKSRC}/scripts/packages/bazel.bazelrc |
68 |
@${ECHO_CMD} build --host_javabase=@local_jdk//:jdk >> ${WRKSRC}/scripts/packages/bazel.bazelrc |
69 |
@${ECHO_CMD} build --java_runtime_version=${JAVA_VERSION} >> ${WRKSRC}/scripts/packages/bazel.bazelrc |
|
|
70 |
@${ECHO_CMD} build --tool_java_runtime_version=${JAVA_VERSION} >> ${WRKSRC}/scripts/packages/bazel.bazelrc |
69 |
@${ECHO_CMD} build --action_env=PATH=/bin:/usr/bin/:${LOCALBASE}/bin >> ${WRKSRC}/scripts/packages/bazel.bazelrc |
71 |
@${ECHO_CMD} build --action_env=PATH=/bin:/usr/bin/:${LOCALBASE}/bin >> ${WRKSRC}/scripts/packages/bazel.bazelrc |
70 |
@${REINPLACE_CMD} \ |
72 |
@${REINPLACE_CMD} \ |
71 |
-e 's|^\(PYTHON_BIN=.*\)|if [ "%VERSION%" = "3" ] ; then PYTHON_BIN=${PYTHON_CMD}; else \1 ; fi|' \ |
73 |
-e 's|^\(PYTHON_BIN=.*\)|if [ "%VERSION%" = "3" ] ; then PYTHON_BIN=${PYTHON_CMD}; else \1 ; fi|' \ |
Lines 73-78
Link Here
|
73 |
@${REINPLACE_CMD} \ |
75 |
@${REINPLACE_CMD} \ |
74 |
-e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \ |
76 |
-e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \ |
75 |
${WRKSRC}/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java |
77 |
${WRKSRC}/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java |
|
|
78 |
@${REINPLACE_CMD} \ |
79 |
-e 's|%%JAVA_HOME%%|${JAVA_HOME}|' \ |
80 |
${WRKSRC}/src/main/cpp/blaze_util_bsd.cc |
76 |
|
81 |
|
77 |
do-build: |
82 |
do-build: |
78 |
@${MKDIR} ${WRKDIR}/bazel_tmp |
83 |
@${MKDIR} ${WRKDIR}/bazel_tmp |
Lines 82-93
Link Here
|
82 |
fi ; \ |
87 |
fi ; \ |
83 |
cd ${WRKSRC} && \ |
88 |
cd ${WRKSRC} && \ |
84 |
${SETENV} BAZEL_SH=${LOCALBASE}/bin/bash \ |
89 |
${SETENV} BAZEL_SH=${LOCALBASE}/bin/bash \ |
|
|
90 |
JAVA_HOME=${JAVA_HOME} \ |
91 |
JAVA_VERSION=${JAVA_VERSION} \ |
85 |
TMPDIR=${WRKDIR}/bazel_tmp \ |
92 |
TMPDIR=${WRKDIR}/bazel_tmp \ |
86 |
EMBED_LABEL='${PORTVERSION}' \ |
93 |
EMBED_LABEL='${PORTVERSION}' \ |
87 |
PATH=${LOCALBASE}/bin:$$PATH \ |
94 |
PATH=${LOCALBASE}/bin:$$PATH \ |
88 |
SOURCE_DATE_EPOCH=$${SOURCE_DATE_EPOCH} \ |
95 |
SOURCE_DATE_EPOCH=$${SOURCE_DATE_EPOCH} \ |
89 |
BAZEL_JAVAC_OPTS=${BAZEL_JAVAC_OPTS} \ |
96 |
BAZEL_JAVAC_OPTS=${BAZEL_JAVAC_OPTS} \ |
90 |
EXTRA_BAZEL_ARGS=--host_javabase=@local_jdk//:jdk \ |
97 |
EXTRA_BAZEL_ARGS='--host_javabase=@local_jdk//:jdk --tool_java_runtime_version=local_jdk --java_language_version=${JAVA_VERSION} --tool_java_language_version=${JAVA_VERSION}' \ |
91 |
${LOCALBASE}/bin/bash ./compile.sh) |
98 |
${LOCALBASE}/bin/bash ./compile.sh) |
92 |
|
99 |
|
93 |
do-install: |
100 |
do-install: |