summaryrefslogtreecommitdiff
path: root/app-dicts/ydpdict
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /app-dicts/ydpdict
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'app-dicts/ydpdict')
-rw-r--r--app-dicts/ydpdict/Manifest3
-rw-r--r--app-dicts/ydpdict/files/ydpdict-1.0.3-tinfo.patch10
-rw-r--r--app-dicts/ydpdict/ydpdict-1.0.3.ebuild58
3 files changed, 71 insertions, 0 deletions
diff --git a/app-dicts/ydpdict/Manifest b/app-dicts/ydpdict/Manifest
index 6fcf0f033594..2b5fe50a434b 100644
--- a/app-dicts/ydpdict/Manifest
+++ b/app-dicts/ydpdict/Manifest
@@ -1,3 +1,6 @@
+AUX ydpdict-1.0.3-tinfo.patch 322 BLAKE2B bfde4da1cb49749e8023f7c8ce56dad45b9ee39e974eb59df41e40a4770debdc8f47f4ae03bba41739bdbfbde5ba90315f454e3fa8f5cf8cee668ffbb109e0d5 SHA512 70e0b4b528dabcf9889eaff2909e11a8481ece94ff50d90c7c53e1b5f655f3954bbf694446ee3cf4fa2ac21b1c329d627412337f17da2e8a0a1ba73a45304857
DIST ydpdict-1.0.2.tar.gz 363774 BLAKE2B 0ca86e0180af559f9440f8a598672e5e321d84f37725f0233ba0d666119f20308c0229fd1dd0197a8c86733af17f1cce53b990c63b260673871ab6658d88a5c5 SHA512 b2395d88e289171daae3aa47d9c70a2ca1c7b3a3998c1a9751c56e1dc8d17138bc38a172581edcad02c35d5252041c6942a3c416a632def6121072650bcb7e61
+DIST ydpdict-1.0.3.tar.gz 185721 BLAKE2B 1db80dc20dd6d71c4b7fed2051bbfae1021fd1ea15ca1f993e8e095912fbcc8d599d8f480143d185fd11c6a1414d7f29ae67a9f5cffda624b434d198cddc5c68 SHA512 ca50c485f10aa4c4691a27a474a5ae814be3bb183b4927728f14de67af1e11a281e5272fc5777d6573e69dd00d3da2223b78d729132764338c92489f20eb17e8
EBUILD ydpdict-1.0.2.ebuild 974 BLAKE2B 6c6097f4e3da1a3e6f0328d4a94c4d666593b977d2200b30e8c04e672016ab5120763501e1c24464be0d780dd4553e7ac1e20a8cd31301d2a3b67bdac53d386d SHA512 fb9adb4c5859e16b8ca6164f96007a4151ba26682530afe76cd31215d361d9b32b380134d77bc94c32a9d3a66080c388a713d17e6d3b8dd9c244aec2c82dbee5
+EBUILD ydpdict-1.0.3.ebuild 1118 BLAKE2B 95dd1423d93dd41b563f63a0ceacfd0165bdbec18eef99d2010fbd2a9467d2d6a3c3f3c28b546f74130b2fe09aa0a5767256a8ae2bec86a24d43f74900e00e28 SHA512 d0840e32d3d910f6fff0e574b885fa3126c1a0d84d8c5a6c05459fc24bdd3b8ab978f5c103cd9e24a110990e380810a8d02140720a02d15271ba4fe41e07cf3d
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
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 000000000000..30c5ddedfdd3
--- /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 000000000000..edd45d3eab31
--- /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
+}