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