blob: 597d080f00e761bbe20adc2f354bb96f84289598 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/rhyme/rhyme-0.9-r1.ebuild,v 1.4 2012/10/06 17:00:10 armin76 Exp $
EAPI="2"
inherit toolchain-funcs
# missing files ...
RESTRICT="test"
DESCRIPTION="Console based Rhyming Dictionary"
HOMEPAGE="http://rhyme.sourceforge.net/"
SRC_URI="mirror://sourceforge/rhyme/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-libs/readline-4.3
>=sys-libs/gdbm-1.8.0"
RDEPEND="${DEPEND}"
src_prepare() {
# termcap is used by default, switch to ncurses
sed -i Makefile \
-e 's|-ltermcap||g' \
-e 's|-o rhyme|$(LDFLAGS) &|g' \
|| die "sed Makefile"
}
src_compile() {
# Disable parallell building wrt bug #125967
emake -j1 CC="$(tc-getCC)" FLAGS="${CFLAGS}" || die "emake failed"
}
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
}
|