diff options
author | Pacho Ramos <pacho@gentoo.org> | 2016-05-29 12:29:31 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2016-05-29 14:40:20 +0200 |
commit | afb8ca12005e2feb220a4da850e0a98595e8450d (patch) | |
tree | a2e25e9d615361027dce39fe553d7947a7d085a9 /app-text | |
parent | app-backup/deja-dup: Version bump (diff) | |
download | gentoo-afb8ca12005e2feb220a4da850e0a98595e8450d.tar.gz gentoo-afb8ca12005e2feb220a4da850e0a98595e8450d.tar.bz2 gentoo-afb8ca12005e2feb220a4da850e0a98595e8450d.zip |
app-text/iso-codes: Version bump, ensure sort command always outputs the same (#580250)
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/iso-codes/Manifest | 1 | ||||
-rw-r--r-- | app-text/iso-codes/iso-codes-3.68.ebuild | 79 |
2 files changed, 80 insertions, 0 deletions
diff --git a/app-text/iso-codes/Manifest b/app-text/iso-codes/Manifest index 2b87bc6b0ba8..1282c176c8a5 100644 --- a/app-text/iso-codes/Manifest +++ b/app-text/iso-codes/Manifest @@ -3,3 +3,4 @@ DIST iso-codes-3.63.tar.xz 3773672 SHA256 60600e56952dc92b3a8cd8a7044348f7cfa35b DIST iso-codes-3.64.tar.xz 3733868 SHA256 5ef061381e37e9576760df1ad504d4bbc84c270da30512b2891baed9add70729 SHA512 fd0639b7279bd4a87b5fdf055f61d8e44fd1d48907d0eef1824cb68cc1af6108f04f6ab837cef17398b576cef9ff66b09b351eee76e1309270768259810228fb WHIRLPOOL 4f13253571ac16a4ffa68d228c3c9b347742fc2b38ba1f68fc6221826b07f6f108e9897dcd0dab496219b45129c14f96b3496ec5d450e39f7232f16e8b005105 DIST iso-codes-3.65.tar.xz 3732432 SHA256 834de5193c8489eedeaf6509457a9b13476702386ae1f3ed4f391a349d630320 SHA512 cf88397150b3014a4f5e4d709cbc1e00537c9289ea68d68ec9b24df6c7467fda3fe99fbeacd444837d614ae1df213816a3996a9e86aac400f9d92a0a3090f8ab WHIRLPOOL b506fea95bba3ecf40e9d1e4d5c26d4fd97e88203fdf1e931269642b42daca93b5b479b52a4e2807de4dc80b3233599394dc67f6762bf00caf5689a74fd36e4c DIST iso-codes-3.67.tar.xz 3586528 SHA256 603f51e0b5ebd762b66d9aa3bd0d9a33af1aaedae88caaaf196fcc5bb4abf00c SHA512 830f7e30636081f029447837e11e258905af12c88a01882d58c05b9b7756dbca4b4b3e3fc2b12a3d8e58b976fd79908264979aa4e6a37b35c3341e9d8e5c2ed0 WHIRLPOOL 9d9e279d98123168794a78984804e0216509649ec346998367ca5416e0e31ec04c5853861dae0b80ca030252f94874b91db771b6be4bb1480e1c29f0dc5c71df +DIST iso-codes-3.68.tar.xz 3448584 SHA256 5881cf7caa5adfffb14ade99138949324c28a277babe8d07dafbff521acef9d1 SHA512 77abd3437fe66635cf52dbe065def9ff229a4bce20eb1167ccc825c934db57b4acc8112f99bdca6313324d850549cd9ead7556e0540c2b4e80cad9715613cec2 WHIRLPOOL 5b905d4711ea5f3af29418829bcfbb94172336f548e125005a15f5e8963bee55f21d6c44542037d006bee06748db13f8a30b8474163c0bfa816dca9fa9e46ed5 diff --git a/app-text/iso-codes/iso-codes-3.68.ebuild b/app-text/iso-codes/iso-codes-3.68.ebuild new file mode 100644 index 000000000000..74ab0ccd24ad --- /dev/null +++ b/app-text/iso-codes/iso-codes-3.68.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PLOCALES="af am ar as ast az be bg bn bn_IN br bs byn ca crh cs cy da de dz el en eo es et eu fa fi fo fr ga gez gl gu haw he hi hr hu hy ia id is it ja ka kk km kn ko kok ku lt lv mi mk ml mn mr ms mt nb ne nl nn nso oc or pa pl ps pt pt_BR ro ru rw si sk sl so sq sr sr@latin sv sw ta te th ti tig tk tl tr tt tt@iqtelif ug uk ve vi wa wal wo xh zh_CN zh_HK zh_TW zu" + +inherit eutils l10n + +DESCRIPTION="ISO language, territory, currency, script codes and their translations" +HOMEPAGE="http://pkg-isocodes.alioth.debian.org/" +SRC_URI="http://pkg-isocodes.alioth.debian.org/downloads/${P}.tar.xz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" +IUSE="" + +RDEPEND="" +DEPEND=" + app-arch/xz-utils + sys-devel/gettext +" + +# This ebuild does not install any binaries. +RESTRICT="binchecks strip" + +# l10n_find_plocales_changes doesn't support multiple directories, +# so need to do the update scan ourselves. +check_existing_locales() { + local std loc all_locales=() + + ebegin "Looking for new locales" + for std in "${all_stds[@]}"; do + pushd "${std}" >/dev/null || die + for loc in *.po; do + all_locales+=( "${loc%.po}" ) + done + popd >/dev/null + done + + all_locales=$(echo $(printf '%s\n' "${all_locales[@]}" | LC_COLLATE=C sort -u)) + if [[ ${PLOCALES} != "${all_locales}" ]]; then + eend 1 + eerror "There are changes in locales! This ebuild should be updated to:" + eerror "PLOCALES=\"${all_locales}\"" + die "Update PLOCALES in the ebuild" + else + eend 0 + fi +} + +src_prepare() { + default + + local std loc mylinguas + local all_stds=( iso_15924 iso_3166-{1,2,3} iso_4217 iso_639-{2,3,5} ) + + check_existing_locales + + # Modify the Makefiles so they only install requested locales. + for std in "${all_stds[@]}"; do + einfo "Preparing ${std} ..." + pushd "${std}" >/dev/null || die + mylinguas=() + for loc in *.po; do + if use "linguas_${loc%.po}"; then + mylinguas+=( "${loc}" ) + fi + done + + sed \ + -e "/^pofiles =/s:=.*:= ${mylinguas[*]}:" \ + -e "/^mofiles =/s:=.*:= ${mylinguas[*]/%.po/.mo}:" \ + -i Makefile.am Makefile.in || die "sed in ${std} folder failed" + popd >/dev/null + done +} |