Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/inkscape/
Date: Thu, 23 Apr 2020 19:16:33
Message-Id: 1587669383.dc819f47d4ca0e93da452194756ef15c240fb639.zlogene@gentoo
1 commit: dc819f47d4ca0e93da452194756ef15c240fb639
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 23 19:15:36 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 23 19:16:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc819f47
7
8 media-gfx/inkscape: Version bump (v1.0_rc1)
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 media-gfx/inkscape/Manifest | 1 +
14 media-gfx/inkscape/inkscape-1.0_rc1.ebuild | 160 +++++++++++++++++++++++++++++
15 2 files changed, 161 insertions(+)
16
17 diff --git a/media-gfx/inkscape/Manifest b/media-gfx/inkscape/Manifest
18 index e36ab94e6b0..0ac112b1794 100644
19 --- a/media-gfx/inkscape/Manifest
20 +++ b/media-gfx/inkscape/Manifest
21 @@ -1,2 +1,3 @@
22 DIST inkscape-0.92.4.tar.bz2 31929728 BLAKE2B 892bf4ed913019b27a9b8897e3ae32c44152163ded0eb345d59915ffdc9818d29f210de3294ef1b05601141185b5e3b10779778551b860f31e7df5c659492c77 SHA512 b9034605a79cd8aea808edf42e284819951ae1ea67778f0922f4c10224e94aca6c844acbc2294625773f0a7047d4e32ccdada876238a792a2c17db172c88e120
23 +DIST inkscape-1.0_rc1.tar.xz 31984596 BLAKE2B 7e4a3618522c7bc9bedba8bb2a846e1cbf40e23868f04548e67fa41b9f8f1e8f696af386c0698a43ae6f7033937e1a3d4e772518162f712468b614a5b4d3b4ad SHA512 13e14a6dad1e89e6edf7c0197c43506d127b2e5136a2d8d931ad5ea0671b65b3feed5baf2f631b1a4b8095f285c19ffe5170904c9ce5e3e484d00ca2f0800b89
24 DIST inkscape-1.0beta2_2019-12-03_2b71d25d45.tar.xz 39508392 BLAKE2B fd48f22439d1182aff1db5afd74870a6c1d291afb310fc9fa5036fa3c2547ead8c17f6cd67f77a56f655c56af8ffaa7a349b17166c7b18ef3ddf234aa6e57805 SHA512 029508d4867ac0890b2c9c4d274408f849a17e8a7978853df38543d94e7c08d33546a8a40fbcd940da1ba847f11e37ff2bafa285174b65d45ee5de59e907e78f
25
26 diff --git a/media-gfx/inkscape/inkscape-1.0_rc1.ebuild b/media-gfx/inkscape/inkscape-1.0_rc1.ebuild
27 new file mode 100644
28 index 00000000000..e6249b176dd
29 --- /dev/null
30 +++ b/media-gfx/inkscape/inkscape-1.0_rc1.ebuild
31 @@ -0,0 +1,160 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7,8} )
38 +PYTHON_REQ_USE="xml"
39 +
40 +RELEASE_SUFFIX="1.0rc1_2020-04-09_09960d6f05"
41 +
42 +inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1
43 +
44 +DESCRIPTION="SVG based generic vector-drawing program"
45 +HOMEPAGE="https://inkscape.org/"
46 +SRC_URI="https://dev.gentoo.org/~zlogene/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
47 +
48 +LICENSE="GPL-2 LGPL-2.1"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
51 +IUSE="cdr dbus dia exif graphicsmagick imagemagick inkjar jemalloc jpeg lcms nls
52 +openmp postscript spell static-libs svg2 visio wpg"
53 +
54 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
55 +
56 +BDEPEND="
57 + dev-util/glib-utils
58 + >=dev-util/intltool-0.40
59 + >=sys-devel/gettext-0.17
60 + virtual/pkgconfig
61 +"
62 +COMMON_DEPEND="${PYTHON_DEPS}
63 + >=app-text/poppler-0.57.0:=[cairo]
64 + >=dev-cpp/cairomm-1.12
65 + >=dev-cpp/glibmm-2.54.1
66 + dev-cpp/gtkmm:3.0
67 + >=dev-cpp/pangomm-2.40
68 + >=dev-libs/boehm-gc-7.1:=
69 + dev-libs/double-conversion:=
70 + >=dev-libs/glib-2.41
71 + >=dev-libs/libsigc++-2.8
72 + >=dev-libs/libxml2-2.7.4
73 + >=dev-libs/libxslt-1.1.25
74 + dev-libs/gdl:3
75 + dev-libs/popt
76 + media-gfx/potrace
77 + media-libs/fontconfig
78 + media-libs/freetype:2
79 + media-libs/libpng:0=
80 + net-libs/libsoup
81 + sci-libs/gsl:=
82 + x11-libs/libX11
83 + >=x11-libs/pango-1.37.2
84 + x11-libs/gtk+:3
85 + $(python_gen_cond_dep '
86 + dev-python/lxml[${PYTHON_MULTI_USEDEP}]
87 + media-gfx/scour[${PYTHON_MULTI_USEDEP}]
88 + ')
89 + cdr? (
90 + app-text/libwpg:0.3
91 + dev-libs/librevenge
92 + media-libs/libcdr
93 + )
94 + dbus? ( dev-libs/dbus-glib )
95 + exif? ( media-libs/libexif )
96 + imagemagick? (
97 + !graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
98 + graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
99 + )
100 + jemalloc? ( dev-libs/jemalloc )
101 + jpeg? ( virtual/jpeg:0 )
102 + lcms? ( media-libs/lcms:2 )
103 + spell? (
104 + app-text/aspell
105 + app-text/gtkspell:3
106 + )
107 + visio? (
108 + app-text/libwpg:0.3
109 + dev-libs/librevenge
110 + media-libs/libvisio
111 + )
112 + wpg? (
113 + app-text/libwpg:0.3
114 + dev-libs/librevenge
115 + )
116 +"
117 +# These only use executables provided by these packages
118 +# See share/extensions for more details. inkscape can tell you to
119 +# install these so we could of course just not depend on those and rely
120 +# on that.
121 +RDEPEND="${COMMON_DEPEND}
122 + $(python_gen_cond_dep '
123 + dev-python/numpy[${PYTHON_MULTI_USEDEP}]
124 + ')
125 + dia? ( app-office/dia )
126 + postscript? ( app-text/ghostscript-gpl )
127 +"
128 +DEPEND="${COMMON_DEPEND}
129 + >=dev-libs/boost-1.65
130 +"
131 +
132 +RESTRICT="test"
133 +
134 +S="${WORKDIR}"/${PN}-${RELEASE_SUFFIX}
135 +
136 +pkg_pretend() {
137 + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
138 + tc-has-openmp || die "Please switch to an openmp compatible compiler"
139 + fi
140 +}
141 +
142 +src_prepare() {
143 + cmake_src_prepare
144 + sed -i "/install.*COPYING/d" CMakeScripts/ConfigCPack.cmake || die
145 +}
146 +
147 +src_configure() {
148 + # aliasing unsafe wrt #310393
149 + append-flags -fno-strict-aliasing
150 +
151 + local mycmakeargs=(
152 + # -DWITH_LPETOOL # Compile with LPE Tool and experimental LPEs enabled
153 + -DENABLE_POPPLER=ON
154 + -DENABLE_POPPLER_CAIRO=ON
155 + -DWITH_PROFILING=OFF
156 + -DWITH_LIBCDR=$(usex cdr)
157 + -DWITH_DBUS=$(usex dbus)
158 + -DWITH_IMAGE_MAGICK=$(usex imagemagick $(usex !graphicsmagick)) # requires ImageMagick 6, only IM must be enabled
159 + -DWITH_GRAPHICS_MAGICK=$(usex graphicsmagick $(usex imagemagick)) # both must be enabled to use GraphicsMagick
160 + -DWITH_JEMALLOC=$(usex jemalloc)
161 + -DENABLE_LCMS=$(usex lcms)
162 + -DWITH_OPENMP=$(usex openmp)
163 + -DBUILD_SHARED_LIBS=$(usex !static-libs)
164 + -DWITH_SVG2=$(usex svg2)
165 + -DWITH_LIBVISIO=$(usex visio)
166 + -DWITH_LIBWPG=$(usex wpg)
167 + )
168 + # We should also have,
169 + #
170 + # -DWITH_NLS=$(usex nls)
171 + #
172 + # in this list, but it's broken upstream at the moment:
173 + #
174 + # * https://bugs.gentoo.org/699658
175 + # * https://gitlab.com/inkscape/inkscape/issues/168
176 +
177 + cmake_src_configure
178 +}
179 +
180 +src_install() {
181 + cmake_src_install
182 +
183 + find "${ED}" -type f -name "*.la" -delete || die
184 +
185 + # No extensions are present in beta1
186 + local extdir="${ED}"/usr/share/${PN}/extensions
187 +
188 + if [[ -e "${extdir}" ]] && [[ -n $(find "${extdir}" -mindepth 1) ]]; then
189 + python_optimize "${ED}"/usr/share/${PN}/extensions
190 + fi
191 +}