summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-09-10 13:15:47 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-09-10 13:15:47 +0000
commit4a3bebcae1b693cbd2080fc861c87e36af4f8bc4 (patch)
tree3c6875e1915991a70b5d02b799e17418d20b218a /databases
parentAdd DOCS options to ports that should have one. (diff)
Add EXAMPLES options to ports that should have one.
Also various fixes related to said option. PR: 230864 Submitted by: mat exp-runs by: antoine
Notes
Notes: svn path=/head/; revision=479407
Diffstat (limited to 'databases')
-rw-r--r--databases/p5-DBD-Excel/Makefile4
-rw-r--r--databases/skytools/Makefile2
-rw-r--r--databases/tcl-sqlite3/Makefile2
3 files changed, 6 insertions, 2 deletions
diff --git a/databases/p5-DBD-Excel/Makefile b/databases/p5-DBD-Excel/Makefile
index 361483195a79..bcb0ee5d35f9 100644
--- a/databases/p5-DBD-Excel/Makefile
+++ b/databases/p5-DBD-Excel/Makefile
@@ -21,7 +21,9 @@ EXAMPLESDIR?= ${PREFIX}/share/examples/${PORTNAME}
USES= perl5
USE_PERL5= configure
-post-install:
+OPTIONS_DEFINE= EXAMPLES
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR}
diff --git a/databases/skytools/Makefile b/databases/skytools/Makefile
index 75010f198eba..8ea341a66e00 100644
--- a/databases/skytools/Makefile
+++ b/databases/skytools/Makefile
@@ -26,6 +26,8 @@ CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \
--docdir=${EXAMPLESDIR} \
--with-pgconfig=${LOCALBASE}/bin/pg_config
+OPTIONS_DEFINE= EXAMPLES
+
post-patch:
@${REINPLACE_CMD} -e 's=share/doc=share/examples=' ${WRKSRC}/setup_skytools.py
diff --git a/databases/tcl-sqlite3/Makefile b/databases/tcl-sqlite3/Makefile
index 0c3996f9368c..90a5c3b065d6 100644
--- a/databases/tcl-sqlite3/Makefile
+++ b/databases/tcl-sqlite3/Makefile
@@ -14,7 +14,7 @@ LICENSE= PD
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
-OPTIONS_DEFINE= THREADS
+OPTIONS_DEFINE= EXAMPLES THREADS
OPTIONS_DEFAULT= THREADS
WRKSRC= ${WRKDIR}/${DISTNAME}/tea