diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-03-25 17:42:33 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-03-25 17:58:00 +0100 |
commit | 2f6c8f4b9154c9bcb6fde89d5113adba6f192e45 (patch) | |
tree | 57ce485ea93a9f55edd365e497d7dc6502157d52 /kde-apps/kde4-l10n | |
parent | dev-libs/capstone: drop old (diff) | |
download | gentoo-2f6c8f4b9154c9bcb6fde89d5113adba6f192e45.tar.gz gentoo-2f6c8f4b9154c9bcb6fde89d5113adba6f192e45.tar.bz2 gentoo-2f6c8f4b9154c9bcb6fde89d5113adba6f192e45.zip |
kde-apps/kde4-l10n: Fix file collision w/ kde-plasma/plasma-desktop-5.9.4
Reported-by: Sabayon
Also, fix kde-l10n-wa tarball manifest.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'kde-apps/kde4-l10n')
-rw-r--r-- | kde-apps/kde4-l10n/files/kde4-l10n-16.12.3-remove-dirs | 26 | ||||
-rw-r--r-- | kde-apps/kde4-l10n/kde4-l10n-16.12.3-r1.ebuild | 114 |
2 files changed, 140 insertions, 0 deletions
diff --git a/kde-apps/kde4-l10n/files/kde4-l10n-16.12.3-remove-dirs b/kde-apps/kde4-l10n/files/kde4-l10n-16.12.3-remove-dirs new file mode 100644 index 000000000000..c1827c7aee83 --- /dev/null +++ b/kde-apps/kde4-l10n/files/kde4-l10n-16.12.3-remove-dirs @@ -0,0 +1,26 @@ +# Disable any subdirectories listed here. Comments are ignored +# First argument: parent directory +# Second argument: which subdirectory to disable in CMakeLists.txt +# kde-l10n 5 +docs/kde-runtime glossary +docs/kde-runtime khelpcenter +docs/kdesdk umbrello +scripts kdeedu +# Plasma 5 +docs/kde-runtime fundamentals +docs/kde-runtime kdesu +docs/kde-runtime khelpcenter +docs/kde-runtime knetattach +docs/kde-runtime onlinehelp +docs/kde-runtime/kcontrol bookmarks +docs/kde-runtime/kcontrol cookies +docs/kde-runtime/kcontrol ebrowsing +docs/kde-runtime/kcontrol emoticons +docs/kde-runtime/kcontrol icons +docs/kde-runtime/kcontrol kcmcgi +docs/kde-runtime/kcontrol kcm_ssl +docs/kde-runtime/kcontrol nepomuk +docs/kde-runtime/kcontrol smb +docs/kde-runtime/kcontrol trash +docs/kde-runtime/kcontrol useragent +scripts kdebase diff --git a/kde-apps/kde4-l10n/kde4-l10n-16.12.3-r1.ebuild b/kde-apps/kde4-l10n/kde4-l10n-16.12.3-r1.ebuild new file mode 100644 index 000000000000..cc1656c3b50a --- /dev/null +++ b/kde-apps/kde4-l10n/kde4-l10n-16.12.3-r1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +KDE_AUTODEPS="false" +KDE_HANDBOOK="optional" +KDE_L10N=( + ar ast bg bs ca ca-valencia cs da de el en-GB eo es et eu fa fi fr ga gl 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 + sk sl sr sr-ijekavsk sr-Latn sr-Latn-ijekavsk sv tr ug uk wa zh-CN zh-TW +) +KMNAME="kde-l10n" +inherit kde5 + +DESCRIPTION="KDE legacy internationalization package" + +SLOT="4" +KEYWORDS="~amd64 ~arm ~x86" + +DEPEND=" + kde-frameworks/kdelibs:4 + sys-devel/gettext +" +RDEPEND=" + >=kde-apps/kde-l10n-${PV} +" + +REMOVE_DIRS="${FILESDIR}/${PN}-16.12.3-remove-dirs" +REMOVE_MSGS="${FILESDIR}/${PN}-16.11.90-remove-messages" + +IUSE="aqua test" # TODO: Drop aqua as soon as possible + +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 "${KDE_L10N[@]}" + elog + fi + [[ -n ${A} ]] && kde5_pkg_setup +} + +src_prepare() { + kde5_src_prepare + [[ -n ${A} ]] || return + + einfo "Removing file collisions with Plasma 5 and Applications" + [[ -f ${REMOVE_DIRS} ]] || die "Error: ${REMOVE_DIRS} not found!" + [[ -f ${REMOVE_MSGS} ]] || die "Error: ${REMOVE_MSGS} not found!" + + use test && einfo "Tests enabled: Listing LINGUAS causing file collisions" + + einfo "Directories..." + while read path; do + if use test ; then # build a report w/ L10N="*" to submit @upstream + local lngs + for lng in $(kde_l10n2lingua ${KDE_L10N[@]}); do + SDIR="${S}/${KMNAME}-${lng}-${PV}/4/${lng}" + if [[ -d "${SDIR}"/${path%\ *}/${path#*\ } ]] ; then + lngs+=" ${lng}" + fi + done + [[ -n "${lngs}" ]] && einfo "${path%\ *}/${path#*\ }${lngs}" + unset lngs + fi + if ls -U ./*/4/*/${path%\ *}/${path#*\ } > /dev/null 2>&1; then + sed -e "\:add_subdirectory(\s*${path#*\ }\s*): s:^:#:" \ + -i ./*/4/*/${path%\ *}/CMakeLists.txt || \ + die "Failed to comment out ${path}" + else + einfo "F: ${path}" # run with L10N="*" to cut down list + fi + done < <(grep -ve "^$\|^\s*\#" "${REMOVE_DIRS}") + einfo + einfo "Messages..." + while read path; do + if use test ; then # build a report w/ L10N="*" to submit @upstream + local lngs + for lng in $(kde_l10n2lingua ${KDE_L10N[@]}); do + SDIR="${S}/${KMNAME}-${lng}-${PV}/4/${lng}" + if [[ -e "${SDIR}"/messages/${path} ]] ; then + lngs+=" ${lng}" + fi + done + [[ -n "${lngs}" ]] && einfo "${path}${lngs}" + unset lngs + fi + if ls -U ./*/4/*/messages/${path} > /dev/null 2>&1; then + rm ./*/4/*/messages/${path} || die "Failed to remove ${path}" + else + einfo "F: ${path}" # run with L10N="*" to cut down list + fi + done < <(grep -ve "^$\|^\s*\#" "${REMOVE_MSGS}") +} + +src_configure() { + local mycmakeargs=( + -DBUILD_docs=$(usex handbook) + ) + [[ -n ${A} ]] && kde5_src_configure +} + +src_compile() { + [[ -n ${A} ]] && kde5_src_compile +} + +src_test() { :; } + +src_install() { + [[ -n ${A} ]] && kde5_src_install +} |