app-office/scribus-9999: python-3, eapi7, qa fixes
authorMiroslav Šulc <fordfrog@gentoo.org>
Fri, 8 Nov 2019 10:41:53 +0000 (11:41 +0100)
committerMiroslav Šulc <fordfrog@gentoo.org>
Fri, 8 Nov 2019 10:42:26 +0000 (11:42 +0100)
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
app-office/scribus/scribus-9999.ebuild

index 06ff411dee8c363f0bb32f394df74e6c4dd85c84..27fa3c1b8ce5a7c2cb497d0a8b44d569c4515ca3 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python3_{6,7} )
 PYTHON_REQ_USE="tk?"
 CMAKE_MAKEFILE_GENERATOR=ninja
 
@@ -181,22 +181,22 @@ src_install() {
        for _lang in ${IUSE_L10N}; do
                lang=$(map_lang ${_lang})
                if ! use l10n_${lang}; then
-                       safe_delete "${ED%/}"/usr/share/man/${_lang}
+                       safe_delete "${ED}"/usr/share/man/${_lang}
                fi
        done
 
        if ! use scripts; then
-               rm "${ED%/}"/usr/share/scribus/scripts/*.py || die
+               rm "${ED}"/usr/share/scribus/scripts/*.py || die
        elif ! use tk; then
-               rm "${ED%/}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die
+               rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die
        fi
 
        use scripts && \
-               python_fix_shebang "${ED%/}"/usr/share/scribus/scripts && \
-               python_optimize "${ED%/}"/usr/share/scribus/scripts
+               python_fix_shebang "${ED}"/usr/share/scribus/scripts && \
+               python_optimize "${ED}"/usr/share/scribus/scripts
 
-       mv "${ED%/}"/usr/share/doc/${PF}/{en,html} || die
-       ln -sf html "${ED%/}"/usr/share/doc/${PF}/en || die
+       mv "${ED}"/usr/share/doc/${PF}/{en,html} || die
+       ln -sf html "${ED}"/usr/share/doc/${PF}/en || die
        cat >> "${T}"/COPYING <<- EOF || die
        ${PN} is licensed under the "${LICENSE}".
        Please visit https://www.gnu.org/licenses/gpl-2.0.html for the complete license text.