diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-04-13 21:24:26 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-04-13 21:25:16 -0400 |
commit | afd1d443ac4ddd72f265a58cf873c010701e2cc2 (patch) | |
tree | e53ae1362e1a0c0bc13c447499120360bd6ce825 | |
parent | www-client/chromium: stable channel bump (50.0.2661.75) (diff) | |
download | gentoo-afd1d443ac4ddd72f265a58cf873c010701e2cc2.tar.gz gentoo-afd1d443ac4ddd72f265a58cf873c010701e2cc2.tar.bz2 gentoo-afd1d443ac4ddd72f265a58cf873c010701e2cc2.zip |
app-text/iso-codes: version bump to 3.67
-rw-r--r-- | app-text/iso-codes/Manifest | 1 | ||||
-rw-r--r-- | app-text/iso-codes/iso-codes-3.67.ebuild | 77 |
2 files changed, 78 insertions, 0 deletions
diff --git a/app-text/iso-codes/Manifest b/app-text/iso-codes/Manifest index 1b3ab858eeae..2b87bc6b0ba8 100644 --- a/app-text/iso-codes/Manifest +++ b/app-text/iso-codes/Manifest @@ -2,3 +2,4 @@ DIST iso-codes-3.61.tar.xz 3772736 SHA256 a79bf119afdc20feef12965f26f9d978688190 DIST iso-codes-3.63.tar.xz 3773672 SHA256 60600e56952dc92b3a8cd8a7044348f7cfa35be528bab2491c3c18582fb5277f SHA512 31b5142611e2050a9bfb95cd12d962b8cbe01824f1202e70ca40d9cd178a5fd17557eac3fcc59dd0b94baf2656caeef09c50332cd2a8d0e1bb14c82c154e06ae WHIRLPOOL bbe3c5474ba3fc22243a9b6bea9c6b43dccd5a2230ee59b07e4484e06ccba4be977dfa1e16014b18d4cae5393a50099e3a12b13747e9970c4e605df8b4e002be 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 diff --git a/app-text/iso-codes/iso-codes-3.67.ebuild b/app-text/iso-codes/iso-codes-3.67.ebuild new file mode 100644 index 000000000000..652e1f6938dc --- /dev/null +++ b/app-text/iso-codes/iso-codes-3.67.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +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[@]}" | 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() { + 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 +} |