You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-office/koffice-libs/koffice-libs-2.3.3-r1.ebuild

88 lines
1.8 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-libs/koffice-libs-2.3.3-r1.ebuild,v 1.4 2011/10/01 03:21:29 phajdan.jr Exp $
EAPI=3
KMNAME="koffice"
KMMODULE="libs"
OPENGL_REQUIRED="optional"
CPPUNIT_REQUIRED="optional"
inherit kde4-meta
DESCRIPTION="Shared KOffice libraries"
KEYWORDS="amd64 x86"
IUSE="crypt openexr reports"
RDEPEND="
>=app-office/koffice-data-${PV}:${SLOT}
dev-libs/libxml2
dev-libs/libxslt
dev-libs/soprano
$(add_kdebase_dep kdepimlibs)
media-libs/lcms:0
crypt? ( app-crypt/qca:2 )
openexr? ( media-libs/openexr )
opengl? ( media-libs/mesa )
!app-office/kchart
"
DEPEND="${RDEPEND}"
# doc? ( app-doc/doxygen )"
KMEXTRA="
doc/koffice/
doc/thesaurus/
filters/generic_wrapper/
filters/libkowmf/
filters/libmsooxml/
filters/xsltfilter/
filters/kchart/
filters/kformula/
interfaces/
kchart/
kformula/
kounavail/
plugins/
tools/
"
KMEXTRACTONLY="
KoConfig.h.cmake
doc/koffice.desktop
filters/
"
KMSAVELIBS="true"
RESTRICT=test
# bug 385025
src_configure() {
mycmakeargs=(
$(cmake-utils_use_with crypt QCA2)
$(cmake-utils_use_with opengl OpenGL)
$(cmake-utils_use_with openexr OpenEXR)
-DWITH_Spnav=OFF
-DBUILD_kchart=ON
-DBUILD_kformula=ON
$(cmake-utils_use_build reports koreport)
)
use crypt && \
mycmakeargs+=(-DQCA2_LIBRARIES=/usr/$(get_libdir)/qca2/libqca.so.2)
kde4-meta_src_configure
}
src_install() {
newdoc kounavail/README README.kounavail || die
kde4-meta_src_install
# this is already installed by koffice-data
rm -f "${D}/usr/include/config-opengl.h"
rm -f "${D}/usr/include/KoConfig.h"
# this is not useful and only leads to error messages, bug 381955
rm -f "${D}/usr/share/applications/kde4/koffice.desktop"
}