From 4eda3a9e794c7b1834eede06f4e71fe345c791d6 Mon Sep 17 00:00:00 2001 From: adamw Date: Mon, 4 Aug 2014 03:40:14 +0000 Subject: In some straightforward cases, protect documentation behind PORTDOCS, adding a DOCS option where needed, and a couple PORTEXAMPLES for good measure. --- emulators/xzx/Makefile | 2 ++ emulators/xzx/pkg-plist | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'emulators/xzx') diff --git a/emulators/xzx/Makefile b/emulators/xzx/Makefile index 3390739ac7b6..c7df0fbc6fdd 100644 --- a/emulators/xzx/Makefile +++ b/emulators/xzx/Makefile @@ -23,6 +23,8 @@ CONFIGURE_ARGS= --with-oss DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-pro +OPTIONS_DEFINE= DOCS + pre-configure: @${REINPLACE_CMD} 's,(pkglibdir),(datadir)/doc/@PACKAGE@,' ${WRKSRC}/doc/Makefile.in diff --git a/emulators/xzx/pkg-plist b/emulators/xzx/pkg-plist index 7c80831b3ead..7e4fca1dab63 100644 --- a/emulators/xzx/pkg-plist +++ b/emulators/xzx/pkg-plist @@ -7,10 +7,10 @@ lib/xzx-pro/plus2.rom lib/xzx-pro/plus3.rom lib/xzx-pro/spectrum.rom man/man1/xzx.1.gz -%%DOCSDIR%%/COPYRIGHT -%%DOCSDIR%%/FAQ -%%DOCSDIR%%/README -@dirrm %%DOCSDIR%% +%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT +%%PORTDOCS%%%%DOCSDIR%%/FAQ +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% @unexec rm -f %D/lib/xzx-pro/if1.rom @exec ln -f %D/lib/xzx-pro/if1-v2.rom %D/lib/xzx-pro/if1.rom @dirrm lib/xzx-pro -- cgit