Skip to content

Commit

Permalink
KDE Applications: sanitize DOCS option
Browse files Browse the repository at this point in the history
If a port has no documentation, it doesn't need a DOCS
option (which turns on, or off, exactly an empty set
of documentation). This is now handled correctly by
kde.mk since ports 620d767.

KDE **applications** with a DOCS option get doctools_build
added for free; this covers the majority of KDE-things-with
documentation. Note that DOCS isn't expected to **change**
anything: most of the ports that have (or had) that option
didn't do anything with it and always built the docs anyway.

PR:		255260
Reported by:	Naram Qashat
  • Loading branch information
Adriaan de Groot authored and Adriaan de Groot committed Apr 22, 2021
1 parent 5ac58ed commit f365336
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 23 deletions.
8 changes: 7 additions & 1 deletion Mk/Uses/kde.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
# To simplify the ports, also:
# CATEGORIES If the port is part of one of the KDE Software distribution,
# it can add, in addition to 'kde' one of the following:
# kde-application: part of applications release
# kde-applications: part of applications release
# kde-frameworks: part of frameworks release
# kde-plasma: part of plasma release
# this will then set default values for MASTER_SITES and DIST_SUBDIR
# as well as CPE_VENDOR and LICENSE.
#
# option DOCS If the port is part of kde-applications (see CATEGORIES,
# above) and has an option defined for DOCS then a dependency
# for doctools_build is added. The option itself doesn't
# have to do anything -- the dependency is always there.
#
# KDE_INVENT If the port does not have a regular release, and should
# be fetched from KDE Invent (a GitLab instance) it can set
# KDE_INVENT to 3 space-separated values:
Expand Down Expand Up @@ -162,6 +167,7 @@ _KDE_OPTIONS= bogus ${OPTIONS_DEFINE}
. if ${_KDE_OPTIONS:MDOCS}
DOCSDIR= ${PREFIX}/share/doc
PORTDOCS?= HTML/*
USE_KDE+= doctools_build
. endif
# Further pass along a SHLIB_VER PLIST_SUB
PLIST_SUB+= KDE_APPLICATIONS_SHLIB_VER=${KDE_APPLICATIONS_SHLIB_VER} \
Expand Down
2 changes: 0 additions & 2 deletions graphics/kdegraphics-mobipocket/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ USE_QT= concurrent core dbus gui network widgets \

USE_LDCONFIG= yes

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions graphics/kdegraphics-svgpart/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ USE_KDE= auth codecs completion config configwidgets coreaddons ecm \
USE_QT= concurrent core dbus gui network svg widgets xml \
buildtools_build qmake_build

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions graphics/kdegraphics-thumbnailers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ USE_KDE= archive completion config coreaddons ecm jobwidgets libkdcraw \
USE_QT= concurrent core dbus gui network widgets \
buildtools_build qmake_build

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions graphics/libkdcraw/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ USE_LDCONFIG= yes
CMAKE_ARGS= -DWITH_OpenMP:BOOL=False \
-DENABLE_RAWSPEED=True

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions graphics/libkexiv2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ USE_QT= core gui \
buildtools_build qmake_build
USE_LDCONFIG= yes

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions graphics/libkipi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ USE_QT= core dbus gui widgets xml \
buildtools_build qmake_build
USE_LDCONFIG= yes

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions multimedia/kdemultimedia-ffmpegthumbs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ USE_KDE= completion config coreaddons i18n jobwidgets kio service widgetsaddons
USE_QT= concurrent core dbus gui network widgets xml \
buildtools_build qmake_build

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions net-im/kaccounts-integration/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ USE_KDE= auth codecs config configwidgets coreaddons dbusaddons ecm \
USE_QT= dbus core declarative gui network widgets xml \
buildtools_build qmake_build

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions print/print-manager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ USE_KDE= auth codecs completion config configwidgets coreaddons \
USE_QT= concurrent core dbus declarative gui network widgets xml \
buildtools_build qmake_build

OPTIONS_DEFINE= DOCS

post-patch:
${REINPLACE_CMD} '/CUPS_DATADIR/s|/usr/share/cups|${LOCALBASE}/share/cups|' \
${PATCH_WRKSRC}/libkcups/KCupsRequest.cpp
Expand Down
2 changes: 0 additions & 2 deletions sysutils/kdialog/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ USE_QT= concurrent core dbus gui network printsupport widgets xml \
buildtools_build qmake_build
USE_XORG= x11

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions sysutils/signon-kwallet-extension/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ USE_LDCONFIG= ${KDE_PREFIX}/${SE_DIR}
PLIST_FILES= ${SE_DIR}/libkeyring-kwallet.so
SE_DIR= lib/signon/extensions

OPTIONS_DEFINE= DOCS

.include <bsd.port.mk>

0 comments on commit f365336

Please sign in to comment.