summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2012-08-20 15:55:09 +0200
committerMarc Schiffbauer <mschiff@gentoo.org>2012-08-20 15:55:09 +0200
commit2f3ce92f860ee1de7750c8010691fdeb82f6a309 (patch)
tree117d7273b3ead53ee1905ef6de07de533e7c4cd6
parent915f40fc945bf657c02d69a474e19763df4351d8 (diff)
downloadkde-2f3ce92f860ee1de7750c8010691fdeb82f6a309.tar.gz
kde-2f3ce92f860ee1de7750c8010691fdeb82f6a309.tar.bz2
kde-2f3ce92f860ee1de7750c8010691fdeb82f6a309.zip
[kde-base/kdepim-l10n] Added live packages
-rw-r--r--kde-base/kdepim-l10n/kdepim-l10n-4.9.49.9999.ebuild102
-rw-r--r--kde-base/kdepim-l10n/kdepim-l10n-9999.ebuild102
-rw-r--r--kde-base/kdepim-l10n/metadata.xml5
3 files changed, 209 insertions, 0 deletions
diff --git a/kde-base/kdepim-l10n/kdepim-l10n-4.9.49.9999.ebuild b/kde-base/kdepim-l10n/kdepim-l10n-4.9.49.9999.ebuild
new file mode 100644
index 00000000000..ca5dd1216ec
--- /dev/null
+++ b/kde-base/kdepim-l10n/kdepim-l10n-4.9.49.9999.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit kde4-base
+
+DESCRIPTION="KDE internationalization package"
+HOMEPAGE="http://www.kde.org/"
+LICENSE="GPL-2"
+
+DEPEND=">=sys-devel/gettext-0.17"
+RDEPEND="${DEPEND}"
+
+KEYWORDS=""
+IUSE=""
+
+LANGS="af ar be bg bn bn_IN br ca cs csb cy da de el en_GB eo es et eu fa fi fr
+ fy ga gl gu he hi hr hsb hu hy is it ja ka kk km kn ko ku lb lt lv mk ml
+ ms mt nb nds ne nl nn nso oc pa pl pt pt_BR ro ru rw se sk sl sr sv ta te tg
+ th tr uk uz vi wa xh zh_CN zh_HK zh_TW"
+for LNG in ${LANGS}; do
+ IUSE="${IUSE} linguas_${LNG}"
+done
+S="${WORKDIR}"/${PN}
+
+pkg_setup() {
+ local lng
+ for lng in ${LINGUAS}; do
+ enabled_linguas+=" ${lng}"
+ done
+ if [[ -z ${enabled_linguas} ]]; then
+ elog
+ elog "You either have the LINGUAS variable unset, or it only"
+ elog "contains languages not supported by ${P}."
+ elog "You won't have any additional language support."
+ elog
+ elog "${P} supports these language codes:"
+ elog "${LANGS}"
+ elog
+ fi
+ kde4-base_pkg_setup
+}
+
+src_unpack() {
+ local lng
+
+ for lng in ${enabled_linguas}; do
+ ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/${lng}"
+ S="${WORKDIR}"/${PN}/${lng}
+ subversion_src_unpack
+ done
+ ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/scripts"
+ S="${WORKDIR}"/${PN}/scripts
+ subversion_src_unpack
+ S="${WORKDIR}"/${PN}
+ kde4-base_src_unpack
+}
+
+src_prepare() {
+ for lng in ${enabled_linguas}; do
+ # remove everything but the kdepim stuff
+ find "${S}/${lng}" -mindepth 2 -maxdepth 2 -type d ! -name "kdepim*" -exec rm -r {} +
+ rm "${S}/${lng}"/messages/entry.desktop
+ done
+}
+
+src_configure() {
+ local lng
+
+ if [[ ! -z ${enabled_linguas} ]]; then
+ cat <<-EOF > "${S}"/CMakeLists.txt
+ project(kde-l10n)
+
+ find_package(KDE4 REQUIRED)
+ include (KDE4Defaults)
+ include(MacroOptionalAddSubdirectory)
+
+ find_package(Gettext REQUIRED)
+
+ EOF
+
+ for lng in ${enabled_linguas} ; do
+ "${S}"/scripts/autogen.sh ${lng}
+ echo "add_subdirectory( ${lng} )" >> "${S}"/CMakeLists.txt
+ done
+ kde4-base_src_configure
+ fi
+}
+
+src_compile() {
+ [[ -z ${enabled_linguas} ]] || kde4-base_src_compile
+}
+
+src_test() {
+ [[ -z ${enabled_linguas} ]] || kde4-base_src_test
+}
+
+src_install() {
+ [[ -z ${enabled_linguas} ]] || kde4-base_src_install
+}
diff --git a/kde-base/kdepim-l10n/kdepim-l10n-9999.ebuild b/kde-base/kdepim-l10n/kdepim-l10n-9999.ebuild
new file mode 100644
index 00000000000..ca5dd1216ec
--- /dev/null
+++ b/kde-base/kdepim-l10n/kdepim-l10n-9999.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit kde4-base
+
+DESCRIPTION="KDE internationalization package"
+HOMEPAGE="http://www.kde.org/"
+LICENSE="GPL-2"
+
+DEPEND=">=sys-devel/gettext-0.17"
+RDEPEND="${DEPEND}"
+
+KEYWORDS=""
+IUSE=""
+
+LANGS="af ar be bg bn bn_IN br ca cs csb cy da de el en_GB eo es et eu fa fi fr
+ fy ga gl gu he hi hr hsb hu hy is it ja ka kk km kn ko ku lb lt lv mk ml
+ ms mt nb nds ne nl nn nso oc pa pl pt pt_BR ro ru rw se sk sl sr sv ta te tg
+ th tr uk uz vi wa xh zh_CN zh_HK zh_TW"
+for LNG in ${LANGS}; do
+ IUSE="${IUSE} linguas_${LNG}"
+done
+S="${WORKDIR}"/${PN}
+
+pkg_setup() {
+ local lng
+ for lng in ${LINGUAS}; do
+ enabled_linguas+=" ${lng}"
+ done
+ if [[ -z ${enabled_linguas} ]]; then
+ elog
+ elog "You either have the LINGUAS variable unset, or it only"
+ elog "contains languages not supported by ${P}."
+ elog "You won't have any additional language support."
+ elog
+ elog "${P} supports these language codes:"
+ elog "${LANGS}"
+ elog
+ fi
+ kde4-base_pkg_setup
+}
+
+src_unpack() {
+ local lng
+
+ for lng in ${enabled_linguas}; do
+ ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/${lng}"
+ S="${WORKDIR}"/${PN}/${lng}
+ subversion_src_unpack
+ done
+ ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/scripts"
+ S="${WORKDIR}"/${PN}/scripts
+ subversion_src_unpack
+ S="${WORKDIR}"/${PN}
+ kde4-base_src_unpack
+}
+
+src_prepare() {
+ for lng in ${enabled_linguas}; do
+ # remove everything but the kdepim stuff
+ find "${S}/${lng}" -mindepth 2 -maxdepth 2 -type d ! -name "kdepim*" -exec rm -r {} +
+ rm "${S}/${lng}"/messages/entry.desktop
+ done
+}
+
+src_configure() {
+ local lng
+
+ if [[ ! -z ${enabled_linguas} ]]; then
+ cat <<-EOF > "${S}"/CMakeLists.txt
+ project(kde-l10n)
+
+ find_package(KDE4 REQUIRED)
+ include (KDE4Defaults)
+ include(MacroOptionalAddSubdirectory)
+
+ find_package(Gettext REQUIRED)
+
+ EOF
+
+ for lng in ${enabled_linguas} ; do
+ "${S}"/scripts/autogen.sh ${lng}
+ echo "add_subdirectory( ${lng} )" >> "${S}"/CMakeLists.txt
+ done
+ kde4-base_src_configure
+ fi
+}
+
+src_compile() {
+ [[ -z ${enabled_linguas} ]] || kde4-base_src_compile
+}
+
+src_test() {
+ [[ -z ${enabled_linguas} ]] || kde4-base_src_test
+}
+
+src_install() {
+ [[ -z ${enabled_linguas} ]] || kde4-base_src_install
+}
diff --git a/kde-base/kdepim-l10n/metadata.xml b/kde-base/kdepim-l10n/metadata.xml
new file mode 100644
index 00000000000..8d1e86a9cef
--- /dev/null
+++ b/kde-base/kdepim-l10n/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kde</herd>
+</pkgmetadata>