public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-dicts/ydpdict/files/, app-dicts/ydpdict/
@ 2020-08-19 10:48 Jeroen Roovers
  0 siblings, 0 replies; only message in thread
From: Jeroen Roovers @ 2020-08-19 10:48 UTC (permalink / raw
  To: gentoo-commits

commit:     5b5328170828df598035b475b4ce4d6e87eed1da
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 19 10:46:08 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Wed Aug 19 10:48:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b532817

app-dicts/ydpdict: Version 1.0.3

Package-Manager: Portage-3.0.3, Repoman-3.0.0
Closes: https://bugs.gentoo.org/show_bug.cgi?id=690938
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707730
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 app-dicts/ydpdict/Manifest                        |  1 +
 app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch | 10 ++++
 app-dicts/ydpdict/ydpdict-1.0.3.ebuild            | 58 +++++++++++++++++++++++
 3 files changed, 69 insertions(+)

diff --git a/app-dicts/ydpdict/Manifest b/app-dicts/ydpdict/Manifest
index 2961d2c4902..b47f149e45d 100644
--- a/app-dicts/ydpdict/Manifest
+++ b/app-dicts/ydpdict/Manifest
@@ -1 +1,2 @@
 DIST ydpdict-1.0.2.tar.gz 363774 BLAKE2B 0ca86e0180af559f9440f8a598672e5e321d84f37725f0233ba0d666119f20308c0229fd1dd0197a8c86733af17f1cce53b990c63b260673871ab6658d88a5c5 SHA512 b2395d88e289171daae3aa47d9c70a2ca1c7b3a3998c1a9751c56e1dc8d17138bc38a172581edcad02c35d5252041c6942a3c416a632def6121072650bcb7e61
+DIST ydpdict-1.0.3.tar.gz 185721 BLAKE2B 1db80dc20dd6d71c4b7fed2051bbfae1021fd1ea15ca1f993e8e095912fbcc8d599d8f480143d185fd11c6a1414d7f29ae67a9f5cffda624b434d198cddc5c68 SHA512 ca50c485f10aa4c4691a27a474a5ae814be3bb183b4927728f14de67af1e11a281e5272fc5777d6573e69dd00d3da2223b78d729132764338c92489f20eb17e8

diff --git a/app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch b/app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch
new file mode 100644
index 00000000000..30c5ddedfdd
--- /dev/null
+++ b/app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,6 +24,7 @@
+ AC_CHECK_HEADER([ncursesw/ncurses.h], [have_ncursesw_ncurses_h=yes])
+ AC_CHECK_HEADER([curses.h], [have_curses_h=yes])
+ AC_CHECK_LIB([ncursesw], [initscr], [have_libncursesw=yes])
++AC_SEARCH_LIBS([keypad],[tinfow])
+ 
+ AC_MSG_CHECKING([for Unicode-aware ncurses])
+ 

diff --git a/app-dicts/ydpdict/ydpdict-1.0.3.ebuild b/app-dicts/ydpdict/ydpdict-1.0.3.ebuild
new file mode 100644
index 00000000000..edd45d3eab3
--- /dev/null
+++ b/app-dicts/ydpdict/ydpdict-1.0.3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+DESCRIPTION="Interface for the Collins Dictionary"
+HOMEPAGE="https://github.com/wojtekka/ydpdict"
+SRC_URI="https://github.com/wojtekka/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ao"
+
+RDEPEND="
+	app-dicts/libydpdict
+	sys-libs/ncurses[unicode]
+	ao? ( media-libs/libao )
+"
+DEPEND="
+	${RDEPEND}
+"
+BDEPEND="
+	virtual/pkgconfig
+"
+DOCS=(
+	README.md
+)
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.0.3-tinfo.patch
+)
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		$(use_with ao libao)
+}
+
+src_install() {
+	dodir "/etc"
+	default
+}
+
+pkg_postinst() {
+	echo
+	elog "Note that to use this program you'll need the original Collins Dictionary"
+	elog "datafiles (dict100.*, dict101.*). These can be found in the Dabasase/"
+	elog "directory of the Windows version of the Collins dictionary. Once you obtain"
+	elog "the files, put them into /usr/share/ydpdict"
+	elog
+	elog "Some configuration options can be set in /etc/ydpdict.conf"
+	echo
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-19 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-19 10:48 [gentoo-commits] repo/gentoo:master commit in: app-dicts/ydpdict/files/, app-dicts/ydpdict/ Jeroen Roovers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox