Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-dicts/ydpdict/files/, app-dicts/ydpdict/
Date: Wed, 19 Aug 2020 10:48:17
Message-Id: 1597834088.5b5328170828df598035b475b4ce4d6e87eed1da.jer@gentoo
1 commit: 5b5328170828df598035b475b4ce4d6e87eed1da
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 19 10:46:08 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 19 10:48:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b532817
7
8 app-dicts/ydpdict: Version 1.0.3
9
10 Package-Manager: Portage-3.0.3, Repoman-3.0.0
11 Closes: https://bugs.gentoo.org/show_bug.cgi?id=690938
12 Closes: https://bugs.gentoo.org/show_bug.cgi?id=707730
13 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
14
15 app-dicts/ydpdict/Manifest | 1 +
16 app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch | 10 ++++
17 app-dicts/ydpdict/ydpdict-1.0.3.ebuild | 58 +++++++++++++++++++++++
18 3 files changed, 69 insertions(+)
19
20 diff --git a/app-dicts/ydpdict/Manifest b/app-dicts/ydpdict/Manifest
21 index 2961d2c4902..b47f149e45d 100644
22 --- a/app-dicts/ydpdict/Manifest
23 +++ b/app-dicts/ydpdict/Manifest
24 @@ -1 +1,2 @@
25 DIST ydpdict-1.0.2.tar.gz 363774 BLAKE2B 0ca86e0180af559f9440f8a598672e5e321d84f37725f0233ba0d666119f20308c0229fd1dd0197a8c86733af17f1cce53b990c63b260673871ab6658d88a5c5 SHA512 b2395d88e289171daae3aa47d9c70a2ca1c7b3a3998c1a9751c56e1dc8d17138bc38a172581edcad02c35d5252041c6942a3c416a632def6121072650bcb7e61
26 +DIST ydpdict-1.0.3.tar.gz 185721 BLAKE2B 1db80dc20dd6d71c4b7fed2051bbfae1021fd1ea15ca1f993e8e095912fbcc8d599d8f480143d185fd11c6a1414d7f29ae67a9f5cffda624b434d198cddc5c68 SHA512 ca50c485f10aa4c4691a27a474a5ae814be3bb183b4927728f14de67af1e11a281e5272fc5777d6573e69dd00d3da2223b78d729132764338c92489f20eb17e8
27
28 diff --git a/app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch b/app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch
29 new file mode 100644
30 index 00000000000..30c5ddedfdd
31 --- /dev/null
32 +++ b/app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch
33 @@ -0,0 +1,10 @@
34 +--- a/configure.ac
35 ++++ b/configure.ac
36 +@@ -24,6 +24,7 @@
37 + AC_CHECK_HEADER([ncursesw/ncurses.h], [have_ncursesw_ncurses_h=yes])
38 + AC_CHECK_HEADER([curses.h], [have_curses_h=yes])
39 + AC_CHECK_LIB([ncursesw], [initscr], [have_libncursesw=yes])
40 ++AC_SEARCH_LIBS([keypad],[tinfow])
41 +
42 + AC_MSG_CHECKING([for Unicode-aware ncurses])
43 +
44
45 diff --git a/app-dicts/ydpdict/ydpdict-1.0.3.ebuild b/app-dicts/ydpdict/ydpdict-1.0.3.ebuild
46 new file mode 100644
47 index 00000000000..edd45d3eab3
48 --- /dev/null
49 +++ b/app-dicts/ydpdict/ydpdict-1.0.3.ebuild
50 @@ -0,0 +1,58 @@
51 +# Copyright 1999-2020 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=7
55 +inherit autotools
56 +
57 +DESCRIPTION="Interface for the Collins Dictionary"
58 +HOMEPAGE="https://github.com/wojtekka/ydpdict"
59 +SRC_URI="https://github.com/wojtekka/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
60 +
61 +LICENSE="GPL-2"
62 +SLOT="0"
63 +KEYWORDS="~amd64 ~x86"
64 +IUSE="ao"
65 +
66 +RDEPEND="
67 + app-dicts/libydpdict
68 + sys-libs/ncurses[unicode]
69 + ao? ( media-libs/libao )
70 +"
71 +DEPEND="
72 + ${RDEPEND}
73 +"
74 +BDEPEND="
75 + virtual/pkgconfig
76 +"
77 +DOCS=(
78 + README.md
79 +)
80 +PATCHES=(
81 + "${FILESDIR}"/${PN}-1.0.3-tinfo.patch
82 +)
83 +
84 +src_prepare() {
85 + default
86 + eautoreconf
87 +}
88 +
89 +src_configure() {
90 + econf \
91 + $(use_with ao libao)
92 +}
93 +
94 +src_install() {
95 + dodir "/etc"
96 + default
97 +}
98 +
99 +pkg_postinst() {
100 + echo
101 + elog "Note that to use this program you'll need the original Collins Dictionary"
102 + elog "datafiles (dict100.*, dict101.*). These can be found in the Dabasase/"
103 + elog "directory of the Windows version of the Collins dictionary. Once you obtain"
104 + elog "the files, put them into /usr/share/ydpdict"
105 + elog
106 + elog "Some configuration options can be set in /etc/ydpdict.conf"
107 + echo
108 +}