app-editors/xmlcopyeditor: Don't depend automagically in enchant
authorPacho Ramos <pacho@gentoo.org>
Sat, 20 Oct 2018 10:54:20 +0000 (12:54 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sat, 20 Oct 2018 11:38:58 +0000 (13:38 +0200)
Thanks-to: Juergen Rose
Thanks-to: Chris Mayo
Closes: https://bugs.gentoo.org/629814
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

app-editors/xmlcopyeditor/files/xmlcopyeditor-1.2.1.3-no-automagic-enchant.patch [new file with mode: 0644]
app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3-r1.ebuild [moved from app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3.ebuild with 80% similarity]

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
new file mode 100644 (file)
index 0000000..435b777
--- /dev/null
@@ -0,0 +1,19 @@
+--- xmlcopyeditor-1.2.1.3.orig/configure.ac
++++ xmlcopyeditor-1.2.1.3/configure.ac
+@@ -139,13 +139,9 @@
+ AC_CHECK_HEADER(expat.h, ,
+       AC_MSG_ERROR([Expat headers not found]))
+ 
+-# Check enchant is available
+-PKG_CHECK_MODULES(ENCHANT, [enchant], [CXXFLAGS="$CXXFLAGS -DUSE_ENCHANT"], 
+-      # otherwise Check ASPELL is available
+-        [AC_CHECK_HEADER(aspell.h, [ASPELL_LIBS="-laspell"],
+-              AC_MSG_ERROR([Aspell headers not found]))]
+-)
+-
++# Check Aspell is available
++AC_CHECK_HEADER(aspell.h, [ASPELL_LIBS="-laspell"],
++      AC_MSG_ERROR([Aspell headers not found]))
+ AC_SUBST(ASPELL_LIBS)
+ 
+ # Check gtk
similarity index 80%
rename from app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3.ebuild
rename to app-editors/xmlcopyeditor/xmlcopyeditor-1.2.1.3-r1.ebuild
index f8f58ca6770fc4a0c5bf225616ddfd7d5e68018a..d56c500752b82b1932099fd48dc8930f00aedacd 100644 (file)
@@ -1,8 +1,7 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
-
+EAPI=6
 WX_GTK_VER="3.0"
 
 inherit autotools wxwidgets
@@ -23,14 +22,18 @@ RDEPEND="
        dev-libs/xerces-c[icu]
        dev-libs/libpcre
        !aqua? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
-       aqua? ( x11-libs/wxGTK:${WX_GTK_VER}[aqua] )"
+       aqua? ( x11-libs/wxGTK:${WX_GTK_VER}[aqua] )
+"
 DEPEND="${RDEPEND}
        dev-libs/boost
-       dev-util/intltool"
+       dev-util/intltool
+"
 
-DOCS=( AUTHORS ChangeLog README NEWS )
+PATCHES=( "${FILESDIR}"/${P}-no-automagic-enchant.patch )
 
 src_prepare() {
+       default
+
        # bug #440744
        sed -i  -e 's/ -Wall -g -fexceptions//g' configure.ac || die
        eautoreconf