diff options
author | Peter Volkov <pva@gentoo.org> | 2008-12-16 19:39:34 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-12-16 19:39:34 +0000 |
commit | 1ca8f3c69897a03170bcd1a411b13af9a8cad77c (patch) | |
tree | c69b47fd945e43daa999a8355e0a0eb9c0d6a36b /app-text/sdcv/sdcv-0.4.2.ebuild | |
parent | Initial import. (diff) | |
download | gentoo-2-1ca8f3c69897a03170bcd1a411b13af9a8cad77c.tar.gz gentoo-2-1ca8f3c69897a03170bcd1a411b13af9a8cad77c.tar.bz2 gentoo-2-1ca8f3c69897a03170bcd1a411b13af9a8cad77c.zip |
Initial import, bug #118359, thank Qiangning Hong and Andrew Savchenko for initial ebuild.
(Portage version: 2.2_rc17/cvs/Linux 2.6.26-openvz.git-89451f9 i686)
Diffstat (limited to 'app-text/sdcv/sdcv-0.4.2.ebuild')
-rw-r--r-- | app-text/sdcv/sdcv-0.4.2.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-text/sdcv/sdcv-0.4.2.ebuild b/app-text/sdcv/sdcv-0.4.2.ebuild new file mode 100644 index 000000000000..a7b08400e0b6 --- /dev/null +++ b/app-text/sdcv/sdcv-0.4.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2008 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.1 2008/12/16 19:39:34 pva 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 +} |