Alberto Villa <avi...@freebsd.org> writes:

> On Saturday 30 March 2013 20:40:52 Raphael Kubo da Costa wrote:
>> SVN commit 9160 by rakuco:
>>
>> kdelibs4: Disable tests without patching the CMake files.
>>
>> Instead of touching the source code, just pass an additional option to
>> CMake.
>
> Please, revert, I want the setting to be changed globally.

How about the patch below? I'd really like to stay away from patching
the source code itself as much as possible.

Index: Mk/bsd.kde4.mk
===================================================================
--- Mk/bsd.kde4.mk      (revision 9159)
+++ Mk/bsd.kde4.mk      (working copy)
@@ -90,7 +90,8 @@
 KDE4_PREFIX?=  ${LOCALBASE}/kde4

 # Help cmake to find files when testing ports with non-default PREFIX
-CMAKE_ARGS+=   -DCMAKE_PREFIX_PATH="${LOCALBASE};${KDE4_PREFIX}"
+CMAKE_ARGS+=   -DCMAKE_PREFIX_PATH="${LOCALBASE};${KDE4_PREFIX}" \
+               -DKDE4_BUILD_TESTS:BOOL=OFF

 # ${PREFIX} and ${NO_MTREE} have to be defined in the pre-makefile section.
 .if defined(USE_KDE4) && ${USE_KDE4:Mkdeprefix} != ""
Index: x11/kdelibs4/Makefile
===================================================================
--- x11/kdelibs4/Makefile       (revision 9160)
+++ x11/kdelibs4/Makefile       (working copy)
@@ -61,8 +61,7 @@
                -DWITH_ASPELL:BOOL=Off \
                -DWITH_HSPELL:BOOL=Off \
                -DKDE_DISTRIBUTION_TEXT:STRING="${OPSYS}" \
-               -DKDE_DEFAULT_HOME:STRING=".kde4" \
-               -DKDE4_BUILD_TESTS:BOOL=Off
+               -DKDE_DEFAULT_HOME:STRING=".kde4"

 MAN1=  checkXML.1 \
        kconfig_compiler.1 \
_______________________________________________
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information

Reply via email to