aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/squeeze
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-04 03:06:07 +0800
committeradamw <adamw@FreeBSD.org>2014-07-04 03:06:07 +0800
commit5c58cc66c5083e97c21a8e420f3306c57e8f2497 (patch)
treee3772ed0921ca0d8dc861c4b7c1dd440273bc41e /archivers/squeeze
parent13309b2127b4e76e6026d002c81d2eb948f73fb5 (diff)
downloadfreebsd-ports-gnome-5c58cc66c5083e97c21a8e420f3306c57e8f2497.tar.gz
freebsd-ports-gnome-5c58cc66c5083e97c21a8e420f3306c57e8f2497.tar.zst
freebsd-ports-gnome-5c58cc66c5083e97c21a8e420f3306c57e8f2497.zip
Reduce unnecessary bsd.port.options.mk inclusions by using OPTIONS helpers.
For liborange, reverse the logic, as I'm pretty sure the OPTIONS were being used to disable the selected options. Approved by: portmgr (blanket)
Diffstat (limited to 'archivers/squeeze')
-rw-r--r--archivers/squeeze/Makefile9
-rw-r--r--archivers/squeeze/pkg-plist34
2 files changed, 19 insertions, 24 deletions
diff --git a/archivers/squeeze/Makefile b/archivers/squeeze/Makefile
index b0232c47b4c5..58303e5297bc 100644
--- a/archivers/squeeze/Makefile
+++ b/archivers/squeeze/Makefile
@@ -25,16 +25,11 @@ USE_GNOME= gtk20 glib20 intltool intlhack
USE_LDCONFIG= yes
MAKE_JOB_SAFE= yes
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS
+OPTIONS_SUB= yes
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MDOCS}
-PLIST_SUB= GTKDOC=""
-.else
-PLIST_SUB= GTKDOC="@comment "
-.endif
-
post-patch:
# Needed to remove gtk-doc installation
.if empty(PORT_OPTIONS:MDOCS)
diff --git a/archivers/squeeze/pkg-plist b/archivers/squeeze/pkg-plist
index 035b3a26fe65..0e64a2031508 100644
--- a/archivers/squeeze/pkg-plist
+++ b/archivers/squeeze/pkg-plist
@@ -30,28 +30,28 @@ share/locale/tr/LC_MESSAGES/squeeze.mo
share/locale/uk/LC_MESSAGES/squeeze.mo
share/pixmaps/squeeze/archive-add.png
share/pixmaps/squeeze/archive-extract.png
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/LSQArchive.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/LSQArchiveCommand.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/archiving.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/home.png
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/index.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/index.sgml
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/ix01.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/left.png
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze-LSQArchiveSupport.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze-libsqueeze.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze.devhelp
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze.devhelp2
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/right.png
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/style.css
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/up.png
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/LSQArchive.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/LSQArchiveCommand.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/archiving.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/home.png
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/index.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/index.sgml
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/ix01.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/left.png
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze-LSQArchiveSupport.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze-libsqueeze.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze.devhelp
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze.devhelp2
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/right.png
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/style.css
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/up.png
share/icons/hicolor/16x16/apps/squeeze.png
share/icons/hicolor/48x48/apps/squeeze.png
share/icons/hicolor/scalable/apps/squeeze.svg
share/applications/squeeze.desktop
@dirrmtry share/pixmaps/squeeze
-%%GTKDOC%%@dirrm share/gtk-doc/html/libsqueeze
+%%PORTDOCS%%@dirrm share/gtk-doc/html/libsqueeze
@dirrmtry libexec/thunar-archive-plugin
@dirrmtry include/libsqueeze-0.2/libsqueeze
@dirrmtry include/libsqueeze-0.2