From: "Theo Chatzimichos" <tampakrap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kde-l10n/
Date: Sat, 26 Feb 2011 16:33:22 +0000 (UTC) [thread overview]
Message-ID: <6b20205b07e4eaa33f057066a9b025069eae3bbd.tampakrap@gentoo> (raw)
commit: 6b20205b07e4eaa33f057066a9b025069eae3bbd
Author: Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 26 16:39:37 2011 +0000
Commit: Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org>
CommitDate: Sat Feb 26 16:39:37 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=6b20205b
[kde-base/kde-l10n] Properly bump ebuild based on 4.6.0 one
---
kde-base/kde-l10n/kde-l10n-4.6.1.ebuild | 118 ++++++++++++-------------------
1 files changed, 45 insertions(+), 73 deletions(-)
diff --git a/kde-base/kde-l10n/kde-l10n-4.6.1.ebuild b/kde-base/kde-l10n/kde-l10n-4.6.1.ebuild
index b4ff58a..3c9c377 100644
--- a/kde-base/kde-l10n/kde-l10n-4.6.1.ebuild
+++ b/kde-base/kde-l10n/kde-l10n-4.6.1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-l10n/kde-l10n-4.6.0.ebuild,v 1.1 2011/01/26 20:28:22 alexxy Exp $
-EAPI=3
+EAPI="3"
inherit kde4-base
@@ -10,100 +10,72 @@ DESCRIPTION="KDE internationalization package"
HOMEPAGE="http://www.kde.org/"
LICENSE="GPL-2"
-DEPEND=">=sys-devel/gettext-0.17"
+DEPEND="
+ sys-devel/gettext
+"
RDEPEND=""
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
-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}"
+IUSE="+handbook"
+
+# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.bz2::' -e 's:kde-l10n-::' |tr '\n' ' '
+MY_LANGS="ar bg ca ca@valencia cs da de el en_GB es et eu fi fr ga gl gu he hi
+hr hu ia id is it ja kk km kn ko lt lv mai nb nds nl nn pa pl pt pt_BR ro ru sk
+sl sr sv th tr uk wa zh_CN zh_TW"
+
+URI_BASE="${SRC_URI/-${PV}.tar.bz2/}"
+SRC_URI=""
+
+for MY_LANG in ${MY_LANGS} ; do
+ IUSE="${IUSE} linguas_${MY_LANG}"
+ SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.bz2 )"
done
-S="${WORKDIR}"/${PN}
-
-pkg_setup() {
- local lng
- for lng in ${LINGUAS}; do
- enabled_linguas+=" ${lng}"
- done
- if [[ -z ${enabled_linguas} ]]; then
+
+S="${WORKDIR}"
+
+src_unpack() {
+ local LNG DIR
+ if [[ -z ${A} ]]; 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 "${MY_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() {
- # we dont want l10n for all playgraund stuff we need ti only for kde!
- for lng in ${enabled_linguas}; do
- rm -r "${S}/${lng}"/docs/extragear*
- rm -r "${S}/${lng}"/docs/playground*
- rm -r "${S}/${lng}"/docs/kdereview
- rm -r "${S}/${lng}"/docs/kdevelop
- rm -r "${S}/${lng}"/docs/koffice
- rm -r "${S}/${lng}"/messages/extragear*
- rm -r "${S}/${lng}"/messages/playground*
- rm -r "${S}/${lng}"/messages/kdereview
- rm -r "${S}/${lng}"/messages/koffice
- done
+ # For EAPI >= 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_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
+ mycmakeargs=(
+ $(cmake-utils_use_build handbook docs)
+ )
+ [[ -n ${A} ]] && kde4-base_src_configure
}
src_compile() {
- [[ -z ${enabled_linguas} ]] || kde4-base_src_compile
+ [[ -n ${A} ]] && kde4-base_src_compile
}
src_test() {
- [[ -z ${enabled_linguas} ]] || kde4-base_src_test
+ [[ -n ${A} ]] && kde4-base_src_test
}
src_install() {
- [[ -z ${enabled_linguas} ]] || kde4-base_src_install
+ [[ -n ${A} ]] && kde4-base_src_install
}
next reply other threads:[~2011-02-26 16:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-26 16:33 Theo Chatzimichos [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-04-11 19:00 [gentoo-commits] proj/kde:master commit in: kde-base/kde-l10n/ Andreas K. Huettel
2011-05-30 20:56 Alexey Shvetsov
2011-06-09 22:13 Andreas Hüttel
2011-07-28 13:04 Andreas Hüttel
2011-07-28 21:12 Andreas Hüttel
2011-09-07 21:21 Alexey Shvetsov
2011-09-07 21:21 Alexey Shvetsov
2012-01-04 21:58 Johannes Huber
2012-03-06 2:21 Theo Chatzimichos
2012-03-06 11:22 Johannes Huber
2012-05-25 20:30 Alexey Shvetsov
2012-06-08 20:17 Jorge Manuel B. S. Vicetto
2012-06-08 20:55 Alexey Shvetsov
2012-06-22 9:52 Johannes Huber
2012-07-26 15:31 Johannes Huber
2012-08-18 9:57 Johannes Huber
2012-08-20 13:55 Marc Schiffbauer
2012-10-13 21:49 Johannes Huber
2013-02-01 21:34 Andreas Hüttel
2013-05-05 12:10 Johannes Huber
2013-06-13 20:17 Johannes Huber
2013-08-01 0:18 Johannes Huber
2013-12-12 22:38 Chris Reffett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6b20205b07e4eaa33f057066a9b025069eae3bbd.tampakrap@gentoo \
--to=tampakrap@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox