Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/kde4-l10n/
Date: Wed, 30 Mar 2016 12:40:44
Message-Id: 1459341600.f41d09b73ff700d30152820ee01d43c5cf988799.kensington@gentoo
1 commit: f41d09b73ff700d30152820ee01d43c5cf988799
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Wed Mar 30 08:33:58 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 12:40:00 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f41d09b7
7
8 kde-apps/kde4-l10n: Drop old
9
10 Package-Manager: portage-2.2.27
11
12 kde-apps/kde4-l10n/kde4-l10n-15.12.3.ebuild | 157 ----------------------------
13 1 file changed, 157 deletions(-)
14
15 diff --git a/kde-apps/kde4-l10n/kde4-l10n-15.12.3.ebuild b/kde-apps/kde4-l10n/kde4-l10n-15.12.3.ebuild
16 deleted file mode 100644
17 index 18a56dc..0000000
18 --- a/kde-apps/kde4-l10n/kde4-l10n-15.12.3.ebuild
19 +++ /dev/null
20 @@ -1,157 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=5
26 -
27 -KDE_HANDBOOK="optional"
28 -KMNAME="kde-l10n"
29 -inherit kde4-base
30 -
31 -DESCRIPTION="KDE internationalization package"
32 -HOMEPAGE="http://l10n.kde.org"
33 -
34 -DEPEND="
35 - sys-devel/gettext
36 -"
37 -RDEPEND="
38 - !<kde-apps/kde-l10n-${PV}
39 -"
40 -
41 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
42 -IUSE="minimal"
43 -
44 -REMOVE_DIRS="${FILESDIR}/${PN}-15.11.90-remove-dirs"
45 -REMOVE_MSGS="${FILESDIR}/${PN}-15.08.3-r1-remove-messages"
46 -
47 -LV="4.14.3"
48 -LEGACY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB es et eu fa fi fr ga gl
49 -he hi hr hu ia id is it ja kk km ko lt lv mr nb nds nl nn pa pl pt pt_BR ro ru
50 -sk sl sr sv tr ug uk wa zh_CN zh_TW"
51 -
52 -# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.xz::' -e 's:kde-l10n-::' |tr '\n' ' '
53 -MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB eo es et eu fa fi fr ga gl
54 -he hi hr hu ia id is it ja kk km ko lt lv mr nb nds nl nn pa pl pt pt_BR ro ru
55 -sk sl sr sv tr ug uk wa zh_CN zh_TW"
56 -
57 -URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
58 -LURI_BASE="mirror://kde/stable/${LV}/src/${KMNAME}"
59 -SRC_URI=""
60 -
61 -for MY_LANG in ${LEGACY_LANGS} ; do
62 - IUSE="${IUSE} linguas_${MY_LANG}"
63 - SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${LURI_BASE}/${KMNAME}-${MY_LANG}-${LV}.tar.xz )"
64 -done
65 -
66 -for MY_LANG in ${MY_LANGS} ; do
67 - IUSE="${IUSE} linguas_${MY_LANG}"
68 - SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/${KMNAME}-${MY_LANG}-${PV}.tar.xz )"
69 -done
70 -
71 -S="${WORKDIR}"
72 -
73 -src_unpack() {
74 - if [[ -z ${A} ]]; then
75 - elog
76 - elog "You either have the LINGUAS variable unset, or it only"
77 - elog "contains languages not supported by ${P}."
78 - elog "You won't have any additional language support."
79 - elog
80 - elog "${P} supports these language codes:"
81 - elog "${MY_LANGS}"
82 - elog
83 - fi
84 -
85 - [[ -n ${A} ]] && unpack ${A}
86 -}
87 -
88 -src_prepare() {
89 - local LNG DIR LDIR SDIR
90 - # add all linguas to cmake
91 - if [[ -n ${A} ]]; then
92 - for LNG in ${LINGUAS}; do
93 - DIR="${KMNAME}-${LNG}-${PV}"
94 - LDIR="${KMNAME}-${LNG}-${LV}"
95 - SDIR="${S}/${DIR}/4/${LNG}"
96 - if [[ -d "${DIR}" ]] ; then
97 - echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
98 -
99 - # Drop KF5-based part
100 - sed -e '/add_subdirectory(5)/ s/^/#/' -i "${S}"/${DIR}/CMakeLists.txt
101 -
102 - # Drop translations installed with plasma 5 and kde-apps 5 packages
103 - if use minimal; then
104 - einfo "${LNG}: Removing file conflicts"
105 - if [[ -d "${LDIR}" ]] ; then
106 - rm -rf "${LDIR}"
107 - fi
108 -
109 - einfo " directories..."
110 - while read path; do
111 - if [[ -n ${path} && -e "${SDIR}"/${path%\ *}/CMakeLists.txt ]] ; then
112 - sed -e ":${path#*\ }: s:^:#:"\
113 - -i "${SDIR}"/${path%\ *}/CMakeLists.txt
114 - fi
115 - done < <(grep -v "^#" "${REMOVE_DIRS}")
116 -
117 - einfo " messages..."
118 - for path in $(grep -v "^#" "${REMOVE_MSGS}") ; do
119 - rm -f "${SDIR}"/messages/${path}
120 - # Quirk for LINGUAS=sr variants
121 - if [[ ${LNG} = "sr" ]] ; then
122 - rm -f "${SDIR}"/${LNG}\@*/messages/${path} || die
123 - fi
124 - done
125 - else
126 - if [[ -d "${LDIR}" ]] ; then
127 - einfo "${LNG}: Adding legacy localisation"
128 - local dest_path
129 - # Step through directories alphabetically first
130 - for path in $(ls -R "${LDIR}" | grep ":$" | sed -e 's/:$//') ; do
131 - dest_path="${path/${LV}/${PV}/4/${LNG}}"
132 - if [[ ! -d "${dest_path}" ]] ; then
133 - einfo " $(basename ${dest_path}) subdirectory"\
134 - "added to $(basename $(dirname ${dest_path}))"
135 - mkdir "${dest_path}" || die "Failed creating ${dest_path}"
136 - echo "add_subdirectory($(basename ${dest_path}))" >> \
137 - $(dirname "${dest_path}")/CMakeLists.txt
138 - fi
139 - done
140 - einfo " merging legacy localisation..."
141 - for path in $(find "${LDIR}" -type f) ; do
142 - dest_path="${path/${LV}/${PV}/4/${LNG}}"
143 - cp -rn "${path}" "${dest_path}" || die "Failed copying ${path}"
144 - done
145 - # Disable kdepim
146 - for path in kdepim kdepimlibs kdepim-runtime ; do
147 - find "${SDIR}" -name CMakeLists.txt -type f -exec \
148 - sed -i -e "s:^ *add_subdirectory( *${path} *):# no ${path}:g" {} +
149 - done
150 - rm -rf "${LDIR}"
151 - fi
152 - fi
153 - fi
154 - done
155 - fi
156 -
157 - kde4-base_src_prepare
158 -}
159 -
160 -src_configure() {
161 - mycmakeargs=(
162 - $(cmake-utils_use_build handbook docs)
163 - )
164 - [[ -n ${A} ]] && kde4-base_src_configure
165 -}
166 -
167 -src_compile() {
168 - [[ -n ${A} ]] && kde4-base_src_compile
169 -}
170 -
171 -src_test() {
172 - [[ -n ${A} ]] && kde4-base_src_test
173 -}
174 -
175 -src_install() {
176 - [[ -n ${A} ]] && kde4-base_src_install
177 -}