From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/
Date: Mon, 28 Mar 2016 22:03:51 +0000 (UTC) [thread overview]
Message-ID: <1459202625.34056a95fa0636621ef6f7b85e398e21b4cdf1e9.vapier@gentoo> (raw)
commit: 34056a95fa0636621ef6f7b85e398e21b4cdf1e9
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 28 21:56:39 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Mar 28 22:03:45 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34056a95
app-text/dos2unix: respect LINGUAS via l10n.eclass
app-text/dos2unix/dos2unix-7.3.3.ebuild | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/app-text/dos2unix/dos2unix-7.3.3.ebuild b/app-text/dos2unix/dos2unix-7.3.3.ebuild
index 97a70f0..5d49f87 100644
--- a/app-text/dos2unix/dos2unix-7.3.3.ebuild
+++ b/app-text/dos2unix/dos2unix-7.3.3.ebuild
@@ -4,7 +4,9 @@
EAPI=6
-inherit toolchain-funcs
+PLOCALES="da de eo es fr hu ja nb nl pl pt_BR ru sr sv uk vi zh_CN zh_TW"
+
+inherit l10n toolchain-funcs
DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa"
HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html http://sourceforge.net/projects/dos2unix/"
@@ -27,9 +29,28 @@ DEPEND="
test? ( virtual/perl-Test-Simple )
dev-lang/perl"
+handle_locales() {
+ # Make sure locale list is kept up-to-date.
+ local detected sorted
+ detected=$(echo $(printf '%s\n' */*.po | sed -e 's:.*/::' -e 's:.po$::' | sort -u))
+ sorted=$(echo $(printf '%s\n' ${PLOCALES} | sort -u))
+ if [[ ${sorted} != "${detected}" ]] ; then
+ eerror "The ebuild needs to be kept in sync."
+ eerror "PLOCALES: ${sorted}"
+ eerror "po*/*.po: ${detected}"
+ die "sync PLOCALES"
+ fi
+
+ # Deal with selective install of locales.
+ rm_loc() { rm po*/$1.po || die; }
+ l10n_for_each_disabled_locale_do rm_loc
+}
+
src_prepare() {
default
+ handle_locales
+
sed \
-e '/^LDFLAGS/s|=|+=|' \
-e '/CFLAGS_OS \+=/d' \
next reply other threads:[~2016-03-28 22:03 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-28 22:03 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-07 20:09 [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/ Arthur Zamarin
2025-02-07 20:09 Arthur Zamarin
2024-11-15 10:50 Arthur Zamarin
2024-11-15 9:21 Arthur Zamarin
2024-11-15 9:21 Arthur Zamarin
2024-11-15 9:21 Arthur Zamarin
2024-11-15 9:20 Arthur Zamarin
2024-09-29 16:23 Arthur Zamarin
2024-09-29 16:23 Arthur Zamarin
2023-12-23 16:41 Arthur Zamarin
2023-12-23 15:50 Arthur Zamarin
2023-12-23 15:50 Arthur Zamarin
2023-12-23 15:47 Arthur Zamarin
2023-12-23 15:46 Arthur Zamarin
2023-12-23 15:46 Arthur Zamarin
2023-12-23 15:46 Arthur Zamarin
2023-08-31 5:26 Sam James
2023-08-27 14:24 David Seifert
2023-05-19 5:08 Sam James
2023-05-19 5:08 Sam James
2023-04-16 12:11 WANG Xuerui
2023-03-24 14:08 Arthur Zamarin
2023-03-24 14:01 Arthur Zamarin
2023-03-22 5:44 Sam James
2023-02-13 4:23 Sam James
2022-08-17 16:21 Matt Turner
2022-08-02 6:52 Agostino Sarubbo
2022-08-01 8:04 Agostino Sarubbo
2022-08-01 8:01 Agostino Sarubbo
2022-07-31 20:17 Arthur Zamarin
2022-07-31 20:16 Arthur Zamarin
2022-07-31 17:12 Arthur Zamarin
2022-07-31 17:12 Arthur Zamarin
2022-06-06 1:20 Sam James
2021-04-19 19:12 Sam James
2021-02-14 14:53 Sam James
2021-01-05 20:51 Sam James
2021-01-03 12:10 Sergei Trofimovich
2021-01-03 11:51 Sergei Trofimovich
2021-01-03 1:18 Sam James
2021-01-01 11:21 Sergei Trofimovich
2020-12-29 20:38 Sam James
2020-10-13 14:19 Lars Wendler
2019-11-04 8:49 Lars Wendler
2019-11-04 8:13 Lars Wendler
2019-11-04 8:13 Lars Wendler
2019-09-25 22:38 Lars Wendler
2017-12-17 15:55 Patrice Clement
2017-12-05 5:44 Markus Meier
2017-10-22 21:42 Tobias Klausmann
2017-10-14 17:20 Sergei Trofimovich
2017-10-13 14:31 Thomas Deutschmann
2017-10-13 0:13 Sergei Trofimovich
2017-10-12 19:23 Manuel Rüger
2017-10-11 14:41 Sergei Trofimovich
2017-10-11 7:47 Lars Wendler
2017-07-27 10:37 Fabian Groffen
2017-07-05 7:26 Lars Wendler
2017-04-12 11:10 Tim Harder
2017-01-14 13:14 Jeroen Roovers
2016-12-24 10:26 Agostino Sarubbo
2016-12-22 9:34 Agostino Sarubbo
2016-12-20 9:44 Agostino Sarubbo
2016-12-19 15:12 Agostino Sarubbo
2016-12-19 14:35 Agostino Sarubbo
2016-12-18 15:57 Agostino Sarubbo
2016-12-17 12:20 Aaron Bauman
2016-12-14 9:14 Tobias Klausmann
2016-08-15 14:15 Anthony G. Basile
2016-05-25 7:42 Lars Wendler
2016-05-25 7:42 Lars Wendler
2016-02-14 13:42 Lars Wendler
2016-02-14 13:42 Lars Wendler
2015-11-21 9:14 Lars Wendler
2015-11-12 11:21 Justin Lecher
2015-11-12 10:51 Agostino Sarubbo
2015-11-05 21:01 Markus Meier
2015-10-10 15:53 Mikle Kolyada
2015-09-30 22:17 Lars Wendler
2015-09-30 22:17 Lars Wendler
2015-09-28 15:30 Tobias Klausmann
2015-09-28 4:54 Jeroen Roovers
2015-09-27 5:18 Jeroen Roovers
2015-09-26 18:21 Mikle Kolyada
2015-09-25 14:29 Agostino Sarubbo
2015-09-25 4:19 Patrice Clement
2015-09-25 4:19 Patrice Clement
2015-08-24 10:03 Lars Wendler
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=1459202625.34056a95fa0636621ef6f7b85e398e21b4cdf1e9.vapier@gentoo \
--to=vapier@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