3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
6 |
PYTHON_COMPAT=( python3_{10..11} )
|
7 |
7 |
PYTHON_REQ_USE="xml(+)"
|
8 |
8 |
MY_P="${P/_/}"
|
9 |
9 |
inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1
|
... | ... | |
13 |
13 |
EGIT_REPO_URI="https://gitlab.com/inkscape/inkscape.git"
|
14 |
14 |
else
|
15 |
15 |
SRC_URI="https://media.inkscape.org/dl/resources/file/${P}.tar.xz"
|
16 |
|
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
|
|
16 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
17 |
17 |
fi
|
18 |
18 |
|
19 |
19 |
DESCRIPTION="SVG based generic vector-drawing program"
|
... | ... | |
21 |
21 |
|
22 |
22 |
LICENSE="GPL-2 LGPL-2.1"
|
23 |
23 |
SLOT="0"
|
24 |
|
IUSE="cdr dia exif graphicsmagick imagemagick inkjar jemalloc jpeg openmp postscript readline spell svg2 test visio wpg X"
|
|
24 |
IUSE="cdr dia exif graphicsmagick imagemagick inkjar jpeg openmp postscript readline sourceview spell svg2 test visio wpg X"
|
25 |
25 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
26 |
26 |
# Lots of test failures which need investigating, bug #871621
|
27 |
27 |
RESTRICT="!test? ( test ) test"
|
... | ... | |
39 |
39 |
dev-cpp/gtkmm:3.0
|
40 |
40 |
>=dev-cpp/pangomm-2.40:1.4
|
41 |
41 |
>=dev-libs/boehm-gc-7.1:=
|
42 |
|
dev-libs/boost:=
|
|
42 |
dev-libs/boost:=[stacktrace(-)]
|
43 |
43 |
dev-libs/double-conversion:=
|
44 |
44 |
>=dev-libs/glib-2.41
|
45 |
45 |
>=dev-libs/libsigc++-2.8:2
|
... | ... | |
47 |
47 |
>=dev-libs/libxslt-1.1.25
|
48 |
48 |
dev-libs/popt
|
49 |
49 |
media-gfx/potrace
|
|
50 |
media-libs/libepoxy
|
50 |
51 |
media-libs/fontconfig
|
51 |
52 |
media-libs/freetype:2
|
52 |
53 |
media-libs/lcms:2
|
... | ... | |
74 |
75 |
!graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
|
75 |
76 |
graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
|
76 |
77 |
)
|
77 |
|
jemalloc? ( dev-libs/jemalloc )
|
78 |
78 |
jpeg? ( media-libs/libjpeg-turbo:= )
|
79 |
79 |
readline? ( sys-libs/readline:= )
|
|
80 |
sourceview? ( x11-libs/gtksourceview:4 )
|
80 |
81 |
spell? ( app-text/gspell )
|
81 |
82 |
visio? (
|
82 |
83 |
app-text/libwpg:0.3
|
... | ... | |
105 |
106 |
|
106 |
107 |
S="${WORKDIR}/${MY_P}"
|
107 |
108 |
|
108 |
|
PATCHES=(
|
109 |
|
"${FILESDIR}"/${PN}-1.2.2-fix-compile.patch
|
110 |
|
)
|
111 |
|
|
112 |
109 |
pkg_pretend() {
|
113 |
110 |
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
114 |
111 |
}
|
... | ... | |
149 |
146 |
-DWITH_GRAPHICS_MAGICK=$(usex graphicsmagick $(usex imagemagick)) # both must be enabled to use GraphicsMagick
|
150 |
147 |
-DWITH_GNU_READLINE=$(usex readline)
|
151 |
148 |
-DWITH_GSPELL=$(usex spell)
|
152 |
|
-DWITH_JEMALLOC=$(usex jemalloc)
|
|
149 |
-DWITH_JEMALLOC=OFF
|
153 |
150 |
-DENABLE_LCMS=ON
|
154 |
151 |
-DWITH_OPENMP=$(usex openmp)
|
155 |
152 |
-DBUILD_SHARED_LIBS=ON
|
|
153 |
-DWITH_GSOURCEVIEW=$(usex sourceview)
|
156 |
154 |
-DWITH_SVG2=$(usex svg2)
|
157 |
155 |
-DWITH_LIBVISIO=$(usex visio)
|
158 |
156 |
-DWITH_LIBWPG=$(usex wpg)
|
... | ... | |
163 |
161 |
}
|
164 |
162 |
|
165 |
163 |
src_test() {
|
166 |
|
local myctestargs=(
|
|
164 |
CMAKE_SKIP_TESTS=(
|
167 |
165 |
# render_text*: needs patched Cairo / maybe upstream changes
|
168 |
166 |
# not yet in a release.
|
169 |
167 |
# test_lpe/test_lpe64: precision differences b/c of new GCC?
|
170 |
168 |
# cli_export-png-color-mode-gray-8_png_check_output: ditto?
|
171 |
|
-E "(render_test-use|render_test-glyph-y-pos|render_text-glyphs-combining|render_text-glyphs-vertical|render_test-rtl-vertical|test_lpe|test_lpe64|cli_export-png-color-mode-gray-8_png_check_output)"
|
|
169 |
render_test-use
|
|
170 |
render_test-glyph-y-pos
|
|
171 |
render_text-glyphs-combining
|
|
172 |
render_text-glyphs-vertical
|
|
173 |
render_test-rtl-vertical
|
|
174 |
test_lpe
|
|
175 |
test_lpe64
|
|
176 |
cli_export-png-color-mode-gray-8_png_check_output
|
172 |
177 |
)
|
173 |
178 |
|
|
179 |
# bug #871621
|
|
180 |
cmake_src_compile tests
|
174 |
181 |
cmake_src_test -j1
|
175 |
182 |
}
|
176 |
183 |
|