svn commit: r504953 - in head/textproc/kf5-sonnet: . files
Tobias C. Berner
tcberner at FreeBSD.org
Sun Jun 23 13:39:36 UTC 2019
Author: tcberner
Date: Sun Jun 23 13:39:35 2019
New Revision: 504953
URL: https://svnweb.freebsd.org/changeset/ports/504953
Log:
textproc/kf5-sonnet: disable building of examples
- examples are built but not installed, so don't build them
PR: 238710
Reported by: yuri
Added:
head/textproc/kf5-sonnet/files/patch-CMakeLists.txt (contents, props changed)
Modified:
head/textproc/kf5-sonnet/Makefile
Modified: head/textproc/kf5-sonnet/Makefile
==============================================================================
--- head/textproc/kf5-sonnet/Makefile Sun Jun 23 13:37:42 2019 (r504952)
+++ head/textproc/kf5-sonnet/Makefile Sun Jun 23 13:39:35 2019 (r504953)
@@ -2,6 +2,7 @@
PORTNAME= sonnet
DISTVERSION= ${KDE_FRAMEWORKS_VERSION}
+PORTREVISION= 1
CATEGORIES= textproc kde kde-frameworks
MAINTAINER= kde at FreeBSD.org
@@ -14,5 +15,8 @@ USES= cmake compiler:c++11-lib kde:5 qt:5 tar:xz
USE_KDE= ecm
USE_QT= buildtools_build core gui linguisttools qmake_build \
testlib widgets
+
+# Disable examples -- they are not installed anyways.
+CMAKE_OFF= ENABLE_EXAMPLES
.include <bsd.port.mk>
Added: head/textproc/kf5-sonnet/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/kf5-sonnet/files/patch-CMakeLists.txt Sun Jun 23 13:39:35 2019 (r504953)
@@ -0,0 +1,13 @@
+Allow disabling building examples, as they are not installed anyways.
+
+--- CMakeLists.txt.orig 2019-06-23 11:56:17 UTC
++++ CMakeLists.txt
+@@ -53,7 +53,7 @@ if (NOT CMAKE_CROSSCOMPILING)
+ add_subdirectory(data)
+ endif()
+
+-if(TARGET Qt5::Widgets)
++if((TARGET Qt5::Widgets) AND (ENABLE_EXAMPLES))
+ add_subdirectory(examples)
+ endif()
+
More information about the svn-ports-head
mailing list