aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlammie Pirinen <flammie@gentoo.org>2012-08-01 02:45:22 +0300
committerFlammie Pirinen <flammie@gentoo.org>2012-08-01 02:45:22 +0300
commit052328668bc99a72b6b383e7517456c08c0bd4cd (patch)
treedcb7d1427bb5afb3ec44195886f772627db2c25a /sci-misc/foma/foma-0.9.16_alpha.ebuild
parentMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/sci (diff)
downloadsci-052328668bc99a72b6b383e7517456c08c0bd4cd.tar.gz
sci-052328668bc99a72b6b383e7517456c08c0bd4cd.tar.bz2
sci-052328668bc99a72b6b383e7517456c08c0bd4cd.zip
Bump foma to version 0.9.16alpha.
(Portage version: 2.1.10.65/git/Linux i686, unsigned Manifest commit)
Diffstat (limited to 'sci-misc/foma/foma-0.9.16_alpha.ebuild')
-rw-r--r--sci-misc/foma/foma-0.9.16_alpha.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-misc/foma/foma-0.9.16_alpha.ebuild b/sci-misc/foma/foma-0.9.16_alpha.ebuild
new file mode 100644
index 000000000..81c050324
--- /dev/null
+++ b/sci-misc/foma/foma-0.9.16_alpha.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# 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://code.google.com/p/foma/"
+SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+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_prepare() {
+ sed \
+ -e "s/^CFLAGS =/CFLAGS = ${CFLAGS} -fPIC/" \
+ -e 's/ltermcap/lcurses/' \
+ -e 's/ldconfig/true/g' \
+ -i Makefile || die
+}
+
+src_compile() {
+ emake
+ emake libfoma
+}
+
+src_install() {
+ # since install target doesn't have DESTDIR
+ dobin foma flookup cgflookup
+ dolib.so libfoma.so.${PV/_alpha/}
+ insinto /usr/include
+ doins foma.h fomalib.h fomalibconf.h
+ dodoc README README.symbols
+}