# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/eclass/kde-i18n.eclass,v 1.44 2003/02/22 08:36:54 carpaski Exp $ # # Author Dan Armak inherit kde ECLASS=kde-i18n INHERITED="$INHERITED $ECLASS" S=${WORKDIR}/${PN} DESCRIPTION="KDE ${PV} - i18n: ${PN}" HOMEPAGE="http://www.kde.org/" LICENSE="GPL-2" SLOT="$KDEMAJORVER.$KDEMINORVER" need-kde ${PV} # RPV and RP for Real P and PV case "$PV" in 3.1_beta1) RPV=3.0.7;; 3.1_beta2) RPV=3.0.8;; 3.1_rc1) RPV=3.0.9;; 3.1_rc2) RPV=3.0.98;; 3.1_rc5) RPV=3.1rc5;; 3.1_rc6) RPV=3.1rc6;; *) RPV=$PV;; esac RP="$PN-$RPV" case "$PV" in 2.2.2) SRC_PATH="Attic/${PV}/src/${P}.tar.bz2" KEYWORDS="x86";; 3.1_*) SRC_PATH="unstable/kde-${PV//_/-}/src/kde-i18n/${RP}.tar.bz2" KEYWORDS="~x86 ~ppc";; 3.0.5a) SRC_PATH="stable/${PV}/src/kde-i18n/${PN}-${PV/a/}.tar.bz2" KEYWORDS="x86 ppc";; 3*) SRC_PATH="stable/${PV}/src/kde-i18n/${P}.tar.bz2" KEYWORDS="x86 ppc";; esac if [ "$PN" == "kde-i18n" ]; then SRC_PATH=${SRC_PATH/src\/kde-i18n\//src\//} S=${WORKDIR}/${RP} fi SRC_URI="$SRC_URI mirror://kde/$SRC_PATH" kde-i18n_src_unpack() { base_src_unpack for dir in ${S} `cat ${S}/subdirs`; do if [ -f "$dir/docs/common/Makefile.in" ]; then # this enables destdir!=kdelibsdir cd $dir/docs/common cp Makefile.in Makefile.in.orig sed -e 's:(kde_htmldir)/en/common:(kde_libs_htmldir)/en/common:g' Makefile.in.orig > Makefile.in fi done } kde-i18n_src_compile() { kde_src_compile myconf myconf="$myconf --prefix=$KDEDIR" kde_src_compile configure make } EXPORT_FUNCTIONS src_unpack src_compile