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/graphviz/
Date: Thu, 20 Aug 2020 19:17:37
Message-Id: 1597951052.bd12283b4d73a9ea163de6f6216a757ad0bc705a.zlogene@gentoo
1 commit: bd12283b4d73a9ea163de6f6216a757ad0bc705a
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 20 19:17:02 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 20 19:17:32 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd12283b
7
8 media-gfx/graphviz: Drop old
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 media-gfx/graphviz/Manifest | 1 -
14 media-gfx/graphviz/graphviz-2.44.0.ebuild | 280 ------------------------------
15 2 files changed, 281 deletions(-)
16
17 diff --git a/media-gfx/graphviz/Manifest b/media-gfx/graphviz/Manifest
18 index fc66a2f403b..a56cb546665 100644
19 --- a/media-gfx/graphviz/Manifest
20 +++ b/media-gfx/graphviz/Manifest
21 @@ -1,3 +1,2 @@
22 DIST graphviz-2.42.3.tar.gz 26246717 BLAKE2B 71c61dcd056c9a2e2655c3be995d1da17b3af0d3374e74400fc38da11ab81849f7b5e528f99fc2046294958a4bab0a411ab204e434360f316a5367403472e8a1 SHA512 e03ca6da0ddb1162bd179d159d7dbb379d55012d63bb922aa800260fce52b65beb1a9b5ca1a5199ad3537201b0b4841efc9facee6e03065c6bd02e840f8a29c9
23 -DIST graphviz-2.44.0.tar.gz 32903746 BLAKE2B 05def6b50366900fe84b8d72b802461d33624444f00d1c648801da81708dcdf7dc601f95561d8f7dc8e745eef61326cb9a234a0db1bc45c8a7d7d46e552c373b SHA512 9fd54a5c7b0d8cf3e1bf7e80409b57022182b6bfe3f57a06a219d6d29684962ac935fc76d1e7420ba88b1ffc2ab5b967cc4617e56f810818f99801d31981a752
24 DIST graphviz-2.44.1.tar.gz 34079677 BLAKE2B 90183afa6affedb097eab237fae148a9c085c3a724fb74d370f7c042b53d09b44ba0cb755a2ac74175d89d3a45687b60f0e210bdd404fc72da98bdf61b9eaa8d SHA512 42e6137c7cce18daf6f17e6fcbbdfe8e0a531de1bdd3ac7b8751445214aa0d85713b65ba896a234a02670827b0d608bd64b758ef60a4d0384ffa3355ee0dbc42
25
26 diff --git a/media-gfx/graphviz/graphviz-2.44.0.ebuild b/media-gfx/graphviz/graphviz-2.44.0.ebuild
27 deleted file mode 100644
28 index e5d24184ddb..00000000000
29 --- a/media-gfx/graphviz/graphviz-2.44.0.ebuild
30 +++ /dev/null
31 @@ -1,280 +0,0 @@
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 -inherit autotools flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils
39 -
40 -DESCRIPTION="Open Source Graph Visualization Software"
41 -HOMEPAGE="https://www.graphviz.org/ https://gitlab.com/graphviz/graphviz/"
42 -SRC_URI="https://www2.graphviz.org/Packages/stable/portable_source/${P}.tar.gz"
43 -
44 -LICENSE="CPL-1.0"
45 -SLOT="0"
46 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
47 -IUSE="+cairo devil doc examples gdk-pixbuf gtk gts guile java lasi nls pdf perl postscript python qt5 ruby static-libs svg tcl X elibc_FreeBSD"
48 -
49 -REQUIRED_USE="
50 - !cairo? ( !X !gtk !postscript !lasi )
51 - pdf? ( cairo )
52 - python? ( ${PYTHON_REQUIRED_USE} )"
53 -
54 -# Requires ksh, tests against installed package, missing files and directory
55 -RESTRICT="test"
56 -
57 -BDEPEND="
58 - sys-devel/flex
59 - sys-devel/libtool
60 - virtual/pkgconfig
61 - nls? ( >=sys-devel/gettext-0.14.5 )
62 - perl? ( dev-lang/swig )
63 - python? ( dev-lang/swig )
64 - ruby? ( dev-lang/swig )
65 - tcl? ( dev-lang/swig )
66 -"
67 -RDEPEND="
68 - >=dev-libs/expat-2
69 - >=dev-libs/glib-2.11.1:2
70 - dev-libs/libltdl:0
71 - >=media-libs/fontconfig-2.3.95
72 - >=media-libs/freetype-2.1.10
73 - >=media-libs/gd-2.0.34:=[fontconfig,jpeg,png,truetype,zlib]
74 - >=media-libs/libpng-1.2:0=
75 - sys-libs/zlib
76 - virtual/jpeg:0
77 - virtual/libiconv
78 - cairo? (
79 - >=x11-libs/cairo-1.1.10[svg]
80 - >=x11-libs/pango-1.12
81 - )
82 - devil? ( media-libs/devil[png,jpeg] )
83 - gtk? ( x11-libs/gtk+:2 )
84 - gts? ( sci-libs/gts )
85 - lasi? ( media-libs/lasi )
86 - pdf? ( app-text/poppler )
87 - perl? ( dev-lang/perl:= )
88 - postscript? ( app-text/ghostscript-gpl )
89 - python? ( ${PYTHON_DEPS} )
90 - qt5? (
91 - dev-qt/qtcore:5
92 - dev-qt/qtgui:5
93 - dev-qt/qtprintsupport:5
94 - dev-qt/qtwidgets:5
95 - )
96 - ruby? ( dev-lang/ruby:* )
97 - svg? ( gnome-base/librsvg )
98 - tcl? ( >=dev-lang/tcl-8.3:0= )
99 - X? (
100 - x11-libs/libX11
101 - x11-libs/libXaw
102 - x11-libs/libXmu
103 - x11-libs/libXpm
104 - x11-libs/libXt
105 - )
106 -"
107 -DEPEND="${RDEPEND}
108 - guile? (
109 - dev-lang/swig
110 - dev-scheme/guile
111 - )
112 - java? (
113 - dev-lang/swig
114 - >=virtual/jdk-1.5
115 - )
116 -"
117 -
118 -# Dependency description / Maintainer-Info:
119 -
120 -# Rendering is done via the following plugins (/plugins):
121 -# - core, dot_layout, neato_layout, gd , dot
122 -# the ones which are always compiled in, depend on zlib, gd
123 -# - gtk
124 -# Directly depends on gtk-2.
125 -# needs 'pangocairo' enabled in graphviz configuration
126 -# gtk-2 depends on pango, cairo and libX11 directly.
127 -# - gdk-pixbuf
128 -# Disabled, GTK-1 junk.
129 -# - glitz
130 -# Disabled, no particular reason
131 -# needs 'pangocairo' enabled in graphviz configuration
132 -# - ming
133 -# flash plugin via -Tswf requires media-libs/ming-0.4. Disabled as it's
134 -# incomplete.
135 -# - cairo/pango:
136 -# Needs pango for text layout, uses cairo methods to draw stuff
137 -# - xlib:
138 -# needs cairo+pango,
139 -# can make use of gnomeui and inotify support (??? unsure),
140 -# needs libXaw for UI
141 -# UI also links directly against libX11, libXmu, and libXt
142 -# and uses libXpm if available so we make sure it always is
143 -
144 -# There can be swig-generated bindings for the following languages (/tclpkg/gv):
145 -# - c-sharp (disabled)
146 -# - scheme (enabled via guile) ... no longer broken on ~x86
147 -# - go (disabled)
148 -# - io (disabled)
149 -# - java (enabled via java) *2
150 -# - lua (enabled via lua)
151 -# - ocaml (enabled via ocaml)
152 -# - perl (enabled via perl) *1
153 -# - php (enabled via php) *2
154 -# - python (enabled via python) *1
155 -# - ruby (enabled via ruby) *1
156 -# - tcl (enabled via tcl)
157 -# *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location
158 -# *2 = Those bindings don't build because the paths for the headers/libs aren't
159 -# detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5)
160 -
161 -# There are several other tools in /tclpkg:
162 -# gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl
163 -# tkspline, tkstubs ; enabled with: --with-tk
164 -
165 -# And the commands (/cmd):
166 -# - dot, dotty, gvedit, gvpr, lefty, lneato, smyrna, tools/* :)
167 -# sci-libs/gts can be used for some of these
168 -# - lefty:
169 -# needs Xaw and X to build
170 -# - gvedit (via 'qt5'):
171 -# based on ./configure it needs qt-core and qt-gui only
172 -# - smyrna : experimental opengl front-end (via 'smyrna')
173 -# currently disabled -- it segfaults a lot
174 -# needs x11-libs/gtkglext, gnome-base/libglade, media-libs/freeglut
175 -# sci-libs/gts, x11-libs/gtk. Also needs 'gtk','glade','glut','gts' and 'png'
176 -# with flags enabled at configure time
177 -
178 -PATCHES=( "${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch
179 - "${FILESDIR}"/dotty_change_button.patch )
180 -
181 -pkg_setup() {
182 - use python && python-single-r1_pkg_setup
183 -
184 - java-pkg-opt-2_pkg_setup
185 -}
186 -
187 -src_prepare() {
188 - default
189 -
190 - # ToDo: Do the same thing for examples and/or
191 - # write a patch for a configuration-option
192 - # and send it to upstream
193 - # note - the longer sed expression removes multi-line assignments that are extended via '\'
194 - if ! use doc ; then
195 - find . -iname Makefile.am \
196 - | xargs sed -i -e '/^\(html\|pdf\)_DATA.*\\[[:space:]]*$/{:m;N;s/\\\n//;tm;d}' \
197 - -e '/^\(html\|pdf\)_DATA/d' || die
198 - fi
199 -
200 - # This is an old version of libtool
201 - # use the ./configure option to exclude its use, and
202 - # delete the dir since we don't need to eautoreconf it
203 - rm -r libltdl || die
204 -
205 - # Nuke the dead symlinks for the bindings
206 - sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die
207 -
208 - # replace the whitespace with tabs
209 - sed -i -e 's: :\t:g' doc/info/Makefile.am || die
210 -
211 - # use correct version of qmake. bug #567236
212 - sed -i -e "/AC_CHECK_PROGS(QMAKE/a AC_SUBST(QMAKE,$(qt5_get_bindir)/qmake)" configure.ac || die
213 -
214 - # workaround for http://www.graphviz.org/mantisbt/view.php?id=1895
215 - use elibc_FreeBSD && append-flags $(test-flags -fno-builtin-sincos)
216 -
217 - use java && append-cppflags $(java-pkg_get-jni-cflags)
218 -
219 - eautoreconf
220 -}
221 -
222 -src_configure() {
223 - local myconf=(
224 - --enable-ltdl
225 - $(use_with cairo pangocairo)
226 - $(use_with devil)
227 - $(use_enable gdk-pixbuf)
228 - $(use_with gtk)
229 - $(use_with gts)
230 - $(use_with qt5 qt)
231 - $(use_with lasi)
232 - $(use_with pdf poppler)
233 - $(use_with postscript ghostscript)
234 - $(use_enable static-libs static)
235 - $(use_with svg rsvg)
236 - $(use_with X x)
237 - $(use_with X xaw)
238 - $(use_with X lefty)
239 - --with-digcola
240 - --with-fontconfig
241 - --with-freetype2
242 - --with-ipsepcola
243 - --with-libgd
244 - --with-sfdp
245 - --without-ming
246 - # new/experimental features, to be tested, disable for now
247 - --with-cgraph
248 - --without-glitz
249 - --without-ipsepcola
250 - --without-smyrna
251 - --without-visio
252 - # Bindings:
253 - $(use_enable guile)
254 - $(use_enable java)
255 - $(use_enable perl)
256 - $(use_enable python python2)
257 - $(use_enable python python3)
258 - $(use_enable ruby)
259 - $(use_enable tcl)
260 - --disable-go
261 - --disable-io
262 - --disable-lua
263 - --disable-ocaml
264 - --disable-php
265 - --disable-python
266 - --disable-r
267 - --disable-sharp
268 - # libtool file collision, bug #276609
269 - --without-included-ltdl
270 - --disable-ltdl-install
271 - )
272 - econf "${myconf[@]}"
273 -}
274 -
275 -src_install() {
276 - sed -i -e "s:htmldir:htmlinfodir:g" doc/info/Makefile || die
277 -
278 - emake DESTDIR="${D}" \
279 - txtdir="${EPREFIX}"/usr/share/doc/${PF} \
280 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
281 - htmlinfodir="${EPREFIX}"/usr/share/doc/${PF}/html/info \
282 - pdfdir="${EPREFIX}"/usr/share/doc/${PF}/pdf \
283 - pkgconfigdir="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \
284 - install
285 -
286 - if ! use examples; then
287 - rm -rf "${ED}"/usr/share/graphviz/demo || die
288 - fi
289 -
290 - if ! use static-libs; then
291 - find "${ED}" -name '*.la' -delete || die
292 - fi
293 -
294 - einstalldocs
295 -
296 - use python && python_optimize \
297 - "${D}$(python_get_sitedir)" \
298 - "${D}/usr/$(get_libdir)/graphviz/python2" \
299 - "${D}/usr/$(get_libdir)/graphviz/python3"
300 -}
301 -
302 -pkg_postinst() {
303 - # This actually works if --enable-ltdl is passed
304 - # to configure
305 - dot -c || die
306 -}
307 -
308 -pkg_postrm() {
309 - # Remove cruft, bug #547344
310 - rm -rf "${EROOT}"/usr/$(get_libdir)/graphviz/config{,6} || die
311 -}