| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-dicts/ydpdict/ydpdict-1.0.0.ebuild,v 1.5 2012/05/03 02:18:37 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
|
| 7 |
DESCRIPTION="Interface for the Collins Dictionary."
|
| 8 |
HOMEPAGE="http://toxygen.net/ydpdict/"
|
| 9 |
SRC_URI="http://toxygen.net/${PN}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~amd64 ~x86"
|
| 14 |
IUSE="ao"
|
| 15 |
|
| 16 |
RDEPEND=">=app-dicts/libydpdict-${PV}
|
| 17 |
sys-libs/ncurses[unicode]
|
| 18 |
ao? ( media-libs/libao )"
|
| 19 |
|
| 20 |
DEPEND="${RDEPEND}
|
| 21 |
virtual/pkgconfig"
|
| 22 |
|
| 23 |
src_configure() {
|
| 24 |
econf \
|
| 25 |
$(use_with ao libao) \
|
| 26 |
|| die "econf failed"
|
| 27 |
}
|
| 28 |
|
| 29 |
src_install() {
|
| 30 |
dodir "/etc"
|
| 31 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 32 |
|
| 33 |
dodoc README
|
| 34 |
}
|
| 35 |
|
| 36 |
pkg_postinst() {
|
| 37 |
echo
|
| 38 |
elog "Note that to use this program you'll need the original Collins Dictionary"
|
| 39 |
elog "datafiles (dict100.*, dict101.*). These can be found in the Dabasase/"
|
| 40 |
elog "directory of the Windows version of the Collins dictionary. Once you obtain"
|
| 41 |
elog "the files, put them into /usr/share/ydpdict"
|
| 42 |
elog
|
| 43 |
elog "Some configuration options can be set in /etc/ydpdict.conf"
|
| 44 |
echo
|
| 45 |
}
|