commit:     ce969302196f7f415bcc683bca0d078024fec945
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Mon Jul  5 12:43:44 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Sep 25 15:58:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce969302

media-gfx/inkscape: sync live

- Add optional readline support,
- gtkspell dependency was changed to gspell and aspell is not required
  anymore,
- testing

Closes: https://bugs.gentoo.org/790269
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 media-gfx/inkscape/inkscape-9999.ebuild | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/media-gfx/inkscape/inkscape-9999.ebuild 
b/media-gfx/inkscape/inkscape-9999.ebuild
index 6912d66bb36..dc4abef7db6 100644
--- a/media-gfx/inkscape/inkscape-9999.ebuild
+++ b/media-gfx/inkscape/inkscape-9999.ebuild
@@ -16,7 +16,7 @@ LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
 KEYWORDS=""
 IUSE="cdr dbus dia exif graphicsmagick imagemagick inkjar jemalloc jpeg lcms
-openmp postscript spell static-libs svg2 visio wpg"
+openmp postscript readline spell static-libs svg2 test visio wpg"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
@@ -67,10 +67,8 @@ COMMON_DEPEND="${PYTHON_DEPS}
        jemalloc? ( dev-libs/jemalloc )
        jpeg? ( virtual/jpeg:0 )
        lcms? ( media-libs/lcms:2 )
-       spell? (
-               app-text/aspell
-               app-text/gtkspell:3
-       )
+       readline? ( sys-libs/readline:= )
+       spell? ( app-text/gspell )
        visio? (
                app-text/libwpg:0.3
                dev-libs/librevenge
@@ -94,9 +92,10 @@ RDEPEND="${COMMON_DEPEND}
 "
 DEPEND="${COMMON_DEPEND}
        >=dev-libs/boost-1.65
+       test? ( dev-cpp/gtest )
 "
 
-RESTRICT="test"
+RESTRICT="!test? ( test )"
 
 S="${WORKDIR}/${MY_P}"
 
@@ -121,10 +120,13 @@ src_configure() {
                -DENABLE_POPPLER=ON
                -DENABLE_POPPLER_CAIRO=ON
                -DWITH_PROFILING=OFF
+               -DBUILD_TESTING=$(usex test)
                -DWITH_LIBCDR=$(usex cdr)
                -DWITH_DBUS=$(usex dbus)
                -DWITH_IMAGE_MAGICK=$(usex imagemagick $(usex !graphicsmagick)) 
# requires ImageMagick 6, only IM must be enabled
                -DWITH_GRAPHICS_MAGICK=$(usex graphicsmagick $(usex 
imagemagick)) # both must be enabled to use GraphicsMagick
+               -DWITH_GNU_READLINE=$(usex readline)
+               -DWITH_GSPELL=$(usex spell)
                -DWITH_JEMALLOC=$(usex jemalloc)
                -DENABLE_LCMS=$(usex lcms)
                -DWITH_OPENMP=$(usex openmp)
@@ -156,3 +158,7 @@ src_install() {
        # Empty directory causes sandbox issues, see bug #761915
        rm -r "${ED}/usr/share/inkscape/fonts" || die "Failed to remove fonts 
directory."
 }
+
+src_test() {
+       cmake_build -j1 check
+}

Reply via email to