# 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.7.1.ebuild,v 1.1 2011/09/07 20:13:40 alexxy Exp $ EAPI="3" inherit kde4-base DESCRIPTION="KDE internationalization package" HOMEPAGE="http://www.kde.org/" LICENSE="GPL-2" 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() { find "${S}" -name CMakeLists.txt -type f \ -exec sed -i -e 's:^ *add_subdirectory( *kdepim-runtime *):# no kdepim-runtime:g' {} + find "${S}" -name CMakeLists.txt -type f \ -exec sed -i -e 's:^ *add_subdirectory( *kdepim *):# no kdepim: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 }