diff options
author | Ingmar Vanhassel <ingmar@gentoo.org> | 2008-02-19 00:02:01 +0000 |
---|---|---|
committer | Ingmar Vanhassel <ingmar@gentoo.org> | 2008-02-19 00:02:01 +0000 |
commit | 68afb6f65bde3fe616cd1b01c52fe95a171b9929 (patch) | |
tree | c1ffc5ee1d5bbb603b12db29372b916d0ea55c79 /kde-base/kdebase | |
parent | Remove monolithic KDE 4.0, bug 209586. (diff) | |
download | gentoo-2-68afb6f65bde3fe616cd1b01c52fe95a171b9929.tar.gz gentoo-2-68afb6f65bde3fe616cd1b01c52fe95a171b9929.tar.bz2 gentoo-2-68afb6f65bde3fe616cd1b01c52fe95a171b9929.zip |
Remove monolithic KDE 4.0, bug 209586.
(Portage version: 2.1.4.4)
Diffstat (limited to 'kde-base/kdebase')
-rw-r--r-- | kde-base/kdebase/ChangeLog | 7 | ||||
-rw-r--r-- | kde-base/kdebase/files/kdebase-4.0.0-opengl.patch | 33 | ||||
-rw-r--r-- | kde-base/kdebase/files/kdebase-4.0.0-pam-optional.patch | 29 | ||||
-rw-r--r-- | kde-base/kdebase/files/kdm-4.0.0-genkdmconf.patch | 53 | ||||
-rw-r--r-- | kde-base/kdebase/kdebase-4.0.0.ebuild | 314 |
5 files changed, 6 insertions, 430 deletions
diff --git a/kde-base/kdebase/ChangeLog b/kde-base/kdebase/ChangeLog index f55e4a4165d5..89cf0c2e6eb4 100644 --- a/kde-base/kdebase/ChangeLog +++ b/kde-base/kdebase/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for kde-base/kdebase # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/ChangeLog,v 1.431 2008/02/18 15:47:11 ingmar Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/ChangeLog,v 1.432 2008/02/19 00:02:00 ingmar Exp $ + + 19 Feb 2008; Ingmar Vanhassel <ingmar@gentoo.org> + -files/kdm-4.0.0-genkdmconf.patch, -files/kdebase-4.0.0-opengl.patch, + -files/kdebase-4.0.0-pam-optional.patch, -kdebase-4.0.0.ebuild: + Remove monolithic KDE 4.0, bug 209586. 18 Feb 2008; Ingmar Vanhassel <ingmar@gentoo.org> kdebase-3.5.8-r6.ebuild: Don't use bindnow-flags. Bug 210583. diff --git a/kde-base/kdebase/files/kdebase-4.0.0-opengl.patch b/kde-base/kdebase/files/kdebase-4.0.0-opengl.patch deleted file mode 100644 index 76d5c4ed6439..000000000000 --- a/kde-base/kdebase/files/kdebase-4.0.0-opengl.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- workspace/CMakeLists.txt (revision 767202) -+++ workspace/CMakeLists.txt (working copy) -@@ -16,8 +16,6 @@ - include (MacroLibrary) - include (KDE4Defaults) - --macro_optional_find_package(OpenGL) -- - include(ConfigureChecks.cmake) - configure_file(config-unix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-unix.h ) - configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h ) ---- workspace/kcontrol/screensaver/CMakeLists.txt (revision 766878) -+++ workspace/kcontrol/screensaver/CMakeLists.txt (working copy) -@@ -1,5 +1,7 @@ - -+if(WITH_OpenGL) - check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL) -+endif(WITH_OpenGL) - configure_file (config-screensaver.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-screensaver.h ) - - add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS) ---- workspace/krunner/lock/CMakeLists.txt (revision 766878) -+++ workspace/krunner/lock/CMakeLists.txt (working copy) -@@ -5,7 +5,9 @@ - ########### next target ############### - - check_library_exists(Xxf86misc XF86MiscSetGrabKeysState "" HAVE_XF86MISCSETGRABKEYSSTATE) -+if(WITH_OpenGL) - check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL) -+endif(WITH_OpenGL) - - configure_file(config-krunner-lock.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krunner-lock.h) - diff --git a/kde-base/kdebase/files/kdebase-4.0.0-pam-optional.patch b/kde-base/kdebase/files/kdebase-4.0.0-pam-optional.patch deleted file mode 100644 index 6fb54f05c547..000000000000 --- a/kde-base/kdebase/files/kdebase-4.0.0-pam-optional.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/kdebase/workspace/cmake/modules/FindPAM.cmake b/kdebase/workspace/cmake/modules/FindPAM.cmake -index 3499836..cd1c2bb 100644 ---- a/kdebase/workspace/cmake/modules/FindPAM.cmake -+++ b/kdebase/workspace/cmake/modules/FindPAM.cmake -@@ -5,6 +5,8 @@ - # PAM_INCLUDE_DIR - the pam include directory - # PAM_LIBRARIES - libpam library - -+if (WITH_PAM) -+ - if (PAM_INCLUDE_DIR AND PAM_LIBRARY) - # Already in cache, be silent - set(PAM_FIND_QUIETLY TRUE) -@@ -72,3 +74,5 @@ else (PAM_FOUND) - endif (PAM_FOUND) - - mark_as_advanced(PAM_INCLUDE_DIR PAM_LIBRARY DL_LIBRARY PAM_MESSAGE_CONST) -+ -+endif (WITH_PAM) -diff --git a/kdebase/workspace/cmake/modules/UnixAuth.cmake b/kdebase/workspace/cmake/modules/UnixAuth.cmake -index ed8ab9e..ce3bcc2 100644 ---- a/kdebase/workspace/cmake/modules/UnixAuth.cmake -+++ b/kdebase/workspace/cmake/modules/UnixAuth.cmake -@@ -1,4 +1,4 @@ --find_package(PAM) -+macro_optional_find_package(PAM) - - set(UNIXAUTH_LIBRARIES) - set(UNIXAUTH_INCLUDE_DIRS) diff --git a/kde-base/kdebase/files/kdm-4.0.0-genkdmconf.patch b/kde-base/kdebase/files/kdm-4.0.0-genkdmconf.patch deleted file mode 100644 index 0cdb0faf852f..000000000000 --- a/kde-base/kdebase/files/kdm-4.0.0-genkdmconf.patch +++ /dev/null @@ -1,53 +0,0 @@ - Added a patch to KDE/kdebase/workspace/kdm/kfrontend/genkdmconf.c, to NOT create directories. ---- - kdebase/workspace/kdm/kfrontend/genkdmconf.c | 31 -------------------------- - 1 files changed, 0 insertions(+), 31 deletions(-) - -diff --git a/kdebase/workspace/kdm/kfrontend/genkdmconf.c b/kdebase/workspace/kdm/kfrontend/genkdmconf.c -index 2d8343d..20aaf8f 100644 ---- a/kdebase/workspace/kdm/kfrontend/genkdmconf.c -+++ b/kdebase/workspace/kdm/kfrontend/genkdmconf.c -@@ -266,43 +266,12 @@ isTrue( const char *val ) - static int - mkpdirs( const char *name, const char *what ) - { -- char *mfname = mstrdup( name ); -- int i; -- struct stat st; -- -- for (i = 1; mfname[i]; i++) -- if (mfname[i] == '/') { -- mfname[i] = 0; -- if (stat( mfname, &st )) { -- if (mkdir( mfname, 0755 )) { -- fprintf( stderr, "Cannot create parent %s of %s directory %s: %s\n", -- mfname, what, name, strerror( errno ) ); -- free( mfname ); -- return False; -- } -- chmod( mfname, 0755 ); -- } -- mfname[i] = '/'; -- } -- free( mfname ); - return True; - } - - static int - mkdirp( const char *name, int mode, const char *what, int existok ) - { -- struct stat st; -- -- if (stat( name, &st )) { -- mkpdirs( name, what ); -- if (mkdir( name, mode )) { -- fprintf( stderr, "Cannot create %s directory %s: %s\n", -- what, name, strerror( errno ) ); -- return False; -- } -- chmod( name, mode ); -- return True; -- } - return existok; - } - diff --git a/kde-base/kdebase/kdebase-4.0.0.ebuild b/kde-base/kdebase/kdebase-4.0.0.ebuild deleted file mode 100644 index bb46dfe63eb9..000000000000 --- a/kde-base/kdebase/kdebase-4.0.0.ebuild +++ /dev/null @@ -1,314 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-4.0.0.ebuild,v 1.6 2008/02/01 05:54:19 zlin Exp $ - -EAPI="1" - -inherit multilib kde4-base - -DESCRIPTION="KDE base packages: the desktop, panel, window manager, konqueror..." -HOMEPAGE="http://www.kde.org/" -URI="${SRC_URI}" -SRC_URI="${URI} ${URI/${PN}/${PN}-runtime} ${URI/${PN}/${PN}-workspace}" - -KEYWORDS="~amd64 ~x86" -IUSE="3dnow altivec bluetooth +bzip2 captury debug ieee1394 htmlhandbook kerberos -lm_sensors mmx networkmanager pam openexr opengl samba sse sse2 -ssl test +usb +xcb xcomposite +xine xinerama" - -LICENSE="GPL-2 LGPL-2" -RESTRICT="test" - -COMMONDEPEND=" - !kde-base/kdebase-runtime - !kde-base/kdebase-workspace - >=app-misc/strigi-0.5.7 - dev-cpp/clucene - >=dev-libs/cyrus-sasl-2 - >=dev-libs/glib-2 - >=dev-libs/soprano-2.0.0 - >=kde-base/qimageblitz-0.0.4 - media-libs/fontconfig - >=media-libs/freetype-2 - media-libs/libpng - >=sys-apps/dbus-1.0.2 - >=sys-apps/hal-0.5.9 - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXcursor - x11-libs/libXdamage - x11-libs/libXdmcp - x11-libs/libXext - x11-libs/libXfixes - >=x11-libs/libxklavier-3.2 - >=x11-libs/libXrandr-1.2.1 - x11-libs/libXrender - x11-libs/libXres - x11-libs/libXt - x11-libs/libXtst - x11-libs/libXxf86misc - bzip2? ( app-arch/bzip2 ) - bluetooth? ( net-wireless/bluez-libs ) - captury? ( media-libs/libcaptury ) - ieee1394? ( sys-libs/libraw1394 ) - kerberos? ( virtual/krb5 ) - lm_sensors? ( sys-apps/lm_sensors ) - networkmanager? ( =net-misc/networkmanager-0.6* ) - samba? ( >=net-fs/samba-3.0.1 ) - openexr? ( >=media-libs/openexr-1.2.2-r2 ) - opengl? ( virtual/glu virtual/opengl ) - pam? ( >=kde-base/kdebase-pam-7 - sys-libs/pam ) - ssl? ( dev-libs/openssl ) - usb? ( >=dev-libs/libusb-0.1.10a ) - xcomposite? ( x11-libs/libXcomposite ) - xine? ( >=media-libs/xine-lib-1.1.9 - xcb? ( x11-libs/libxcb ) ) - xinerama? ( x11-libs/libXinerama ) -" - -DEPEND="${COMMONDEPEND} - x11-apps/bdftopcf - x11-proto/kbproto - x11-proto/randrproto - x11-proto/renderproto - x11-proto/xextproto - x11-proto/xf86miscproto - xcomposite? ( x11-proto/compositeproto - x11-proto/damageproto ) - xinerama? ( x11-proto/xineramaproto ) -" -RDEPEND="${COMMONDEPEND} - sys-apps/usbutils - sys-devel/gdb - >=www-misc/htdig-3.2.0_beta6-r1 - x11-apps/mkfontdir - x11-apps/setxkbmap - >=x11-apps/xinit-1.0.5-r2 - x11-apps/xmessage - x11-apps/xprop - >=x11-apps/xrandr-1.2.1 - x11-apps/xset - x11-apps/xsetroot - || ( x11-misc/xkeyboard-config - x11-misc/xkbdata ) - virtual/ssh - kernel_linux? ( - || ( >=sys-apps/eject-2.1.5 - sys-block/unieject ) ) -" - -PDEPEND=" - || ( kde-base/kdeartwork-iconthemes:${SLOT} - kde-base/kdeartwork:${SLOT} )" - -#IUSE="xscreensaver" -# -#COMMONDEPEND=" -# xscreensaver? ( x11-libs/libXScrnSaver ) -#" -#DEPEND="${COMMONDEPEND} -# x11-apps/xhost -# xscreensaver? ( x11-proto/scrnsaverproto )" - -PATCHES="${FILESDIR}/gentoo-startkde.patch - ${FILESDIR}/kdm-${PV}-genkdmconf.patch - ${FILESDIR}/${P}-pam-optional.patch - ${FILESDIR}/${P}-opengl.patch" - -pkg_setup() { - KDE4_BUILT_WITH_USE_CHECK="--missing false kde-base/kdelibs:${SLOT} alsa semantic-desktop - app-misc/strigi dbus qt4" - if use xine && use xcb; then - KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK} - media-libs/xine-lib xcb" - else - ewarn "You will _NOT_ have multimedia support unless you enable USE=\"xcb xine\"" - fi - - kde4-base_pkg_setup -} - -src_unpack() { - unpack ${A} - - mv "${WORKDIR}/${PN}-runtime-${PV}" "${S}/runtime" - mv "${WORKDIR}/${PN}-workspace-${PV}" "${S}/workspace" - - kde4-base_src_unpack -} - -src_compile() { - if ! use captury; then - sed -e 's:^PKGCONFIG..libcaptury:#DONOTFIND &:' \ - -i "${S}"/workspace/kwin/effects/CMakeLists.txt || \ - die "Making captury optional failed." - fi - - # Patch the startkde script to setup the environment for KDE 4.0 - # Add our KDEDIR - sed -e "s#@REPLACE_PREFIX@#${PREFIX}#" \ - -i "${S}/workspace/startkde.cmake" || die "Sed for PREFIX failed." - - # List all the multilib libdirs - local _libdir _libdirs - for _libdir in $(get_all_libdirs); do - _libdirs="${_libdirs}:${PREFIX}/${_libdir}" - done - _libdirs=${_libdirs#:} - - # Complete LDPATH - sed -e "s#@REPLACE_LIBS@#${_libdirs}#" \ - -i "${S}/workspace/startkde.cmake" || die "Sed for LDPATH failed." - - # Upstream moved kdesu to libexec first, then decided to move it back - # to /${PREFIX}/bin/ , so I'm doing that now already. - sed -e '/kdesu_executable/s:LIBEXEC_INSTALL_DIR:BIN_INSTALL_DIR:' \ - -i "${S}"/runtime/kdesu/kdesu/CMakeLists.txt || \ - die "Moving kdesu from libexec to bin failed." - - mycmakeargs="${mycmakeargs} - -DWITH_LibXKlavier=ON -DWITH_GLIB2=ON -DWITH_GObject=ON - $(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 bluetooth BlueZ) - $(cmake-utils_use_with bzip2 BZip2) - $(cmake-utils_use_with ieee1394 RAW1394) - $(use kerberos && echo "-DKDE4_KRB5AUTH=ON" || echo "-DKDE4_KRB5AUTH=OFF") - $(cmake-utils_use_with lm_sensors Sensors) - $(cmake-utils_use_with networkmanager NetworkManager) - $(cmake-utils_use_with openexr OpenEXR) - $(cmake-utils_use_with opengl OpenGL) - $(cmake-utils_use_with pam PAM) - $(cmake-utils_use_with samba Samba) - $(cmake-utils_use_with ssl OpenSSL) - $(cmake-utils_use_with usb USB) - $(cmake-utils_use_with xcomposite X11_Xcomposite) - $(cmake-utils_use_with xine Xine) - $(cmake-utils_use_with xinerama X11_Xinerama) - " - if use xine; then - mycmakeargs="${mycmakeargs} - $(cmake-utils_use_with xcb XCB)" - use xcb || mycmakeargs="${mycmakeargs} -DKDE4_DISABLE_MULTIMEDIA=ON" - fi - - # FIXME: there's no Xscreensaver argument at the moment - # FIXME There are more flags which currently aren't managed: - # KDE4_KDM_XCONSOLE -> Build KDM with built-in xconsole - Default OFF - # KDE4_KERBEROS4 -> Compile KDM with Kerberos v4 support - Default OFF - # - # KDE4_KRB5AUTH -> Use Sun's secure RPC for Xauth cookies in KDM (? - - # probably an error in cmake help) - Default OFF - # - # KDE4_RPCAUTH -> Use Sun's secure RPC for Xauth cookies in KDM - Default - # OFF - # - # KDE4_XDMCP -> Build KDM with XDMCP support - Default ON - # - # KONSOLE_GENERATE_LINEFONT -> Konsole: regenerate linefont file - Default - # OFF - # WITH_XKB -> Enable/Disable building of Konsole with support for XKB - - kde4-base_src_compile -} - -src_test() { - sed -i -e "/testkioarchive/s/^#DONOTTEST /" \ - "${S}"/runtime/kioslave/archive/tests/CMakeLists.txt - sed -i -e "/testtrash/s/^#DONOTTEST /" \ - "${S}"/runtime/kioslave/trash/tests/CMakeLists.txt - sed -i -e "/kurifiltertest/s/^#DONOTTEST /" \ - "${S}"/runtime/kurifilter-plugins/tests/CMakeLists.txt - sed -e "/konqpopupmenutest/s/^/#DONOTTEST /" \ - -i "${S}"/apps/lib/konq/tests/CMakeLists.txt - sed -e '/guitest/s/^/#DONOTTEST/' \ - -i "${S}"/workspace/libs/ksysguard/tests/CMakeLists.txt - sed -e "s/packagestructuretest//" \ - -i "${S}"/workspace/libs/plasma/tests/CMakeLists.txt - - kde4-base_src_test -} - -src_install() { - # This needs to be removed because it simply doesn't work and either - # causes a sandbox violation or just does nothing. - sed -i -e "/exec_program/d" "${S}"/workspace/kdm/kfrontend/CMakeLists.txt - - kde4-base_src_install - - dodir "${PREFIX}"/share/config/kdm - fperms 755 "${PREFIX}"/share/config/kdm - # We need to generate the kdm configuration here because it won't work - # in any other way. - "${WORKDIR}"/${PN}_build/workspace/kdm/kfrontend/genkdmconf --in "${D}/${PREFIX}/share/config/kdm" \ - --no-in-notice --face-src "${S}"/kdm/kfrontend/pics --no-old --no-backup - - # Customize the kdmrc configuration - sed -i -e "s:^.*SessionsDirs=.*$:#&\nSessionsDirs=/usr/share/xsessions:" \ - "${D}"/${PREFIX}/share/config/kdm/kdmrc || \ - die "Failed to set SessionsDirs correctly." - - # startup and shutdown scripts - insinto "${KDEDIR}/env" - doins "${FILESDIR}/agent-startup.sh" - - exeinto "${KDEDIR}/shutdown" - doexe "${FILESDIR}/agent-shutdown.sh" - - # freedesktop environment variables - cat <<-EOF > "${T}/xdg.sh" - export XDG_DATA_DIRS="${KDEDIR}/share:/usr/share" - export XDG_CONFIG_DIRS="${KDEDIR}/etc/xdg" - EOF - insinto ${KDEDIR}/env - doins "${T}/xdg.sh" - - # x11 session script - cat <<-EOF > "${T}/${SLOT}" - #!/bin/sh - exec ${KDEDIR}/bin/startkde - EOF - exeinto /etc/X11/Sessions - doexe "${T}/${SLOT}" - - # freedesktop compliant session script - sed -e "s:\${KDE4_BIN_INSTALL_DIR}:${KDEDIR}/bin:g;s:Name=KDE:Name=${SLOT}:" \ - "${S}/workspace/kdm/kfrontend/sessions/kde.desktop.cmake" > "${T}/${SLOT}.desktop" - insinto /usr/share/xsessions - doins "${T}/${SLOT}.desktop" -} - -pkg_postinst() { - kde4-base_pkg_postinst - - # set the default kdm face icon if it's not already set by the system admin - if [[ ! -e "${ROOT}${KDEDIR}/share/apps/kdm/faces/.default.face.icon" ]]; then - mkdir -p "${ROOT}${KDEDIR}/share/apps/kdm/faces" - cp "${ROOT}${KDEDIR}/share/apps/kdm/pics/users/default1.png" \ - "${ROOT}${KDEDIR}/share/apps/kdm/faces/.default.face.icon" - fi - if [[ ! -e "${ROOT}${KDEDIR}/share/apps/kdm/faces/root.face.icon" ]]; then - mkdir -p "${ROOT}${KDEDIR}/share/apps/kdm/faces" - cp "${ROOT}${KDEDIR}/share/apps/kdm/pics/users/root1.png" \ - "${ROOT}${KDEDIR}/share/apps/kdm/faces/root.face.icon" - fi - - mkdir -p "${ROOT}${KDEDIR}/share/templates/.source/emptydir" - - echo - elog "To enable gpg-agent and/or ssh-agent in KDE sessions," - elog "edit ${KDEDIR}/env/agent-startup.sh and" - elog "${KDEDIR}/shutdown/agent-shutdown.sh" - echo - elog "If you can't open new konqueror windows and get something like" - elog "'WARNING: Outdated database found' when starting konqueror in a console, run" - elog "kbuildsycoca as the user you're running KDE under." - elog "This is NOT a bug." - echo - elog "To use Java on webpages: emerge >=virtual/jre-1.4" - echo -} |