You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-dicts/ydpdict/ydpdict-1.0.2.ebuild

46 lines
1.1 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/ydpdict/ydpdict-1.0.2.ebuild,v 1.1 2013/12/16 06:30:57 patrick Exp $
EAPI=2
DESCRIPTION="Interface for the Collins Dictionary."
HOMEPAGE="http://toxygen.net/ydpdict/"
SRC_URI="http://toxygen.net/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ao"
RDEPEND=">=app-dicts/libydpdict-${PV}
sys-libs/ncurses[unicode]
ao? ( media-libs/libao )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_configure() {
econf \
$(use_with ao libao) \
|| die "econf failed"
}
src_install() {
dodir "/etc"
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README
}
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
}