commit:     343aa41ec2ce85c7b6905c1666e77a41d22276d4
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  7 08:06:01 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Nov  7 08:11:06 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=343aa41e

media-gfx/inkscape: Added BDEPEND and fixed some style issues

Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 media-gfx/inkscape/inkscape-1.0_beta1.ebuild | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/media-gfx/inkscape/inkscape-1.0_beta1.ebuild 
b/media-gfx/inkscape/inkscape-1.0_beta1.ebuild
index 1e150bf71bd..5084ffd08c6 100644
--- a/media-gfx/inkscape/inkscape-1.0_beta1.ebuild
+++ b/media-gfx/inkscape/inkscape-1.0_beta1.ebuild
@@ -21,7 +21,8 @@ KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
 IUSE="cdr dia dbus exif gnome graphicsmagick +imagemagick openmp postscript 
inkjar jpeg svg2 jemalloc"
 IUSE+=" lcms nls spell static-libs visio wpg"
 
-REQUIRED_USE="${PYTHON_REQUIRED_USE} ^^ ( imagemagick graphicsmagick )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+       ^^ ( imagemagick graphicsmagick )"
 
 COMMON_DEPEND="${PYTHON_DEPS}
        >=app-text/poppler-0.57.0:=[cairo]
@@ -86,6 +87,8 @@ RDEPEND="${COMMON_DEPEND}
 "
 DEPEND="${COMMON_DEPEND}
        >=dev-libs/boost-1.65
+"
+BDEPEND="
        dev-util/glib-utils
        >=dev-util/intltool-0.40
        >=sys-devel/gettext-0.17
@@ -118,13 +121,13 @@ src_configure() {
        # aliasing unsafe wrt #310393
        append-flags -fno-strict-aliasing
 
-mycmakeargs=(
+       mycmakeargs=(
        -DWITH_DBUS="$(usex dbus ON OFF)"   # Compile with support for DBus 
interface
        -DENABLE_LCMS="$(usex lcms ON OFF)"   # Compile with LCMS support
        -DWITH_SVG2="$(usex svg2 ON OFF)"   # Compile with support for new SVG2 
features
-#    -DWITH_LPETOOL   # Compile with LPE Tool and experimental LPEs enabled
+       #-DWITH_LPETOOL   # Compile with LPE Tool and experimental LPEs enabled
        -DWITH_OPENMP="$(usex openmp ON OFF)"   # Compile with OpenMP support
-#    -DWITH_PROFILING   # Turn on profiling
+       #-DWITH_PROFILING   # Turn on profiling
        -DBUILD_SHARED_LIBS="$(usex !static-libs ON OFF)"  # Compile libraries 
as shared and not static
        -DENABLE_POPPLER=ON   # Compile with support of libpoppler
        -DENABLE_POPPLER_CAIRO=ON   # Compile with support of libpoppler-cairo 
for rendering PDF preview (depends on ENABLE_POPPLER)
@@ -135,7 +138,7 @@ mycmakeargs=(
        -DWITH_LIBWPG="$(usex wpg ON OFF)"   # Compile with support of libwpg 
for WordPerfect Graphics
        -DWITH_NLS="$(usex nls ON OFF)"   # Compile with Native Language 
Support (using gettext)
        -DWITH_JEMALLOC="$(usex jemalloc ON OFF)"   # Compile with JEMALLOC 
support
-)
+       )
 
        cmake-utils_src_configure
 }
@@ -143,10 +146,10 @@ mycmakeargs=(
 src_install() {
        default
 
-       find "${ED}" -name "*.la" -delete || die
+       find "${ED}" -type f -name "*.la" -delete || die
 
        # No extensions are present in beta1
-       if [ -n $(find "${ED}"/usr/share/${PN}/extensions -mindepth 1) ]; then
+       if [[ -n $(find "${ED}"/usr/share/${PN}/extensions -mindepth 1) ]]; then
                python_optimize "${ED}"/usr/share/${PN}/extensions
        fi
 

Reply via email to