diff options
Diffstat (limited to 'app-text/rhyme/rhyme-0.9-r1.ebuild')
-rw-r--r-- | app-text/rhyme/rhyme-0.9-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-text/rhyme/rhyme-0.9-r1.ebuild b/app-text/rhyme/rhyme-0.9-r1.ebuild new file mode 100644 index 000000000000..adce0c1beeaa --- /dev/null +++ b/app-text/rhyme/rhyme-0.9-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |