1 |
commit: 9c9293f59cdd7dc11f411d85f43ada1a20267f27 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 27 17:46:47 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 27 18:02:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c9293f5 |
7 |
|
8 |
app-text/hunspell: Don't pull myspell-en always (#591610) |
9 |
|
10 |
Package-Manager: Portage-2.3.38, Repoman-2.3.9 |
11 |
|
12 |
app-text/hunspell/hunspell-1.6.2-r1.ebuild | 86 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 86 insertions(+) |
14 |
|
15 |
diff --git a/app-text/hunspell/hunspell-1.6.2-r1.ebuild b/app-text/hunspell/hunspell-1.6.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..257fddabc45 |
18 |
--- /dev/null |
19 |
+++ b/app-text/hunspell/hunspell-1.6.2-r1.ebuild |
20 |
@@ -0,0 +1,86 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit autotools flag-o-matic versionator |
26 |
+ |
27 |
+MY_P="${PN}-${PV/_beta/b}" |
28 |
+ |
29 |
+DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo" |
30 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
31 |
+HOMEPAGE="https://github.com/hunspell" |
32 |
+ |
33 |
+SLOT="0/$(get_version_component_range 1-2)" |
34 |
+LICENSE="MPL-1.1 GPL-2 LGPL-2.1" |
35 |
+IUSE="ncurses nls readline static-libs" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ ncurses? ( sys-libs/ncurses:0= ) |
40 |
+ readline? ( sys-libs/readline:= ) |
41 |
+" |
42 |
+DEPEND="${RDEPEND} |
43 |
+ sys-devel/gettext |
44 |
+" |
45 |
+ |
46 |
+LANGS="af bg ca cs cy da de de-1901 el en eo es et fo fr ga gl he hr hu ia id |
47 |
+is it kk km ku lt lv mi mk ms nb nl nn pl pt pt-BR ro ru sk sl sq sv sw tn uk |
48 |
+zu" |
49 |
+ |
50 |
+PDEPEND="" |
51 |
+for lang in ${LANGS}; do |
52 |
+ IUSE+=" l10n_${lang}" |
53 |
+ case ${lang} in |
54 |
+ de-1901) dict="de_1901" ;; |
55 |
+ pt-BR) dict="pt-br" ;; |
56 |
+ *) dict="${lang}" ;; |
57 |
+ esac |
58 |
+ PDEPEND+=" l10n_${lang}? ( app-dicts/myspell-${dict} )" |
59 |
+done |
60 |
+unset dict lang LANGS |
61 |
+ |
62 |
+S="${WORKDIR}/${MY_P}" |
63 |
+ |
64 |
+DOCS=( |
65 |
+ AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell |
66 |
+ AUTHORS.myspell README.myspell license.myspell README.md |
67 |
+) |
68 |
+ |
69 |
+PATCHES=( |
70 |
+ # Upstream package creates some executables which names are too generic |
71 |
+ # to be placed in /usr/bin - this patch prefixes them with 'hunspell-'. |
72 |
+ # It modifies a Makefile.am file, hence eautoreconf. |
73 |
+ "${FILESDIR}/${PN}-1.6.2-renameexes.patch" |
74 |
+) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ # missing somehow, and I am too lazy to fix it properly |
83 |
+ [[ ${CHOST} == *-darwin* ]] && append-libs -liconv |
84 |
+ |
85 |
+ # I wanted to put the include files in /usr/include/hunspell. |
86 |
+ # You can do that, libreoffice can find them anywhere, just |
87 |
+ # ping me when you do so ; -- scarabeus |
88 |
+ local myeconfargs=( |
89 |
+ $(use_enable nls) |
90 |
+ $(use_with ncurses ui) |
91 |
+ $(use_with readline readline) |
92 |
+ $(use_enable static-libs static) |
93 |
+ ) |
94 |
+ econf "${myeconfargs[@]}" |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ default |
99 |
+ einstalldocs |
100 |
+ find "${D}" -name '*.la' -delete || die |
101 |
+ |
102 |
+ #342449 |
103 |
+ pushd "${ED%/}"/usr/$(get_libdir)/ >/dev/null |
104 |
+ ln -s lib${PN}{-$(get_major_version).$(get_version_component_range 2).so.0.0.1,.so} |
105 |
+ popd >/dev/null |
106 |
+} |