75a5f7f076
- Repocopy textproc/py-sphinx to textproc/py-sphinx18 Update it to 1.8.5 (latest version from 1.8.X). This version supports Python 2 and 3. Add test target. - textproc/py-sphinx: Update to 3.0.2 Python 3 only (3.5+). Add test target. - Mk/Uses/python.mk: Add PY_SPHINX Shared macro to use with flavors and not break ports with USES=python (all versions). Python >=3.5 --> textproc/py-sphinx (v3.0.2) Python < 3.5 --> textproc/py-sphinx18 (v1.8.5) All ports that uses sphinx were changed to use the new variable ${PY_SPHINX} in the dependency line, exceptions: * Ports that fails to build with sphinx 3.0.2 because of code. They are pointing to textproc/py-sphinx18 directly. There aren't many ports. * Ports that doesn't know Python flavors. - Add several patches to fix Sphinx consumers The most common issues are related with pkg-plist, the output files from Sphinx changes between versions, keep this dynamically is the better approach. This will save time in future sphinx updates. PR: 245629 Exp-run by: antoine
130 lines
3.8 KiB
Makefile
130 lines
3.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cassandra
|
|
DISTVERSION= 3.11.6
|
|
CATEGORIES= databases java
|
|
MASTER_SITES= APACHE/cassandra/${PORTVERSION}:apache \
|
|
LOCAL/yuri:repo
|
|
PKGNAMESUFFIX= 3
|
|
DISTNAME= apache-${PORTNAME}-${PORTVERSION}-src
|
|
DISTFILES= ${DISTNAME}.tar.gz:apache \
|
|
apache-${PORTNAME}-3.11.4-repo.tar.gz:repo
|
|
|
|
MAINTAINER= language.devel@gmail.com
|
|
COMMENT= Highly scalable distributed database
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
DEPRECATED= Uses deprecated version of python
|
|
EXPIRATION_DATE= 2020-09-15
|
|
|
|
RUN_DEPENDS= snappyjava>=0:archivers/snappy-java
|
|
|
|
USES= python:2.7
|
|
USE_JAVA= yes
|
|
USE_ANT= yes
|
|
USE_RC_SUBR= cassandra
|
|
|
|
CONFLICTS= cassandra4
|
|
|
|
JAVA_VERSION= 1.8
|
|
JAVA_VENDOR= openjdk
|
|
|
|
REINPLACE_ARGS= -i ''
|
|
SUB_LIST= JAVA_HOME=${JAVA_HOME}
|
|
|
|
USERS= cassandra
|
|
GROUPS= cassandra
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
DIST_DIR= ${WRKSRC}/build/dist
|
|
REPO_DIR= ${WRKDIR}/repository
|
|
|
|
CONFIG_FILES= cassandra-env.sh \
|
|
cassandra-jaas.config \
|
|
cassandra-rackdc.properties \
|
|
cassandra-topology.properties \
|
|
cassandra.yaml \
|
|
commitlog_archiving.properties \
|
|
hotspot_compiler \
|
|
jvm.options \
|
|
logback-tools.xml \
|
|
logback.xml
|
|
|
|
SCRIPT_FILES= cassandra \
|
|
cqlsh \
|
|
nodetool \
|
|
sstableloader \
|
|
sstablescrub \
|
|
sstableupgrade \
|
|
sstableutil \
|
|
sstableverify
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= SIGAR DOCS
|
|
OPTIONS_DEFAULT= SIGAR
|
|
OPTIONS_SUB= yes
|
|
|
|
SIGAR_DESC= Use SIGAR to collect system information
|
|
SIGAR_RUN_DEPENDS= java-sigar>=1.6.4:java/sigar
|
|
|
|
DOCS_BUILD_DEPENDS= ${PY_SPHINX} \
|
|
${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR}
|
|
|
|
PORTDOCS= *
|
|
|
|
do-build:
|
|
@${DO_NADA} # Do nothing: Prevent USE_ANT from running a default build target.
|
|
|
|
do-build-DOCS-on:
|
|
@cd ${WRKSRC} && ${ANT} -Dmaven.repo.local=${REPO_DIR} -Dlocalm2=${REPO_DIR} -Dpycmd=${PYTHON_CMD} freebsd-stage-doc
|
|
|
|
do-build-DOCS-off:
|
|
@cd ${WRKSRC} && ${ANT} -Dmaven.repo.local=${REPO_DIR} -Dlocalm2=${REPO_DIR} freebsd-stage
|
|
|
|
post-build:
|
|
.for f in ${SCRIPT_FILES}
|
|
@${REINPLACE_CMD} -e 's|/usr/share/cassandra|${DATADIR}/bin|' ${DIST_DIR}/bin/${f}
|
|
.endfor
|
|
@${REINPLACE_CMD} -e 's|\`dirname "\$$\0"\`/..|${DATADIR}|' ${DIST_DIR}/bin/cassandra.in.sh
|
|
@${REINPLACE_CMD} -e 's|\$$\CASSANDRA_HOME/lib/sigar-bin|${JAVAJARDIR}|' ${DIST_DIR}/bin/cassandra.in.sh
|
|
@${REINPLACE_CMD} -e 's|\$$\CASSANDRA_HOME/lib/sigar-bin|${JAVAJARDIR}|' ${DIST_DIR}/conf/cassandra-env.sh
|
|
@${REINPLACE_CMD} -e 's|\$$\CASSANDRA_HOME/conf|${ETCDIR}|' ${DIST_DIR}/bin/cassandra.in.sh
|
|
@${REINPLACE_CMD} -e 's|\$$\CASSANDRA_HOME/conf|${ETCDIR}|' ${DIST_DIR}/conf/cassandra-env.sh
|
|
.for f in ${CONFIG_FILES}
|
|
@${MV} ${DIST_DIR}/conf/${f} ${DIST_DIR}/conf/${f}.sample
|
|
.endfor
|
|
@${RM} ${DIST_DIR}/lib/licenses/sigar*
|
|
@${RMDIR} ${DIST_DIR}/lib/sigar-bin
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
.for f in CHANGES LICENSE NEWS NOTICE
|
|
cd ${DIST_DIR} && ${INSTALL_DATA} ${f}.txt ${STAGEDIR}${DATADIR}/
|
|
.endfor
|
|
.for d in interface lib pylib tools
|
|
cd ${DIST_DIR} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}/ "! -path '*/bin/*'"
|
|
.endfor
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
cd ${DIST_DIR}/conf && ${COPYTREE_SHARE} . ${STAGEDIR}${ETCDIR}/
|
|
cd ${DIST_DIR} && ${COPYTREE_BIN} bin ${STAGEDIR}${DATADIR}
|
|
cd ${DIST_DIR} && ${INSTALL_DATA} bin/cassandra.in.sh ${STAGEDIR}${DATADIR}/bin/
|
|
cd ${DIST_DIR} && ${COPYTREE_BIN} tools/bin ${STAGEDIR}${DATADIR}/
|
|
cd ${DIST_DIR} && ${INSTALL_DATA} tools/bin/cassandra.in.sh ${STAGEDIR}${DATADIR}/tools/bin/
|
|
.for f in ${SCRIPT_FILES}
|
|
${RLN} ${STAGEDIR}${DATADIR}/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f}
|
|
.endfor
|
|
${LN} -s ${JAVAJARDIR}/snappy-java.jar ${STAGEDIR}${DATADIR}/lib/snappy-java.jar
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for d in doc javadoc
|
|
cd ${DIST_DIR} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DOCSDIR}/
|
|
.endfor
|
|
|
|
post-install-SIGAR-on:
|
|
${LN} -s ${JAVAJARDIR}/sigar.jar ${STAGEDIR}${DATADIR}/lib/sigar.jar
|
|
|
|
.include <bsd.port.mk>
|