1 |
commit: b814af80a2efe47e32ca892ed039aeb8c1bcd553 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 3 12:51:34 2021 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 3 12:51:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b814af80 |
7 |
|
8 |
app-editors/xmlcopyeditor: 1.3.0.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/733764 |
11 |
Closes: https://bugs.gentoo.org/769638 |
12 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
13 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
14 |
|
15 |
app-editors/xmlcopyeditor/Manifest | 1 + |
16 |
...mlcopyeditor-1.3.0.0-no-automagic-enchant.patch | 21 ++++++++++ |
17 |
.../xmlcopyeditor/xmlcopyeditor-1.3.0.0.ebuild | 48 ++++++++++++++++++++++ |
18 |
3 files changed, 70 insertions(+) |
19 |
|
20 |
diff --git a/app-editors/xmlcopyeditor/Manifest b/app-editors/xmlcopyeditor/Manifest |
21 |
index 56816307e4f..528164aaae8 100644 |
22 |
--- a/app-editors/xmlcopyeditor/Manifest |
23 |
+++ b/app-editors/xmlcopyeditor/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST xmlcopyeditor-1.2.1.3.tar.gz 4266907 BLAKE2B 52e8c27a37edbcc0da46b52443f5b6754252a62f1abb7746e724270dd5cd9a2db4de60e68d495008ef55a18e9c25149825c9b26c5fd6e20d8e3937931de64e74 SHA512 1adda58bc262cd22898ba22eed3cad9f4a51f199e779172af2d51c5d7bf6dac072b9015b90906236de83d7acebe29d0aae6ae73998ec9d9b3c58b02f081e0b4d |
26 |
+DIST xmlcopyeditor-1.3.0.0.tar.gz 4981894 BLAKE2B decaf8d08bcf6392624160f512e02c0e1b8924df1147d2fb19b744357077f9b23a99781c0f47c5800feffa600aea7b1fadb65282b5da438521be079aeb917de4 SHA512 5feebc56124601c1a8b7a3079b8f766c6282c256e39a2e34cdf64156ba910195a1b64fecea41d0a4022f00dcd3cd4f46f433fff3766acb6239ca70d7675b14c0 |
27 |
|
28 |
diff --git a/app-editors/xmlcopyeditor/files/xmlcopyeditor-1.3.0.0-no-automagic-enchant.patch b/app-editors/xmlcopyeditor/files/xmlcopyeditor-1.3.0.0-no-automagic-enchant.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..e07b90c5eaf |
31 |
--- /dev/null |
32 |
+++ b/app-editors/xmlcopyeditor/files/xmlcopyeditor-1.3.0.0-no-automagic-enchant.patch |
33 |
@@ -0,0 +1,21 @@ |
34 |
+diff --git a/configure.ac b/configure.ac |
35 |
+index 30bdf60..034bb26 100755 |
36 |
+--- a/configure.ac |
37 |
++++ b/configure.ac |
38 |
+@@ -105,13 +105,9 @@ AC_LANG(C++) |
39 |
+ AC_CHECK_HEADER(expat.h, , |
40 |
+ AC_MSG_ERROR([Expat headers not found])) |
41 |
+ |
42 |
+-# Check enchant is available |
43 |
+-PKG_CHECK_MODULES(ENCHANT, [enchant], [CXXFLAGS="$CXXFLAGS -DUSE_ENCHANT"], |
44 |
+- # otherwise Check ASPELL is available |
45 |
+- [AC_CHECK_HEADER(aspell.h, [ASPELL_LIBS="-laspell"], |
46 |
+- AC_MSG_ERROR([Aspell headers not found]))] |
47 |
+-) |
48 |
+- |
49 |
++# Check Aspell is available |
50 |
++AC_CHECK_HEADER(aspell.h, [ASPELL_LIBS="-laspell"], |
51 |
++ AC_MSG_ERROR([Aspell headers not found])) |
52 |
+ AC_SUBST(ASPELL_LIBS) |
53 |
+ |
54 |
+ AC_MSG_CHECKING([the GTK version to use]) |
55 |
|
56 |
diff --git a/app-editors/xmlcopyeditor/xmlcopyeditor-1.3.0.0.ebuild b/app-editors/xmlcopyeditor/xmlcopyeditor-1.3.0.0.ebuild |
57 |
new file mode 100644 |
58 |
index 00000000000..a4f5153d85c |
59 |
--- /dev/null |
60 |
+++ b/app-editors/xmlcopyeditor/xmlcopyeditor-1.3.0.0.ebuild |
61 |
@@ -0,0 +1,48 @@ |
62 |
+# Copyright 1999-2021 Gentoo Authors |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=7 |
66 |
+ |
67 |
+WX_GTK_VER="3.0-gtk3" |
68 |
+inherit autotools wxwidgets xdg |
69 |
+ |
70 |
+DESCRIPTION="XML Copy Editor is a fast, free, validating XML editor" |
71 |
+HOMEPAGE="http://xml-copy-editor.sourceforge.net/" |
72 |
+SRC_URI="mirror://sourceforge/xml-copy-editor/${P}.tar.gz" |
73 |
+ |
74 |
+LICENSE="GPL-2" |
75 |
+SLOT="0" |
76 |
+KEYWORDS="~amd64 -ppc ~x86 ~amd64-linux ~x86-linux" # -ppc due SSE2 requirement |
77 |
+IUSE="aqua nls" |
78 |
+ |
79 |
+RDEPEND=" |
80 |
+ app-text/aspell |
81 |
+ dev-libs/libxml2 |
82 |
+ dev-libs/libxslt |
83 |
+ dev-libs/xerces-c[cpu_flags_x86_sse2,icu] |
84 |
+ dev-libs/libpcre |
85 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X]" |
86 |
+DEPEND="${RDEPEND} |
87 |
+ dev-libs/boost" |
88 |
+BDEPEND="dev-util/intltool |
89 |
+ virtual/pkgconfig" |
90 |
+ |
91 |
+S="${WORKDIR}"/${PN} |
92 |
+ |
93 |
+PATCHES=( "${FILESDIR}"/${P}-no-automagic-enchant.patch ) |
94 |
+ |
95 |
+src_prepare() { |
96 |
+ default |
97 |
+ |
98 |
+ # bug #440744 |
99 |
+ sed -i -e 's/ -Wall -g -fexceptions//g' configure.ac || die |
100 |
+ eautoreconf |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
104 |
+ setup-wxwidgets unicode |
105 |
+ econf \ |
106 |
+ --with-gtk=3.0 \ |
107 |
+ --with-wx-config="${WX_CONFIG}" \ |
108 |
+ $(use_enable nls) |
109 |
+} |