aboutsummaryrefslogtreecommitdiff
path: root/databases/metakit
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-01-10 09:01:13 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-01-10 09:01:13 +0000
commit9c3a337329f309f506ecb34f43c71d3a0e943384 (patch)
tree85d07ec19479d77a3434f6ba351ff4f782f3cb25 /databases/metakit
parent1208355e8b496e61808545f3e02e2f0eaeca04e9 (diff)
downloadports-9c3a337329f309f506ecb34f43c71d3a0e943384.tar.gz
ports-9c3a337329f309f506ecb34f43c71d3a0e943384.zip
Notes
Diffstat (limited to 'databases/metakit')
-rw-r--r--databases/metakit/Makefile23
-rw-r--r--databases/metakit/pkg-plist12
2 files changed, 14 insertions, 21 deletions
diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile
index 3793ce7a2263..06226bf1eb74 100644
--- a/databases/metakit/Makefile
+++ b/databases/metakit/Makefile
@@ -23,6 +23,7 @@ BROKEN_mips64= Fails to build: error: conflicting declaration typedef long int
OPTIONS_DEFINE= PYTHON TCL DOCS
OPTIONS_DEFAULT= PYTHON
+OPTIONS_SUB= yes
.include <bsd.port.options.mk>
@@ -30,9 +31,6 @@ OPTIONS_DEFAULT= PYTHON
USES+= python
CONFIGURE_ARGS+= --with-python=${LOCALBASE}
CATEGORIES+= python
-PLIST_SUB+= WITH_PYTHON=""
-.else
-PLIST_SUB+= WITH_PYTHON="@comment "
.endif
.if ${PORT_OPTIONS:MTCL}
@@ -41,25 +39,20 @@ CATEGORIES+= tcl
CONFIGURE_ARGS+=--with-tcl=${TCL_INCLUDEDIR}
CONFIGURE_ENV+= TCL_LIBDIR=${TCL_LIBDIR}
PLIST_SUB+= TCL_V="${TCL_VER}"
-PLIST_SUB+= WITH_TCL=""
-.else
-PLIST_SUB+= WITH_TCL="@comment "
.endif
pre-patch:
- ${REINPLACE_CMD} -e "s=doc/==" ${WRKSRC}/../Metakit.html
- ${REINPLACE_CMD} -e "s|= tclsh|=${TCLSH}|" \
+ @${REINPLACE_CMD} -e "s=doc/==" ${WRKSRC}/../Metakit.html
+ @${REINPLACE_CMD} -e "s|= tclsh|=${TCLSH}|" \
${WRKSRC}/../unix/Makefile.in
- ${REINPLACE_CMD} -e "s=python2.[0-9]=${PYTHON_VERSION}=" \
+ @${REINPLACE_CMD} -e "s=python2.[0-9]=${PYTHON_VERSION}=" \
${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/configure
-post-build:
-.if ${PORT_OPTIONS:MPYTHON}
+post-build-PYTHON-on:
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
${WRKSRC}/../python
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
${WRKSRC}/../python
-.endif
pre-install:
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
@@ -74,12 +67,12 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/../Metakit.html ${WRKSRC}/../CHANGES \
${WRKSRC}/../README ${STAGEDIR}${DOCSDIR}
-test:
+do-test:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
-.if ${PORT_OPTIONS:MTCL}
+
+do-test-TCL-on:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test-tcl)
-.endif
.include <bsd.port.mk>
diff --git a/databases/metakit/pkg-plist b/databases/metakit/pkg-plist
index 533baa3851b3..9b89695e2b8c 100644
--- a/databases/metakit/pkg-plist
+++ b/databases/metakit/pkg-plist
@@ -4,12 +4,12 @@ include/mk4str.h
include/mk4str.inl
lib/libmk4.so
lib/libmk4.so.0
-%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/Mk4py.so
-%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/metakit.py
-%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/metakit.pyc
-%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/metakit.pyo
-%%WITH_TCL%%lib/tcl%%TCL_V%%/Mk4tcl/Mk4tcl.so
-%%WITH_TCL%%lib/tcl%%TCL_V%%/Mk4tcl/pkgIndex.tcl
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/Mk4py.so
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/metakit.py
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/metakit.pyc
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/metakit.pyo
+%%TCL%%lib/tcl%%TCL_V%%/Mk4tcl/Mk4tcl.so
+%%TCL%%lib/tcl%%TCL_V%%/Mk4tcl/pkgIndex.tcl
%%PORTDOCS%%%%DOCSDIR%%/api/c4_Bytes.html
%%PORTDOCS%%%%DOCSDIR%%/api/c4_BytesProp.html
%%PORTDOCS%%%%DOCSDIR%%/api/c4_BytesProp_desc.html