From cb7d5cc607bbcd6285b960eecd3a1daf1d7e9e1e Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Wed, 6 Aug 2014 04:34:23 +0000 Subject: In some straightforward situations, protect examples behind PORTEXAMPLES, adding EXAMPLES to OPTIONS_DEFINE where necessary. In a couple instances, correct examples being controlled by the DOCS option. --- databases/py-psycopg/Makefile | 2 +- databases/py-psycopg/pkg-plist | 40 ++++++++++++++++++++-------------------- databases/sqlite2/Makefile | 2 +- databases/sqlite2/pkg-plist | 4 ++-- 4 files changed, 24 insertions(+), 24 deletions(-) (limited to 'databases') diff --git a/databases/py-psycopg/Makefile b/databases/py-psycopg/Makefile index a5cfa92a9655..9bc7cbf0b3aa 100644 --- a/databases/py-psycopg/Makefile +++ b/databases/py-psycopg/Makefile @@ -28,7 +28,7 @@ CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \ --with-postgres-includes=${LOCALBASE}/include \ --with-mxdatetime-includes=${DATETIME_INC} -OPTIONS_DEFINE= ZOPE DOCS +OPTIONS_DEFINE= ZOPE DOCS EXAMPLES OPTIONS_SUB= yes ZOPE_USES= zope diff --git a/databases/py-psycopg/pkg-plist b/databases/py-psycopg/pkg-plist index 11b5f731749e..939565d29e38 100644 --- a/databases/py-psycopg/pkg-plist +++ b/databases/py-psycopg/pkg-plist @@ -10,26 +10,26 @@ %%PORTDOCS%%%%DOCSDIR%%/RELEASE-1.0 %%PORTDOCS%%%%DOCSDIR%%/SUCCESS %%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%%%EXAMPLESDIR%%/binary.py -%%PORTDOCS%%%%EXAMPLESDIR%%/bool.py -%%PORTDOCS%%%%EXAMPLESDIR%%/bounded.py -%%PORTDOCS%%%%EXAMPLESDIR%%/commit.py -%%PORTDOCS%%%%EXAMPLESDIR%%/copy_from.py -%%PORTDOCS%%%%EXAMPLESDIR%%/copy_from2.py -%%PORTDOCS%%%%EXAMPLESDIR%%/copy_to.py -%%PORTDOCS%%%%EXAMPLESDIR%%/dictfetch.py -%%PORTDOCS%%%%EXAMPLESDIR%%/dt.py -%%PORTDOCS%%%%EXAMPLESDIR%%/first.py -%%PORTDOCS%%%%EXAMPLESDIR%%/integrity.py -%%PORTDOCS%%%%EXAMPLESDIR%%/interval.py -%%PORTDOCS%%%%EXAMPLESDIR%%/notify.py -%%PORTDOCS%%%%EXAMPLESDIR%%/oid.py -%%PORTDOCS%%%%EXAMPLESDIR%%/somehackers.jpg -%%PORTDOCS%%%%EXAMPLESDIR%%/threads.py -%%PORTDOCS%%%%EXAMPLESDIR%%/usercast.py -%%PORTDOCS%%%%EXAMPLESDIR%%/whereareyou.jpg -%%PORTDOCS%%%%EXAMPLESDIR%%/work.py -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/binary.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bool.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bounded.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/commit.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/copy_from.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/copy_from2.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/copy_to.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dictfetch.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dt.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/first.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integrity.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/interval.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/notify.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/oid.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/somehackers.jpg +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/threads.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/usercast.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/whereareyou.jpg +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/work.py +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% %%ZOPE%%%%ZOPEPRODUCTDIR%%/ZPsycopgDA/DA.py %%ZOPE%%%%ZOPEPRODUCTDIR%%/ZPsycopgDA/DA.pyc diff --git a/databases/sqlite2/Makefile b/databases/sqlite2/Makefile index 816948a3ba32..b4f20bcdd6d5 100644 --- a/databases/sqlite2/Makefile +++ b/databases/sqlite2/Makefile @@ -21,7 +21,7 @@ EXAMPLESDIR= ${PREFIX}/share/examples/sqlite2 EXTRACT_AFTER_ARGS= --exclude CVS -OPTIONS_DEFINE= TCL THREADS DOCS +OPTIONS_DEFINE= TCL THREADS DOCS EXAMPLES .if !exists(/usr/lib/libreadline.so) MAKE_ARGS= READLINE_FLAGS="-DHAVE_READLINE=1 -I${LOCALBASE}/include -L${LOCALBASE}/lib" diff --git a/databases/sqlite2/pkg-plist b/databases/sqlite2/pkg-plist index bc9b25f7264f..5fd9ba1adcf6 100644 --- a/databases/sqlite2/pkg-plist +++ b/databases/sqlite2/pkg-plist @@ -7,5 +7,5 @@ libdata/pkgconfig/sqlite.pc %%WITH_TCLWRAPPER%%lib/sqlite/libtclsqlite.so %%WITH_TCLWRAPPER%%lib/sqlite/pkgIndex.tcl %%WITH_TCLWRAPPER%%@dirrm lib/sqlite -%%EXAMPLESDIR%%/example.tcl -@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.tcl +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% -- cgit v1.2.3