media-gfx/darktable: fix language file removal, bug #681146
authorMarkus Meier <maekke@gentoo.org>
Sat, 4 May 2019 04:08:13 +0000 (06:08 +0200)
committerMarkus Meier <maekke@gentoo.org>
Sat, 4 May 2019 04:08:13 +0000 (06:08 +0200)
don't try to remove translations when USE=nls is disabled

Signed-off-by: Markus Meier <maekke@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

media-gfx/darktable/darktable-2.6.1.ebuild
media-gfx/darktable/darktable-2.6.2.ebuild
media-gfx/darktable/darktable-9999.ebuild

index 9aad79d520ffea0776bf72c4d0c96fe64541eb31..6a8e3830f4d0332dc98905cc483c0cfde4a1a742 100644 (file)
@@ -111,11 +111,13 @@ src_install() {
        cmake-utils_src_install
        use doc && dodoc "${DISTDIR}"/${PN}-usermanual-${DOC_PV}.pdf
 
-       for lang in ${LANGS} ; do
-               if ! use l10n_${lang}; then
-                       rm -r "${ED}"/usr/share/locale/${lang/-/_} || die
-               fi
-       done
+       if use nls ; then
+               for lang in ${LANGS} ; do
+                       if ! use l10n_${lang}; then
+                               rm -r "${ED}"/usr/share/locale/${lang/-/_} || die
+                       fi
+               done
+       fi
 
        if use pax_kernel && use opencl ; then
                pax-mark Cm "${ED}"/usr/bin/${PN} || die
index 16cb27650ab5bd00e8e24fa5b83f4c1aaa816640..48d249ae7306803f2b1c3ed6e1d722f3671753f8 100644 (file)
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/darktable-org/${PN}/releases/download/release-${MY_P
 LICENSE="GPL-3 CC-BY-3.0"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-LANGS=" ca de es fi fr hu ja nb nl pl pt-BR ru sl"
+LANGS=" ca cs de es fi fr hu ja nb nl pl pt-BR ru sl"
 # TODO add lua once dev-lang/lua-5.2 is unmasked
 IUSE="colord cups cpu_flags_x86_sse3 doc flickr geolocation gnome-keyring gphoto2 graphicsmagick jpeg2k kwallet
 nls opencl openmp openexr pax_kernel webp
@@ -111,11 +111,13 @@ src_install() {
        cmake-utils_src_install
        use doc && dodoc "${DISTDIR}"/${PN}-usermanual-${DOC_PV}.pdf
 
-       for lang in ${LANGS} ; do
-               if ! use l10n_${lang}; then
-                       rm -r "${ED}"/usr/share/locale/${lang/-/_} || die
-               fi
-       done
+       if use nls ; then
+               for lang in ${LANGS} ; do
+                       if ! use l10n_${lang}; then
+                               rm -r "${ED}"/usr/share/locale/${lang/-/_} || die
+                       fi
+               done
+       fi
 
        if use pax_kernel && use opencl ; then
                pax-mark Cm "${ED}"/usr/bin/${PN} || die
index 891596c86e8fe61a1b24c91b33cb173c0e0c7848..6357db9016d57a751415052e6f11c0ec9888d333 100644 (file)
@@ -103,11 +103,13 @@ src_install() {
        cmake-utils_src_install
        use doc && dodoc "${DISTDIR}"/${PN}-usermanual-${DOC_PV}.pdf
 
-       for lang in ${LANGS} ; do
-               if ! use l10n_${lang}; then
-                       rm -r "${ED}"/usr/share/locale/${lang/-/_} || die
-               fi
-       done
+       if use nls ; then
+               for lang in ${LANGS} ; do
+                       if ! use l10n_${lang}; then
+                               rm -r "${ED}"/usr/share/locale/${lang/-/_} || die
+                       fi
+               done
+       fi
 
        if use pax_kernel && use opencl ; then
                pax-mark Cm "${ED}"/usr/bin/${PN} || die