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/, media-gfx/inkscape/files/
Date: Wed, 14 Apr 2021 19:28:50
Message-Id: 1618428523.984290cc2e0b62865121379e9f621a2eba4b6b66.zlogene@gentoo
1 commit: 984290cc2e0b62865121379e9f621a2eba4b6b66
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 14 19:28:33 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 14 19:28:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=984290cc
7
8 media-gfx/inkscape: Drop old
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 media-gfx/inkscape/Manifest | 1 -
14 .../inkscape/files/missing_atomic_include.patch | 10 --
15 media-gfx/inkscape/inkscape-1.0.1-r1.ebuild | 161 ---------------------
16 3 files changed, 172 deletions(-)
17
18 diff --git a/media-gfx/inkscape/Manifest b/media-gfx/inkscape/Manifest
19 index 2455bcce911..595bd98db34 100644
20 --- a/media-gfx/inkscape/Manifest
21 +++ b/media-gfx/inkscape/Manifest
22 @@ -1,2 +1 @@
23 -DIST inkscape-1.0.1.tar.xz 32051632 BLAKE2B d17ae49c42908e24aade2216f5adaf56b14ac830decfa2c07ea711c034d144251d5c039f516934a6d004b48165ab3a70d40a7cb7e658ae5e97ef37b392a7d556 SHA512 70145e02fe7c3ffbfa3dcea690bfe3315131fb9a507c70bcdc1d0db394d207e3bd04d7cc86c3b625597bddfd2b6e09a03841aece6d2ffb6517fe1c619193ec96
24 DIST inkscape-1.0.2.tar.xz 32421620 BLAKE2B c3f9c37b15343ba0955a6d06810aef5fb9e035a240f99579301b8cd93858a62b5ed1a3ff528a9642ec74b8900305495236cf7f4c672864369a4e33dca3b34bd4 SHA512 f4fbc627c0f07db11194715c505b771a60af29a9a7f8be0232e4f7eb6b1c5814c3f160c2003d64ec62aeb92ef44174320a47aa6b6abc7a67cc27c996cba9522d
25
26 diff --git a/media-gfx/inkscape/files/missing_atomic_include.patch b/media-gfx/inkscape/files/missing_atomic_include.patch
27 deleted file mode 100644
28 index b298550c5c8..00000000000
29 --- a/media-gfx/inkscape/files/missing_atomic_include.patch
30 +++ /dev/null
31 @@ -1,10 +0,0 @@
32 ---- a/src/ui/tool/node.cpp 2020-05-01 15:18:52.000000000 +0200
33 -+++ b/src/ui/tool/node.cpp 2020-08-18 01:25:05.266412299 +0200
34 -@@ -7,6 +7,7 @@
35 - * Released under GNU GPL v2+, read the file 'COPYING' for more information.
36 - */
37 -
38 -+#include <atomic>
39 - #include <iostream>
40 - #include <stdexcept>
41 - #include <boost/utility.hpp>
42
43 diff --git a/media-gfx/inkscape/inkscape-1.0.1-r1.ebuild b/media-gfx/inkscape/inkscape-1.0.1-r1.ebuild
44 deleted file mode 100644
45 index 861ac2210cd..00000000000
46 --- a/media-gfx/inkscape/inkscape-1.0.1-r1.ebuild
47 +++ /dev/null
48 @@ -1,161 +0,0 @@
49 -# Copyright 1999-2021 Gentoo Authors
50 -# Distributed under the terms of the GNU General Public License v2
51 -
52 -EAPI=7
53 -
54 -PYTHON_COMPAT=( python3_{7..9} )
55 -PYTHON_REQ_USE="xml"
56 -
57 -inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1
58 -
59 -DESCRIPTION="SVG based generic vector-drawing program"
60 -HOMEPAGE="https://inkscape.org/"
61 -SRC_URI="https://inkscape.org/gallery/item/21571/${P}.tar.xz"
62 -
63 -LICENSE="GPL-2 LGPL-2.1"
64 -SLOT="0"
65 -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ppc ppc64 ~s390 ~sparc x86"
66 -IUSE="cdr dbus dia exif graphicsmagick imagemagick inkjar jemalloc jpeg lcms
67 -openmp postscript spell static-libs svg2 visio wpg"
68 -
69 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
70 -
71 -PATCHES=(
72 - "${FILESDIR}/missing_atomic_include.patch"
73 -)
74 -
75 -BDEPEND="
76 - dev-util/glib-utils
77 - >=dev-util/intltool-0.40
78 - >=sys-devel/gettext-0.17
79 - virtual/pkgconfig
80 -"
81 -COMMON_DEPEND="${PYTHON_DEPS}
82 - >=app-text/poppler-0.57.0:=[cairo]
83 - >=dev-cpp/cairomm-1.12:0
84 - >=dev-cpp/glibmm-2.54.1:2
85 - dev-cpp/gtkmm:3.0
86 - >=dev-cpp/pangomm-2.40:1.4
87 - >=dev-libs/boehm-gc-7.1:=
88 - dev-libs/double-conversion:=
89 - >=dev-libs/glib-2.41
90 - >=dev-libs/libsigc++-2.8:2
91 - >=dev-libs/libxml2-2.7.4
92 - >=dev-libs/libxslt-1.1.25
93 - dev-libs/gdl:3
94 - dev-libs/popt
95 - media-gfx/potrace
96 - media-libs/fontconfig
97 - media-libs/freetype:2
98 - media-libs/libpng:0=
99 - net-libs/libsoup
100 - sci-libs/gsl:=
101 - x11-libs/libX11
102 - >=x11-libs/pango-1.37.2
103 - x11-libs/gtk+:3
104 - $(python_gen_cond_dep '
105 - dev-python/lxml[${PYTHON_MULTI_USEDEP}]
106 - media-gfx/scour[${PYTHON_MULTI_USEDEP}]
107 - ')
108 - cdr? (
109 - app-text/libwpg:0.3
110 - dev-libs/librevenge
111 - media-libs/libcdr
112 - )
113 - dbus? ( dev-libs/dbus-glib )
114 - exif? ( media-libs/libexif )
115 - imagemagick? (
116 - !graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
117 - graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
118 - )
119 - jemalloc? ( dev-libs/jemalloc )
120 - jpeg? ( virtual/jpeg:0 )
121 - lcms? ( media-libs/lcms:2 )
122 - spell? (
123 - app-text/aspell
124 - app-text/gtkspell:3
125 - )
126 - visio? (
127 - app-text/libwpg:0.3
128 - dev-libs/librevenge
129 - media-libs/libvisio
130 - )
131 - wpg? (
132 - app-text/libwpg:0.3
133 - dev-libs/librevenge
134 - )
135 -"
136 -# These only use executables provided by these packages
137 -# See share/extensions for more details. inkscape can tell you to
138 -# install these so we could of course just not depend on those and rely
139 -# on that.
140 -RDEPEND="${COMMON_DEPEND}
141 - $(python_gen_cond_dep '
142 - dev-python/numpy[${PYTHON_MULTI_USEDEP}]
143 - ')
144 - dia? ( app-office/dia )
145 - postscript? ( app-text/ghostscript-gpl )
146 -"
147 -DEPEND="${COMMON_DEPEND}
148 - >=dev-libs/boost-1.65
149 -"
150 -
151 -RESTRICT="test"
152 -
153 -S="${WORKDIR}"/${P}_2020-09-07_3bc2e813f5
154 -
155 -pkg_pretend() {
156 - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
157 - tc-has-openmp || die "Please switch to an openmp compatible compiler"
158 - fi
159 -}
160 -
161 -src_prepare() {
162 - cmake_src_prepare
163 - sed -i "/install.*COPYING/d" CMakeScripts/ConfigCPack.cmake || die
164 -}
165 -
166 -src_configure() {
167 - # aliasing unsafe wrt #310393
168 - append-flags -fno-strict-aliasing
169 -
170 - local mycmakeargs=(
171 - # -DWITH_LPETOOL # Compile with LPE Tool and experimental LPEs enabled
172 - -DENABLE_POPPLER=ON
173 - -DWITH_NLS=ON
174 - -DENABLE_POPPLER_CAIRO=ON
175 - -DWITH_PROFILING=OFF
176 - -DWITH_LIBCDR=$(usex cdr)
177 - -DWITH_DBUS=$(usex dbus)
178 - -DWITH_IMAGE_MAGICK=$(usex imagemagick $(usex !graphicsmagick)) # requires ImageMagick 6, only IM must be enabled
179 - -DWITH_GRAPHICS_MAGICK=$(usex graphicsmagick $(usex imagemagick)) # both must be enabled to use GraphicsMagick
180 - -DWITH_JEMALLOC=$(usex jemalloc)
181 - -DENABLE_LCMS=$(usex lcms)
182 - -DWITH_OPENMP=$(usex openmp)
183 - -DBUILD_SHARED_LIBS=$(usex !static-libs)
184 - -DWITH_SVG2=$(usex svg2)
185 - -DWITH_LIBVISIO=$(usex visio)
186 - -DWITH_LIBWPG=$(usex wpg)
187 - )
188 -
189 - cmake_src_configure
190 -}
191 -
192 -src_install() {
193 - cmake_src_install
194 -
195 - find "${ED}" -type f -name "*.la" -delete || die
196 -
197 - find "${ED}"/usr/share/man -type f -maxdepth 3 -name '*.bz2' -exec bzip2 -d {} \; || die
198 -
199 - find "${ED}"/usr/share/man -type f -maxdepth 3 -name '*.gz' -exec gzip -d {} \; || die
200 -
201 - local extdir="${ED}"/usr/share/${PN}/extensions
202 -
203 - if [[ -e "${extdir}" ]] && [[ -n $(find "${extdir}" -mindepth 1) ]]; then
204 - python_optimize "${ED}"/usr/share/${PN}/extensions
205 - fi
206 -
207 - # Empty directory causes sandbox issues, see bug #761915
208 - rm -r "${ED}/usr/share/inkscape/fonts" || die "Failed to remove fonts directory."
209 -}