Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/xmlcopyeditor/files/, app-editors/xmlcopyeditor/
Date: Sat, 20 Oct 2018 11:39:50
Message-Id: 1540035538.a8a2042810aa136c71da1e8a75133bc7936588eb.pacho@gentoo
1 commit: a8a2042810aa136c71da1e8a75133bc7936588eb
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 20 10:54:20 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 20 11:38:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8a20428
7
8 app-editors/xmlcopyeditor: Don't depend automagically in enchant
9
10 Thanks-to: Juergen Rose
11 Thanks-to: Chris Mayo
12 Closes: https://bugs.gentoo.org/629814
13 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
14 Package-Manager: Portage-2.3.51, Repoman-2.3.11
15
16 .../xmlcopyeditor-1.2.1.3-no-automagic-enchant.patch | 19 +++++++++++++++++++
17 ...1.2.1.3.ebuild => xmlcopyeditor-1.2.1.3-r1.ebuild} | 15 +++++++++------
18 2 files changed, 28 insertions(+), 6 deletions(-)
19
20 diff --git a/app-editors/xmlcopyeditor/files/xmlcopyeditor-1.2.1.3-no-automagic-enchant.patch b/app-editors/xmlcopyeditor/files/xmlcopyeditor-1.2.1.3-no-automagic-enchant.patch
21 new file mode 100644
22 index 00000000000..435b777b43d
23 --- /dev/null
24 +++ b/app-editors/xmlcopyeditor/files/xmlcopyeditor-1.2.1.3-no-automagic-enchant.patch
25 @@ -0,0 +1,19 @@
26 +--- xmlcopyeditor-1.2.1.3.orig/configure.ac
27 ++++ xmlcopyeditor-1.2.1.3/configure.ac
28 +@@ -139,13 +139,9 @@
29 + AC_CHECK_HEADER(expat.h, ,
30 + AC_MSG_ERROR([Expat headers not found]))
31 +
32 +-# Check enchant is available
33 +-PKG_CHECK_MODULES(ENCHANT, [enchant], [CXXFLAGS="$CXXFLAGS -DUSE_ENCHANT"],
34 +- # otherwise Check ASPELL is available
35 +- [AC_CHECK_HEADER(aspell.h, [ASPELL_LIBS="-laspell"],
36 +- AC_MSG_ERROR([Aspell headers not found]))]
37 +-)
38 +-
39 ++# Check Aspell is available
40 ++AC_CHECK_HEADER(aspell.h, [ASPELL_LIBS="-laspell"],
41 ++ AC_MSG_ERROR([Aspell headers not found]))
42 + AC_SUBST(ASPELL_LIBS)
43 +
44 + # Check gtk
45
46 diff --git a/app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3.ebuild b/app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3-r1.ebuild
47 similarity index 80%
48 rename from app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3.ebuild
49 rename to app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3-r1.ebuild
50 index f8f58ca6770..d56c500752b 100644
51 --- a/app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3.ebuild
52 +++ b/app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3-r1.ebuild
53 @@ -1,8 +1,7 @@
54 -# Copyright 1999-2016 Gentoo Foundation
55 +# Copyright 1999-2018 Gentoo Authors
56 # Distributed under the terms of the GNU General Public License v2
57
58 -EAPI="5"
59 -
60 +EAPI=6
61 WX_GTK_VER="3.0"
62
63 inherit autotools wxwidgets
64 @@ -23,14 +22,18 @@ RDEPEND="
65 dev-libs/xerces-c[icu]
66 dev-libs/libpcre
67 !aqua? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
68 - aqua? ( x11-libs/wxGTK:${WX_GTK_VER}[aqua] )"
69 + aqua? ( x11-libs/wxGTK:${WX_GTK_VER}[aqua] )
70 +"
71 DEPEND="${RDEPEND}
72 dev-libs/boost
73 - dev-util/intltool"
74 + dev-util/intltool
75 +"
76
77 -DOCS=( AUTHORS ChangeLog README NEWS )
78 +PATCHES=( "${FILESDIR}"/${P}-no-automagic-enchant.patch )
79
80 src_prepare() {
81 + default
82 +
83 # bug #440744
84 sed -i -e 's/ -Wall -g -fexceptions//g' configure.ac || die
85 eautoreconf