blob: c71ba2ee6e29f76c31038924de8a90a70bcc5b38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/rhyme/rhyme-0.9.ebuild,v 1.4 2004/04/17 15:11:24 taviso Exp $
inherit ccc
DESCRIPTION="Console based Rhyming Dictionary"
HOMEPAGE="http://rhyme.sourceforge.net/"
SRC_URI="mirror://sourceforge/rhyme/${P}.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 alpha"
IUSE="ncurses"
DEPEND="ncurses? ( >=sys-libs/ncurses-5.3 )
!ncurses? ( >=sys-libs/libtermcap-compat-1.2.3 )
>=sys-libs/readline-4.3
>=sys-libs/gdbm-1.8.0"
src_compile() {
# gcc is hardcoded, switch to user specified compiler
replace-cc-hardcode
# CFLAGS are hardcoded, replace with user specified flags
sed -i "s#\(^FLAGS =\).*#\1 ${CFLAGS}#g" ${S}/Makefile
# termcap is used by default, switch to ncurses if requested.
if use ncurses; then
sed -i 's/-ltermcap/-lncurses/g' ${S}/Makefile
fi
# works fine with parallel build
emake || die
}
src_install() {
# author doesnt use -D for install
dodir /usr/share/rhyme /usr/bin /usr/share/man/man1
einstall BINPATH=${D}/usr/bin \
MANPATH=${D}/usr/share/man/man1 \
RHYMEPATH=${D}/usr/share/rhyme
dodoc INSTALL COPYING
prepallman
}
|