From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/calligra-l10n/
Date: Sun, 25 Sep 2016 17:44:58 +0000 (UTC) [thread overview]
Message-ID: <1474825480.6643fcde974dbbba16ee34ebaaeff64b24e8b7eb.kensington@gentoo> (raw)
commit: 6643fcde974dbbba16ee34ebaaeff64b24e8b7eb
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sat Sep 24 23:06:03 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Sep 25 17:44:40 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6643fcde
app-office/calligra-l10n: Add CALLIGRA_FEATURES, EAPI 6
This enables e.g. krita to block calligra-l10n[calligra_features_krita]
for avoiding file collisions. Mostly copied from existing *-l10n ebuilds.
Gentoo-bug: 594772
Package-Manager: portage-2.3.0
.../calligra-l10n/calligra-l10n-2.9.11-r1.ebuild | 107 +++++++++++++++++++++
1 file changed, 107 insertions(+)
diff --git a/app-office/calligra-l10n/calligra-l10n-2.9.11-r1.ebuild b/app-office/calligra-l10n/calligra-l10n-2.9.11-r1.ebuild
new file mode 100644
index 00000000..5a17708
--- /dev/null
+++ b/app-office/calligra-l10n/calligra-l10n-2.9.11-r1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit kde4-base
+
+DESCRIPTION="Calligra localization package"
+HOMEPAGE="https://www.kde.org/"
+LICENSE="GPL-2"
+SLOT="4"
+
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc"
+
+DEPEND="sys-devel/gettext"
+RDEPEND="!app-office/koffice-l10n"
+
+CAL_FTS="braindump flow karbon kexi krita plan sheets stage words"
+for cal_ft in ${CAL_FTS}; do
+ IUSE+=" calligra_features_${cal_ft}"
+done
+unset cal_ft
+
+MY_LANGS="bs ca ca@valencia cs da de el en_GB es et fi fr gl hu it ja kk nb nl
+pl pt pt_BR ru sk sv tr uk zh_CN zh_TW"
+
+case ${PV} in
+ 2.[456789].[789]?)
+ # beta or rc releases
+ URI_BASE="mirror://kde/unstable/${PN/-l10n/}-${PV}/${PN}" ;;
+ 2.[456789].?|2.[456789].??)
+ # stable releases
+ URI_BASE="mirror://kde/stable/${PN/-l10n/}-${PV}/${PN}" ;;
+ *)
+ SRC_URI="" ;;
+esac
+
+SRC_URI=""
+
+for MY_LANG in ${MY_LANGS} ; do
+ IUSE="${IUSE} l10n_${MY_LANG/[@_]/-}"
+ SRC_URI="${SRC_URI} l10n_${MY_LANG/[@_]/-}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.xz )"
+done
+unset MY_LANG
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ if [[ -z ${A} ]]; then
+ elog
+ elog "None of the requested L10N are supported by ${P}."
+ elog
+ elog "${P} supports these language codes:"
+ elog "${MY_LANGS//[@_]/-}"
+ elog
+ fi
+}
+
+src_unpack() {
+ [[ -n ${A} ]] && unpack ${A}
+}
+
+src_prepare() {
+ cat <<-EOF > CMakeLists.txt || die
+project(${PN})
+$(printf "add_subdirectory( %s )\n" \
+ `find . -mindepth 1 -maxdepth 1 -type d | sed -e "s:^\./::"`)
+EOF
+
+ local cal_ft
+ for cal_ft in ${CAL_FTS}; do
+ if ! use calligra_features_${cal_ft} ; then
+ if ls -U ./*/messages/calligra/${cal_ft}*po > /dev/null 2>&1; then
+ rm ./*/messages/calligra/${cal_ft}*po || \
+ die "Failed to remove ${cal_ft} messages"
+ fi
+ if ls -U ./*/docs/calligra/${cal_ft} > /dev/null 2>&1; then
+ sed -e "\:add_subdirectory(\s*${cal_ft}\s*): s:^:#:" \
+ -i ./*/docs/calligra/CMakeLists.txt || \
+ die "Failed to comment out ${cal_ft} docs"
+ fi
+ fi
+ done
+
+ kde4-base_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DATA=ON
+ -DBUILD_DOC=$(usex doc)
+ -DBUILD_MESSAGES=ON
+ )
+ [[ -n ${A} ]] && kde4-base_src_configure
+}
+
+src_compile() {
+ [[ -n ${A} ]] && kde4-base_src_compile
+}
+
+src_test() { :; }
+
+src_install() {
+ [[ -n ${A} ]] && kde4-base_src_install
+}
next reply other threads:[~2016-09-25 17:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-25 17:44 Michael Palimaka [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-04-01 16:16 [gentoo-commits] repo/gentoo:master commit in: app-office/calligra-l10n/ Andreas Sturmlechner
2017-04-01 16:06 Agostino Sarubbo
2017-03-25 14:43 Agostino Sarubbo
2016-07-03 16:08 Michał Górny
2016-06-16 18:10 Michael Palimaka
2016-06-16 18:10 Michael Palimaka
2016-04-09 13:46 Agostino Sarubbo
2016-04-07 9:03 Michael Palimaka
2016-03-22 19:11 Johannes Huber
2016-02-12 10:22 Michael Palimaka
2015-12-30 14:13 Michael Palimaka
2015-09-03 13:08 Michael Palimaka
2015-08-19 15:21 Johannes Huber
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=1474825480.6643fcde974dbbba16ee34ebaaeff64b24e8b7eb.kensington@gentoo \
--to=kensington@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