Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/dia/
Date: Thu, 30 Apr 2020 15:10:55
Message-Id: 1588259405.a23b25d8a07660b451d83ac5f2cf305251885568.asturm@gentoo
1 commit: a23b25d8a07660b451d83ac5f2cf305251885568
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 11:42:17 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 15:10:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a23b25d8
7
8 app-office/dia: Drop python plugin
9
10 There are no revdeps registered for the plugin (at least not via python usedeps)
11
12 Acked-by: Mart Raudsepp <leio <AT> gentoo.org>
13 Closes: https://bugs.gentoo.org/710180
14 Package-Manager: Portage-2.3.99, Repoman-2.3.22
15 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
16
17 app-office/dia/dia-0.97.3-r1.ebuild | 91 +++++++++++++++++++++++++++++++++++++
18 1 file changed, 91 insertions(+)
19
20 diff --git a/app-office/dia/dia-0.97.3-r1.ebuild b/app-office/dia/dia-0.97.3-r1.ebuild
21 new file mode 100644
22 index 00000000000..f697cd004ba
23 --- /dev/null
24 +++ b/app-office/dia/dia-0.97.3-r1.ebuild
25 @@ -0,0 +1,91 @@
26 +# Copyright 1999-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=5
30 +GCONF_DEBUG=yes
31 +GNOME2_LA_PUNT=yes
32 +
33 +inherit autotools eutils gnome2 multilib
34 +
35 +DESCRIPTION="Diagram/flowchart creation program"
36 +HOMEPAGE="https://wiki.gnome.org/Apps/Dia"
37 +
38 +LICENSE="GPL-2"
39 +SLOT="0"
40 +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
41 +# the doc USE flag doesn't seem to do anything without docbook2html
42 +# cairo support is preferred as explained by upstream at:
43 +# https://bugzilla.gnome.org/show_bug.cgi?id=729668#c6
44 +IUSE="+cairo doc"
45 +
46 +RDEPEND="
47 + >=dev-libs/glib-2:2
48 + dev-libs/libxml2
49 + dev-libs/libxslt
50 + dev-libs/popt
51 + >=media-libs/freetype-2
52 + >=media-libs/libart_lgpl-2
53 + media-libs/libpng:0
54 + sys-libs/zlib
55 + x11-libs/gtk+:2
56 + x11-libs/pango
57 + cairo? ( x11-libs/cairo )
58 + doc? (
59 + app-text/docbook-xml-dtd:4.5
60 + app-text/docbook-xsl-stylesheets )
61 +"
62 +DEPEND="${RDEPEND}
63 + dev-util/intltool
64 + sys-apps/sed
65 + virtual/pkgconfig
66 + doc? ( dev-libs/libxslt )"
67 +
68 +src_prepare() {
69 + DOCS="AUTHORS ChangeLog KNOWN_BUGS MAINTAINERS NEWS README RELEASE-PROCESS THANKS TODO"
70 +
71 + epatch "${FILESDIR}"/${PN}-0.97.0-gnome-doc.patch #159381 , upstream #470812 #558690
72 + epatch "${FILESDIR}"/${PN}-0.97.2-underlinking.patch #420685, upstream #678761
73 + epatch "${FILESDIR}"/${PN}-0.97.3-freetype_pkgconfig.patch #654814, upstream https://gitlab.gnome.org/GNOME/dia/merge_requests/1
74 +
75 + if ! use doc; then
76 + # Skip man generation
77 + sed -i -e '/if HAVE_DB2MAN/,/endif/d' doc/*/Makefile.am || die
78 + fi
79 +
80 + # Fix naming conflict on Darwin/OSX, upstream bug #723869
81 + sed -i -e 's/isspecial/char_isspecial/' objects/GRAFCET/boolequation.c || die
82 +
83 + # Upstream bug #737254
84 + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
85 +
86 + # Upstream bug #737255
87 + sed -i -e "/localedir/d" configure.in || die
88 +
89 + eautoreconf
90 + gnome2_src_prepare
91 +}
92 +
93 +src_configure() {
94 + # --exec-prefix makes Python look for modules in the Prefix
95 + # --enable-gnome only adds support for deprecated stuff, bug #442294
96 + # https://bugzilla.redhat.com/show_bug.cgi?id=996759
97 + gnome2_src_configure \
98 + --exec-prefix="${EPREFIX}/usr" \
99 + --disable-gnome \
100 + --disable-libemf \
101 + $(use_enable doc db2html) \
102 + $(use_with cairo) \
103 + --without-python \
104 + --without-swig \
105 + --without-hardbooks
106 +}
107 +
108 +src_install() {
109 + gnome2_src_install
110 +
111 + # Install second desktop file for integrated mode (bug #415495, upstream #588208)
112 + sed -e 's|^Exec=dia|Exec=dia --integrated|' \
113 + -e '/^Name/ s|$| (integrated mode)|' \
114 + "${ED}"/usr/share/applications/dia.desktop \
115 + > "${ED}"/usr/share/applications/dia-integrated.desktop || die
116 +}