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-text/sdcv/sdcv-0.4.2.ebuild

47 lines
1.1 KiB

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/sdcv/sdcv-0.4.2.ebuild,v 1.2 2009/10/30 09:47:58 maekke Exp $
inherit eutils
DESCRIPTION="Console version of Stardict program"
HOMEPAGE="http://sdcv.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="nls test"
RDEPEND="sys-libs/zlib
sys-libs/readline
>=dev-libs/glib-2.6.1"
DEPEND="${RDEPEND}
test? ( app-dicts/stardict-quick-ru-en )
nls? ( >=sys-devel/gettext-0.14.1 )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-missing-headers.patch"
epatch "${FILESDIR}/${P}-crash.patch"
epatch "${FILESDIR}/${P}-g-handling.patch"
epatch "${FILESDIR}/${P}-respect-HOME.patch"
}
src_compile() {
econf $(use_enable nls)
emake || die "emake failed"
}
src_test() {
export HOME=${T}
mkdir -p "${HOME}/.stardict/dic"
emake check || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS BUGS ChangeLog NEWS README TODO
}