aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-06-25 18:53:27 +0200
committerJustin Lecher <jlec@gentoo.org>2011-06-25 18:53:27 +0200
commit6136e3d67abb65de106073ea5a50850f73ff8069 (patch)
treec34a58117bf5280f362c48872a1dc08814bf7b19 /sci-misc/foma/foma-0.9.14_alpha.ebuild
parentCleaned ebuild (diff)
downloadsci-6136e3d67abb65de106073ea5a50850f73ff8069.tar.gz
sci-6136e3d67abb65de106073ea5a50850f73ff8069.tar.bz2
sci-6136e3d67abb65de106073ea5a50850f73ff8069.zip
Cleaned ebuild
(Portage version: 2.2.0_alpha41/git/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'sci-misc/foma/foma-0.9.14_alpha.ebuild')
-rw-r--r--sci-misc/foma/foma-0.9.14_alpha.ebuild37
1 files changed, 17 insertions, 20 deletions
diff --git a/sci-misc/foma/foma-0.9.14_alpha.ebuild b/sci-misc/foma/foma-0.9.14_alpha.ebuild
index 93616abe6..e0c455ce9 100644
--- a/sci-misc/foma/foma-0.9.14_alpha.ebuild
+++ b/sci-misc/foma/foma-0.9.14_alpha.ebuild
@@ -2,46 +2,43 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI=4
+
MY_P=${P/_alpha/alpha}
DESCRIPTION="Finite state toolkit compatible with Xerox tools"
-
HOMEPAGE="http://foma.sf.net/"
-
SRC_URI="http://dingo.sbs.arizona.edu/~mhulden/${MY_P}.tar.gz"
LICENSE="GPL-2"
-
SLOT="0"
-
KEYWORDS="~x86"
-
IUSE=""
-DEPEND=">=sys-devel/bison-2.3
- >=sys-devel/flex-2.5.35
- sys-libs/readline
- sys-libs/libtermcap-compat"
-
-RDEPEND="${DEPEND}"
+RDEPEND="
+ sys-libs/libtermcap-compat
+ sys-libs/readline"
+DEPEND="${RDEPEND}
+ >=sys-devel/bison-2.3
+ >=sys-devel/flex-2.5.35"
S="${WORKDIR}/${PN}"
-src_unpack() {
- unpack ${A}
- cd ${S}
- sed -i -e "s/^CFLAGS =/CFLAGS = ${CFLAGS} -fPIC/" \
+src_prepare() {
+ sed \
+ -e "s/^CFLAGS =/CFLAGS = ${CFLAGS} -fPIC/" \
-e 's/ltermcap/lcurses/' \
- -e 's/ldconfig/true/g' Makefile
+ -e 's/ldconfig/true/g' \
+ -i Makefile || die
}
src_compile() {
- emake || die "make failed"
- emake libfoma || die "library failed"
+ emake
+ emake libfoma
}
src_install() {
- dobin foma || die "installing binaries failed"
+ dobin foma
dolib.so libfoma.so.0.9.14
- dodoc README README.symbols || die "installing docs failed"
+ dodoc README README.symbols
}