# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-base/kde-l10n/kde-l10n-4.6.5.ebuild,v 1.2 2011/10/02 19:32:28 reavertm Exp $ EAPI="3" KDE_HANDBOOK="optional" inherit kde4-base DESCRIPTION="KDE internationalization package" HOMEPAGE="http://www.kde.org/" LICENSE="GPL-2" IUSE="" DEPEND=" sys-devel/gettext " RDEPEND="!= 3, or if not using .tar.xz archives: [[ -n ${A} ]] && unpack ${A} cd "${S}" # add all linguas to cmake if [[ -n ${A} ]]; then for LNG in ${LINGUAS}; do DIR="${PN}-${LNG}-${PV}" if [[ -d "${DIR}" ]] ; then echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt fi done fi } src_prepare() { # Upstream added kdepim-runtime translations by mistake and does not want to # make a new tarball, bug 366353 find "${S}" -name CMakeLists.txt -type f \ -exec sed -i -e 's:add_subdirectory(kdepim-runtime):# no kdepim-runtime:g' {} + kde4-base_src_prepare } src_configure() { mycmakeargs=( $(cmake-utils_use_build handbook docs) ) [[ -n ${A} ]] && kde4-base_src_configure } src_compile() { [[ -n ${A} ]] && kde4-base_src_compile } src_test() { [[ -n ${A} ]] && kde4-base_src_test } src_install() { [[ -n ${A} ]] && kde4-base_src_install }