| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.58 2011/10/29 15:07:16 abcd Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.59 2011/12/18 00:00:45 dilfridge Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: kde4-meta.eclass |
5 | # @ECLASS: kde4-meta.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
| 8 | # @BLURB: Eclass for writing "split" KDE packages. |
8 | # @BLURB: Eclass for writing "split" KDE packages. |
| … | |
… | |
| 554 | if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then |
554 | if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then |
| 555 | # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. |
555 | # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. |
| 556 | sed -e '/startkde/s/^/#DONOTINSTALL /' \ |
556 | sed -e '/startkde/s/^/#DONOTINSTALL /' \ |
| 557 | -i CMakeLists.txt || die "${LINENO}: sed died in the kdebase-startkde collision prevention section" |
557 | -i CMakeLists.txt || die "${LINENO}: sed died in the kdebase-startkde collision prevention section" |
| 558 | fi |
558 | fi |
|
|
559 | # Remove workspace target prefix in order to get direct linking to workspace libs |
|
|
560 | sed -e '/set(KDE4WORKSPACE_TARGET_PREFIX/s/^/#OVERRIDE /' \ |
|
|
561 | -i CMakeLists.txt || die "${LINENO}: sed died in KDE4WORKSPACE_TARGET_PREFIX removal section" |
| 559 | # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 |
562 | # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 |
| 560 | if [[ ${PN} != libkworkspace ]]; then |
563 | if [[ ${PN} != libkworkspace ]]; then |
| 561 | sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ |
564 | sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ |
| 562 | -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace strip config install and fix EXPORT section" |
565 | -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace strip config install and fix EXPORT section" |
| 563 | fi |
566 | fi |