aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/cycle
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-08-04 11:40:14 +0800
committeradamw <adamw@FreeBSD.org>2014-08-04 11:40:14 +0800
commit4eda3a9e794c7b1834eede06f4e71fe345c791d6 (patch)
tree813aa84d1ad8bd3cfafe0793f530eff6e9c6194c /deskutils/cycle
parent0eff41e7b9a36ea4031df2f12affda98bd0b9e61 (diff)
downloadfreebsd-ports-gnome-4eda3a9e794c7b1834eede06f4e71fe345c791d6.tar.gz
freebsd-ports-gnome-4eda3a9e794c7b1834eede06f4e71fe345c791d6.tar.zst
freebsd-ports-gnome-4eda3a9e794c7b1834eede06f4e71fe345c791d6.zip
In some straightforward cases, protect documentation behind
PORTDOCS, adding a DOCS option where needed, and a couple PORTEXAMPLES for good measure.
Diffstat (limited to 'deskutils/cycle')
-rw-r--r--deskutils/cycle/Makefile2
-rw-r--r--deskutils/cycle/pkg-plist8
2 files changed, 6 insertions, 4 deletions
diff --git a/deskutils/cycle/Makefile b/deskutils/cycle/Makefile
index ec7eb5033aa1..7abd1ab81c72 100644
--- a/deskutils/cycle/Makefile
+++ b/deskutils/cycle/Makefile
@@ -18,6 +18,8 @@ USE_WX= 3.0+
WX_COMPS= python
NO_BUILD= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e 's,"msg","${PREFIX}/share/locale",' \
-e 's,"","${DOCSDIR}", ; s,"icons","${DATADIR}/icons",' \
diff --git a/deskutils/cycle/pkg-plist b/deskutils/cycle/pkg-plist
index 08f6e8bd301c..f09698c28056 100644
--- a/deskutils/cycle/pkg-plist
+++ b/deskutils/cycle/pkg-plist
@@ -17,9 +17,9 @@ man/man1/cycle.1.gz
%%DATADIR%%/icons/cycle.xpm
%%DATADIR%%/icons/large/cycle.xpm
%%DATADIR%%/icons/mini/cycle.xpm
-%%DOCSDIR%%/README.html
-%%DOCSDIR%%/README_de.html
-%%DOCSDIR%%/README_ru.html
+%%PORTDOCS%%%%DOCSDIR%%/README.html
+%%PORTDOCS%%%%DOCSDIR%%/README_de.html
+%%PORTDOCS%%%%DOCSDIR%%/README_ru.html
share/locale/ca/LC_MESSAGES/cycle.mo
share/locale/cs/LC_MESSAGES/cycle.mo
share/locale/de/LC_MESSAGES/cycle.mo
@@ -27,7 +27,7 @@ share/locale/es/LC_MESSAGES/cycle.mo
share/locale/gl/LC_MESSAGES/cycle.mo
share/locale/ru/LC_MESSAGES/cycle.mo
share/locale/sk/LC_MESSAGES/cycle.mo
-@dirrm %%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%/icons/mini
@dirrm %%DATADIR%%/icons/large
@dirrm %%DATADIR%%/icons