public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kde-l10n/
Date: Fri,  8 Jun 2012 20:17:59 +0000 (UTC)	[thread overview]
Message-ID: <1339186453.d592b1f82e7f718698294a84ff7e49db692fccf9.jmbsvicetto@gentoo> (raw)

commit:     d592b1f82e7f718698294a84ff7e49db692fccf9
Author:     Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  8 20:13:10 2012 +0000
Commit:     Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Fri Jun  8 20:14:13 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=d592b1f8

[kde-l10n] Fix 4.8.4 ebuild.

---
 kde-base/kde-l10n/kde-l10n-4.8.4.ebuild |  120 +++++++++++++------------------
 1 files changed, 50 insertions(+), 70 deletions(-)

diff --git a/kde-base/kde-l10n/kde-l10n-4.8.4.ebuild b/kde-base/kde-l10n/kde-l10n-4.8.4.ebuild
index c0fb3c0..b12302f 100644
--- a/kde-base/kde-l10n/kde-l10n-4.8.4.ebuild
+++ b/kde-base/kde-l10n/kde-l10n-4.8.4.ebuild
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 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.8.3.ebuild,v 1.4 2012/05/24 08:26:35 ago Exp $
 
 EAPI=4
 
@@ -10,100 +10,80 @@ DESCRIPTION="KDE internationalization package"
 HOMEPAGE="http://www.kde.org/"
 LICENSE="GPL-2"
 
-DEPEND=">=sys-devel/gettext-0.17"
-RDEPEND="${DEPEND}"
+DEPEND="
+	sys-devel/gettext
+"
+RDEPEND="!<kde-misc/konq-plugins-4.6"
 
 KEYWORDS="~amd64 ~arm ~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.xz::' -e 's:kde-l10n-::' |tr '\n' ' '
+MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB es et eu fa fi fr ga gl he
+hr hu ia id is it ja kk km ko lt lv nb nds nl nn pa pl pt pt_BR ro ru si sk sl
+sr sv tg th tr ug uk vi wa zh_CN zh_TW"
+
+URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
+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.xz )"
 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
+	[[ -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() {
-	# 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
+	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() {
-	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
 }



             reply	other threads:[~2012-06-08 20:18 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08 20:17 Jorge Manuel B. S. Vicetto [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-12-12 22:38 [gentoo-commits] proj/kde:master commit in: kde-base/kde-l10n/ Chris Reffett
2013-08-01  0:18 Johannes Huber
2013-06-13 20:17 Johannes Huber
2013-05-05 12:10 Johannes Huber
2013-02-01 21:34 Andreas Hüttel
2012-10-13 21:49 Johannes Huber
2012-08-20 13:55 Marc Schiffbauer
2012-08-18  9:57 Johannes Huber
2012-07-26 15:31 Johannes Huber
2012-06-22  9:52 Johannes Huber
2012-06-08 20:55 Alexey Shvetsov
2012-05-25 20:30 Alexey Shvetsov
2012-03-06 11:22 Johannes Huber
2012-03-06  2:21 Theo Chatzimichos
2012-01-04 21:58 Johannes Huber
2011-09-07 21:21 Alexey Shvetsov
2011-09-07 21:21 Alexey Shvetsov
2011-07-28 21:12 Andreas Hüttel
2011-07-28 13:04 Andreas Hüttel
2011-06-09 22:13 Andreas Hüttel
2011-05-30 20:56 Alexey Shvetsov
2011-04-11 19:00 Andreas K. Huettel
2011-02-26 16:33 Theo Chatzimichos

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=1339186453.d592b1f82e7f718698294a84ff7e49db692fccf9.jmbsvicetto@gentoo \
    --to=jmbsvicetto@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