/[gentoo-x86]/app-text/sdcv/sdcv-0.4.2.ebuild
Gentoo

Contents of /app-text/sdcv/sdcv-0.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 30 09:47:58 2009 UTC (4 years, 11 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
amd64/x86 stable, bug #289473
(Portage version: 2.2_rc46/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/sdcv/sdcv-0.4.2.ebuild,v 1.1 2008/12/16 19:39:34 pva Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Console version of Stardict program"
8 HOMEPAGE="http://sdcv.sourceforge.net"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 x86"
14 IUSE="nls test"
15
16 RDEPEND="sys-libs/zlib
17 sys-libs/readline
18 >=dev-libs/glib-2.6.1"
19 DEPEND="${RDEPEND}
20 test? ( app-dicts/stardict-quick-ru-en )
21 nls? ( >=sys-devel/gettext-0.14.1 )"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 epatch "${FILESDIR}/${P}-missing-headers.patch"
27 epatch "${FILESDIR}/${P}-crash.patch"
28 epatch "${FILESDIR}/${P}-g-handling.patch"
29 epatch "${FILESDIR}/${P}-respect-HOME.patch"
30 }
31
32 src_compile() {
33 econf $(use_enable nls)
34 emake || die "emake failed"
35 }
36
37 src_test() {
38 export HOME=${T}
39 mkdir -p "${HOME}/.stardict/dic"
40 emake check || die
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" install || die
45 dodoc AUTHORS BUGS ChangeLog NEWS README TODO
46 }

  ViewVC Help
Powered by ViewVC 1.1.20