summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWulf Krueger <philantrop@gentoo.org>2008-02-07 00:12:59 +0000
committerWulf Krueger <philantrop@gentoo.org>2008-02-07 00:12:59 +0000
commitb0cf2ebbfc7626d65b374788654d4e26028bda3f (patch)
tree473933e2eaf30d14938b24846be4b834a0d385d4 /kde-base/kdelibs
parentrename check_apache_threads to has_apache_threads as suggested by dberkholz (diff)
downloadgentoo-2-b0cf2ebbfc7626d65b374788654d4e26028bda3f.tar.gz
gentoo-2-b0cf2ebbfc7626d65b374788654d4e26028bda3f.tar.bz2
gentoo-2-b0cf2ebbfc7626d65b374788654d4e26028bda3f.zip
Version bump to KDE 4.0.1.
(Portage version: 2.1.4.1)
Diffstat (limited to 'kde-base/kdelibs')
-rw-r--r--kde-base/kdelibs/ChangeLog10
-rw-r--r--kde-base/kdelibs/files/e-tempdir.patch33
-rw-r--r--kde-base/kdelibs/files/kdelibs-4.0.1-X11-optional.patch102
-rw-r--r--kde-base/kdelibs/files/kdelibs-4.0.1-alsa-optional.patch51
-rw-r--r--kde-base/kdelibs/kdelibs-4.0.1.ebuild198
5 files changed, 374 insertions, 20 deletions
diff --git a/kde-base/kdelibs/ChangeLog b/kde-base/kdelibs/ChangeLog
index 050a1693aa9c..bd78ad607e68 100644
--- a/kde-base/kdelibs/ChangeLog
+++ b/kde-base/kdelibs/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for kde-base/kdelibs
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.507 2008/01/31 02:26:57 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.508 2008/02/07 00:12:40 philantrop Exp $
+
+*kdelibs-4.0.1 (06 Feb 2008)
+
+ 06 Feb 2008; Wulf C. Krueger <philantrop@gentoo.org>
+ +files/kdelibs-4.0.1-X11-optional.patch,
+ +files/kdelibs-4.0.1-alsa-optional.patch, files/e-tempdir.patch,
+ +kdelibs-4.0.1.ebuild:
+ Version bump to KDE 4.0.1.
31 Jan 2008; Brent Baude <ranger@gentoo.org> kdelibs-3.5.8-r3.ebuild:
Marking kdelibs-3.5.8-r3 ppc for bug 207634
diff --git a/kde-base/kdelibs/files/e-tempdir.patch b/kde-base/kdelibs/files/e-tempdir.patch
index 33f72439a606..1cd6f3e562cd 100644
--- a/kde-base/kdelibs/files/e-tempdir.patch
+++ b/kde-base/kdelibs/files/e-tempdir.patch
@@ -1,27 +1,22 @@
-The cmake command create_symlink doesn't work correctly with the sandbox,
-so we prefix the symlink's destination with ${E_TEMPDIR},
-and pass "-DE_TEMPDIR=${D}" to cmake during the configure step.
+commit 487e4227f67ed5a2655130bf72c55b3e5d2d258d
+Author: Ingmar Vanhassel <ingmar.vanhassel@gmail.com>
+Date: Thu Jan 10 02:07:50 2008 +0100
---- a/cmake/modules/KDE4Macros.cmake.orig 2007-08-31 20:29:51.000000000 +0200
-+++ b/cmake/modules/KDE4Macros.cmake 2007-08-31 20:30:01.000000000 +0200
-@@ -303,7 +303,7 @@
- # TODO symlinks on non-unix platforms
- if (UNIX)
- # execute some cmake code on make install which creates the symlink
-- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${_installDest}/common\" \"${_installDest}/${dirname}/common\" )" )
-+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${_installDest}/common\" \"$ENV{D}/${_installDest}/${dirname}/common\" )" )
- endif (UNIX)
- endif(_installDest)
-
---- a/kio/misc/CMakeLists.txt.orig 2007-10-03 12:49:42.000000000 +0200
-+++ b/kio/misc/CMakeLists.txt 2007-10-19 18:35:43.000000000 +0200
-@@ -44,7 +44,7 @@
+ Fix Sandbox violations when creating a symlink for KIO-slaves.
+---
+ kdelibs/kio/misc/CMakeLists.txt | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/kdelibs/kio/misc/CMakeLists.txt b/kdelibs/kio/misc/CMakeLists.txt
+index b7e4f81..63e3e92 100644
+--- a/kdelibs/kio/misc/CMakeLists.txt
++++ b/kdelibs/kio/misc/CMakeLists.txt
+@@ -43,7 +43,7 @@ install( FILES kmailservice.protocol telnet.protocol rlogin.protocol rtsp.protoc
if (UNIX)
install(PROGRAMS fileshareset DESTINATION ${LIBEXEC_INSTALL_DIR} )
# write a cmake script file which creates the symlink
- file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake "exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${LIBEXEC_INSTALL_DIR}/fileshareset ${LIBEXEC_INSTALL_DIR}/filesharelist)\n")
-+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake "exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${LIBEXEC_INSTALL_DIR}/fileshareset $ENV{D}/${LIBEXEC_INSTALL_DIR}/filesharelist)\n")
++ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake "exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${LIBEXEC_INSTALL_DIR}/fileshareset \"$ENV{D}/${LIBEXEC_INSTALL_DIR}/filesharelist\")\n")
# and add it as post-install script to any of the installed targets, so it will be executed during "make install"
set_target_properties(ktelnetservice PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake)
endif (UNIX)
-
diff --git a/kde-base/kdelibs/files/kdelibs-4.0.1-X11-optional.patch b/kde-base/kdelibs/files/kdelibs-4.0.1-X11-optional.patch
new file mode 100644
index 000000000000..9a3c680f59b0
--- /dev/null
+++ b/kde-base/kdelibs/files/kdelibs-4.0.1-X11-optional.patch
@@ -0,0 +1,102 @@
+ cmake/modules/FindX11.cmake | 44 +++++++++++++++++++++++++++++++++++++-----
+ 1 files changed, 38 insertions(+), 6 deletions(-)
+
+diff --git a/cmake/modules/FindX11.cmake b/cmake/modules/FindX11.cmake
+index 5fdbe82..b56f594 100644
+--- a/cmake/modules/FindX11.cmake
++++ b/cmake/modules/FindX11.cmake
+@@ -39,6 +39,34 @@
+ # Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
+ # See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
+
++
++# Look for an optional X11 package, and provide a cmake switch to disable searching for it.
++#
++# Example usage: FIND_X11(X11_Xinerama X11/extensions/Xinerama.h Xinerama)
++# which provides: `cmake -DWITH_X11_Xinerama=OFF` to disable the check.
++#
++# You need to pass a header _and_ a library, in that order.
++MACRO (FIND_X11 _name _header _library )
++ OPTION(WITH_${_name} "Search for X11 package ${_name}" ON)
++
++ IF (WITH_${_name})
++ FIND_PATH(${_name}_INCLUDE_PATH ${_header} ${X11_INC_SEARCH_PATH})
++
++ FIND_LIBRARY(${_name}_LIB ${_library} ${X11_LIB_SEARCH_PATH})
++
++ IF (${_name}_INCLUDE_PATH AND ${_name}_LIB)
++ SET(${_name}_FOUND TRUE)
++ SET(_temp ${${_name}_INCLUDE_PATH})
++ SET(X11_INCLUDE_DIR ${X11_INCLUDE_DIR} ${_temp})
++ ENDIF (${_name}_INCLUDE_PATH AND ${_name}_LIB)
++
++ ELSE (WITH_${_name})
++ SET(${_name}_FOUND FALSE CACHE BOOL "${_name} found")
++ SET(${_name}_LIB NOTFOUND CACHE FILEPATH "Path to ${_name} library")
++ SET(${_name}_INCLUDE_PATH NOTFOUND CACHE PATH "Path to ${_name}")
++ ENDIF (WITH_${_name})
++ENDMACRO (FIND_X11)
++
+ IF (UNIX)
+ SET(X11_FOUND 0)
+ # X11 is never a framework and some header files may be
+@@ -75,7 +103,7 @@ IF (UNIX)
+ FIND_PATH(X11_Xaccessrules_INCLUDE_PATH X11/extensions/XKBrules.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xaccessstr_INCLUDE_PATH X11/extensions/XKBstr.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xau_INCLUDE_PATH X11/Xauth.h ${X11_INC_SEARCH_PATH})
+- FIND_PATH(X11_Xcomposite_INCLUDE_PATH X11/extensions/Xcomposite.h ${X11_INC_SEARCH_PATH})
++ #FIND_PATH(X11_Xcomposite_INCLUDE_PATH X11/extensions/Xcomposite.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xcursor_INCLUDE_PATH X11/Xcursor/Xcursor.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xdamage_INCLUDE_PATH X11/extensions/Xdamage.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xdmcp_INCLUDE_PATH X11/Xdmcp.h ${X11_INC_SEARCH_PATH})
+@@ -84,7 +112,7 @@ IF (UNIX)
+ FIND_PATH(X11_xf86vmode_INCLUDE_PATH X11/extensions/xf86vmode.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xfixes_INCLUDE_PATH X11/extensions/Xfixes.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xft_INCLUDE_PATH X11/Xft/Xft.h ${X11_INC_SEARCH_PATH})
+- FIND_PATH(X11_Xinerama_INCLUDE_PATH X11/extensions/Xinerama.h ${X11_INC_SEARCH_PATH})
++ #FIND_PATH(X11_Xinerama_INCLUDE_PATH X11/extensions/Xinerama.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xinput_INCLUDE_PATH X11/extensions/XInput.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xkb_INCLUDE_PATH X11/extensions/XKB.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xkblib_INCLUDE_PATH X11/XKBlib.h ${X11_INC_SEARCH_PATH})
+@@ -94,7 +122,7 @@ IF (UNIX)
+ FIND_PATH(X11_XShm_INCLUDE_PATH X11/extensions/XShm.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xrandr_INCLUDE_PATH X11/extensions/Xrandr.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xrender_INCLUDE_PATH X11/extensions/Xrender.h ${X11_INC_SEARCH_PATH})
+- FIND_PATH(X11_Xscreensaver_INCLUDE_PATH X11/extensions/scrnsaver.h ${X11_INC_SEARCH_PATH})
++ #FIND_PATH(X11_Xscreensaver_INCLUDE_PATH X11/extensions/scrnsaver.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xshape_INCLUDE_PATH X11/extensions/shape.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xutil_INCLUDE_PATH X11/Xutil.h ${X11_INC_SEARCH_PATH})
+ FIND_PATH(X11_Xt_INCLUDE_PATH X11/Intrinsic.h ${X11_INC_SEARCH_PATH})
+@@ -107,25 +135,29 @@ IF (UNIX)
+ # Find additional X libraries. Keep list sorted by library name.
+ FIND_LIBRARY(X11_ICE_LIB ICE ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xau_LIB Xau ${X11_LIB_SEARCH_PATH})
+- FIND_LIBRARY(X11_Xcomposite_LIB Xcomposite ${X11_LIB_SEARCH_PATH})
++ #FIND_LIBRARY(X11_Xcomposite_LIB Xcomposite ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xcursor_LIB Xcursor ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xdamage_LIB Xdamage ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xdmcp_LIB Xdmcp ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xext_LIB Xext ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xfixes_LIB Xfixes ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xft_LIB Xft ${X11_LIB_SEARCH_PATH})
+- FIND_LIBRARY(X11_Xinerama_LIB Xinerama ${X11_LIB_SEARCH_PATH})
++ #FIND_LIBRARY(X11_Xinerama_LIB Xinerama ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xinput_LIB Xi ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xkbfile_LIB xkbfile ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xpm_LIB Xpm ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xrandr_LIB Xrandr ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xrender_LIB Xrender ${X11_LIB_SEARCH_PATH})
+- FIND_LIBRARY(X11_Xscreensaver_LIB Xss ${X11_LIB_SEARCH_PATH})
++ #FIND_LIBRARY(X11_Xscreensaver_LIB Xss ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xt_LIB Xt ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_XTest_LIB Xtst ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xv_LIB Xv ${X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(X11_Xxf86misc_LIB Xxf86misc ${X11_LIB_SEARCH_PATH})
+
++ FIND_X11(X11_Xcomposite X11/extensions/Xcomposite.h Xcomposite)
++ FIND_X11(X11_Xinerama X11/extensions/Xinerama.h Xinerama)
++ FIND_X11(X11_Xscreensaver X11/extensions/scrnsaver.h Xss)
++
+ SET(X11_LIBRARY_DIR "")
+ IF(X11_X11_LIB)
+ GET_FILENAME_COMPONENT(X11_LIBRARY_DIR ${X11_X11_LIB} PATH)
diff --git a/kde-base/kdelibs/files/kdelibs-4.0.1-alsa-optional.patch b/kde-base/kdelibs/files/kdelibs-4.0.1-alsa-optional.patch
new file mode 100644
index 000000000000..77e9ae04dc16
--- /dev/null
+++ b/kde-base/kdelibs/files/kdelibs-4.0.1-alsa-optional.patch
@@ -0,0 +1,51 @@
+--- a/cmake/modules/FindAlsa.cmake
++++ b/cmake/modules/FindAlsa.cmake
+@@ -13,10 +13,14 @@
+ # Redistribution and use is allowed according to the terms of the BSD license.
+ # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
++OPTION(WITH_Alsa "Support for the ALSA sound system." ON)
++
+ include(CheckIncludeFiles)
+ include(CheckIncludeFileCXX)
+ include(CheckLibraryExists)
+
++if(WITH_Alsa)
++
+ # Already done by toplevel
+ find_library(ASOUND_LIBRARY asound)
+ check_library_exists(asound snd_seq_create_simple_port ${ASOUND_LIBRARY} HAVE_LIBASOUND2)
+@@ -29,19 +33,22 @@
+
+ find_path(ALSA_INCLUDES alsa/version.h)
+
++endif(WITH_Alsa)
++
+ macro(ALSA_VERSION_STRING _result)
+ # check for version in alsa/version.h
+- if(ALSA_INCLUDES)
++ if(WITH_Alsa AND ALSA_INCLUDES)
+ file(READ "${ALSA_INCLUDES}/alsa/version.h" _ALSA_VERSION_CONTENT)
+ string(REGEX REPLACE ".*SND_LIB_VERSION_STR.*\"(.*)\".*" "\\1" ${_result} ${_ALSA_VERSION_CONTENT})
+- else(ALSA_INCLUDES)
++ else(WITH_Alsa AND ALSA_INCLUDES)
+ message(STATUS "ALSA version not known. ALSA output will probably not work correctly.")
+- endif(ALSA_INCLUDES)
++ endif(WITH_Alsa AND ALSA_INCLUDES)
+ endmacro(ALSA_VERSION_STRING _result)
+
+
+ get_filename_component(_FIND_ALSA_MODULE_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
+ macro(ALSA_CONFIGURE_FILE _destFile)
++ if(WITH_Alsa)
+ check_include_files(sys/soundcard.h HAVE_SYS_SOUNDCARD_H)
+ check_include_files(machine/soundcard.h HAVE_MACHINE_SOUNDCARD_H)
+
+@@ -58,6 +65,7 @@
+ set(HAVE_SND_PCM_RESUME 1)
+ endif(ASOUND_HAS_SND_PCM_RESUME)
+
++ endif(WITH_Alsa)
+ configure_file(${_FIND_ALSA_MODULE_DIR}/config-alsa.h.cmake ${_destFile})
+ endmacro(ALSA_CONFIGURE_FILE _destFile)
+
diff --git a/kde-base/kdelibs/kdelibs-4.0.1.ebuild b/kde-base/kdelibs/kdelibs-4.0.1.ebuild
new file mode 100644
index 000000000000..08c481f46222
--- /dev/null
+++ b/kde-base/kdelibs/kdelibs-4.0.1.ebuild
@@ -0,0 +1,198 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-4.0.1.ebuild,v 1.1 2008/02/07 00:12:41 philantrop Exp $
+
+EAPI="1"
+
+inherit kde4-base
+
+DESCRIPTION="KDE libraries needed by all KDE programs."
+HOMEPAGE="http://www.kde.org/"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="3dnow acl alsa altivec bindist +bzip2 debug doc fam htmlhandbook jpeg2k
+kerberos mmx nls openexr opengl +semantic-desktop spell sse sse2 ssl test zeroconf"
+LICENSE="GPL-2 LGPL-2"
+RESTRICT="test"
+
+COMMONDEPEND="
+ !<kde-base/kdebase-3.5.7-r6
+ !<kde-base/kdebase-startkde-3.5.7-r1
+ !=kde-base/kdebase-3.5.8
+ !=kde-base/kdebase-3.5.8-r1
+ !=kde-base/kdebase-3.5.8-r2
+ !=kde-base/kdebase-startkde-3.5.8
+ >=app-misc/strigi-0.5.7
+ >=dev-libs/libxml2-2.6.6
+ >=dev-libs/libxslt-1.1.17
+ media-libs/fontconfig
+ >=media-libs/freetype-2
+ media-libs/giflib
+ media-libs/jpeg
+ media-libs/libpng
+ >=sys-apps/dbus-0.91
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXcursor
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXft
+ x11-libs/libXpm
+ x11-libs/libXrender
+ x11-libs/libXtst
+ >=x11-misc/shared-mime-info-0.20
+ acl? ( kernel_linux? ( sys-apps/acl ) )
+ alsa? ( >=media-libs/alsa-lib-1.0.14a )
+ fam? ( virtual/fam )
+ jpeg2k? ( media-libs/jasper )
+ kerberos? ( virtual/krb5 )
+ nls? ( virtual/libintl )
+ openexr? ( >=media-libs/openexr-1.2.2-r2 media-libs/ilmbase )
+ opengl? ( virtual/opengl )
+ >=dev-libs/libpcre-4.5
+ semantic-desktop? ( >=dev-libs/soprano-2.0.0 )
+ spell? ( app-text/aspell app-dicts/aspell-en app-text/enchant )
+ ssl? ( >=dev-libs/openssl-0.9.7d )
+ zeroconf? ( || ( net-dns/avahi
+ !bindist? ( net-misc/mDNSResponder ) ) )
+"
+
+DEPEND="${COMMONDEPEND}
+ doc? ( app-doc/doxygen )
+ sys-devel/gettext"
+
+RDEPEND="${COMMONDEPEND}
+ x11-apps/rgb
+ x11-apps/iceauth"
+
+# Patch to respect the sandbox when cmake tries to create symlinks,
+# or executes an external program that tries to write files.
+PATCHES="${FILESDIR}/e-tempdir.patch
+${FILESDIR}/${P}-X11-optional.patch
+${FILESDIR}/${P}-alsa-optional.patch"
+# Create CMake switches to make Xcomposite, Xinerama & Xscreensaver optional.
+
+pkg_setup() {
+ KDE4_BUILT_WITH_USE_CHECK="--missing true sys-apps/dbus X"
+ use alsa && KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
+ --missing true media-libs/alsa-lib midi"
+ if use zeroconf && has_version net-dns/avahi; then
+ KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
+ net-dns/avahi mdnsresponder-compat"
+ fi
+
+ kde4-base_pkg_setup
+}
+
+src_compile() {
+ if use zeroconf; then
+ if has_version net-dns/avahi; then
+ mycmakeargs="${mycmakeargs} -DWITH_Avahi=ON -DWITH_DNSSD=OFF"
+ elif has_version net-misc/mDNSResponder; then
+ mycmakeargs="${mycmakeargs} -DWITH_Avahi=OFF -DWITH_DNSSD=ON"
+ else
+ die "USE=\"zeroconf\" enabled but neither net-dns/avahi nor net-misc/mDNSResponder were found."
+ fi
+ fi
+
+ mycmakeargs="${mycmakeargs}
+ -DWITH_HSPELL=OFF
+ $(cmake-utils_has 3dnow X86_3DNOW)
+ $(cmake-utils_has altivec PPC_ALTIVEC)
+ $(cmake-utils_has mmx X86_MMX)
+ $(cmake-utils_has sse X86_SSE)
+ $(cmake-utils_has sse2 X86_SSE2)
+ $(cmake-utils_use_with acl ACL)
+ $(cmake-utils_use_with alsa Alsa)
+ $(cmake-utils_use_with bzip2 BZip2)
+ $(cmake-utils_use_with fam FAM)
+ $(cmake-utils_use_with jpeg2k Jasper)
+ $(cmake-utils_use_with kerberos GSSAPI)
+ $(cmake-utils_use_with nls Libintl)
+ $(cmake-utils_use_with openexr OpenEXR)
+ $(cmake-utils_use_with opengl OpenGL)
+ $(cmake-utils_use_with semantic-desktop Soprano)
+ $(cmake-utils_use_with spell ASPELL)
+ $(cmake-utils_use_with spell ENCHANT)
+ $(cmake-utils_use_with ssl OpenSSL)
+ "
+
+ kde4-base_src_compile
+
+ # The building of apidox is not managed anymore by the build system
+ if use doc; then
+ einfo "Building API documentation"
+ cd "${S}"/doc/api/
+ ./doxygen.sh "${S}" || die "APIDOX generation failed"
+ fi
+}
+
+src_install() {
+ kde4-base_src_install
+
+ if use doc; then
+ einfo "Installing API documentation. This could take a bit of time."
+ cd "${S}"/doc/api/
+ docinto /HTML/en/kdelibs-apidox
+ dohtml -r ${P}-apidocs/* || die "Install phase of KDE4 API Documentation failed"
+ fi
+
+ dodir /etc/env.d
+ dodir /etc/revdep-rebuild
+
+ # List all the multilib libdirs
+ local _libdir _libdirs
+ for _libdir in $(get_all_libdirs); do
+ _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
+ done
+ _libdirs=${_libdirs#:}
+
+ cat <<-EOF > "${T}"/44kdepaths-${SLOT} # number goes down with version bump
+ PATH="${PREFIX}/bin"
+ ROOTPATH="${PREFIX}/sbin:${PREFIX}/bin"
+ LDPATH="${_libdirs}"
+ MANPATH="${PREFIX}/share/man"
+ CONFIG_PROTECT="${PREFIX}/share/config ${PREFIX}/env ${PREFIX}/shutdown /usr/share/config"
+ KDEDIRS="/usr:/usr/local:${PREFIX}"
+ #KDE_IS_PRELINKED=1
+ XDG_DATA_DIRS="/usr/share:${PREFIX}/share:/usr/local/share"
+ COLON_SEPARATED="XDG_DATA_DIRS"
+ EOF
+ doenvd "${T}"/44kdepaths-${SLOT}
+
+ # make sure 'source /etc/profile' doesn't hose the PATH
+ dodir /etc/profile.d
+ cat <<-'EOF' > "${D}"/etc/profile.d/44kdereorderpaths-${SLOT}.sh
+ if [ -n "${KDEDIR}" ]; then
+ export PATH=${KDEDIR}/bin:$(echo ${PATH} | sed "s#${KDEDIR}/s\?bin:##g")
+ export ROOTPATH=${KDEDIR}/sbin:${KDEDIR}/bin:$(echo ${PATH} | sed "s#${KDEDIR}/s\?bin:##g")
+ fi
+ EOF
+
+ cat <<-EOF > "${D}/etc/revdep-rebuild/50-kde-${SLOT}"
+ SEARCH_DIRS="${PREFIX}/bin ${PREFIX}/lib*"
+ EOF
+}
+
+src_test() {
+ # FIXME: Disable kate tests
+ mycmakeargs="${mycmakeargs}
+ -DKHTML_BUILD_TESTREGRESSION=ON"
+ kde4-base_src_test
+}
+
+pkg_postinst() {
+ if use zeroconf; then
+ echo
+ elog "To make zeroconf support available in KDE make sure that the 'mdnsd' daemon"
+ elog "is running. Make sure also that multicast dns lookups are enabled by editing"
+ elog "the 'hosts:' line in /etc/nsswitch.conf to include 'mdns', e.g.:"
+ elog " hosts: files mdns dns"
+ echo
+ fi
+
+ kde4-base_pkg_postinst
+}