aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlammie <Flammie@32389bae-6d03-0410-99cf-db05cde120eb>2008-10-20 14:37:44 +0000
committerFlammie <Flammie@32389bae-6d03-0410-99cf-db05cde120eb>2008-10-20 14:37:44 +0000
commit6b144eca90ce1cc16695eed27b6fef26a7477609 (patch)
treeb52ae823258cac185fc895e28e60aed8fea4400c /sci-misc/openfst/openfst-20080422_beta.ebuild
parentbump sys-cluster/openmpi-1.2.8 and clean up old version. (diff)
downloadsci-6b144eca90ce1cc16695eed27b6fef26a7477609.tar.gz
sci-6b144eca90ce1cc16695eed27b6fef26a7477609.tar.bz2
sci-6b144eca90ce1cc16695eed27b6fef26a7477609.zip
Fix bug #242574, version bump and gcc-4.3 patch.
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1315 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-misc/openfst/openfst-20080422_beta.ebuild')
-rw-r--r--sci-misc/openfst/openfst-20080422_beta.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/sci-misc/openfst/openfst-20080422_beta.ebuild b/sci-misc/openfst/openfst-20080422_beta.ebuild
new file mode 100644
index 000000000..b43cb808a
--- /dev/null
+++ b/sci-misc/openfst/openfst-20080422_beta.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib
+
+MY_PN="OpenFst"
+MY_P="${MY_PN}-beta-${PV/_beta/}"
+
+DESCRIPTION="Finite State Transducer tools by Google et al."
+HOMEPAGE="http://www.openfst.org"
+SRC_URI="http://cims.nyu.edu/~openfst/twiki/pub/FST/FstDownload/${MY_P}.tgz"
+
+LICENSE="Apache-2.0"
+
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/OpenFst/fst"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}/${P}-gcc-4.3.patch" || die "Patching failed"
+ cd "${S}"
+ sed -i -e "s/OPT=\(.*\)/OPT=-fPIC ${CXXFLAGS} \1/g" bin/Makefile
+ lib/Makefile
+}
+
+src_compile() {
+ emake all || die "emake failed"
+}
+
+src_install() {
+ # bin dir has .o and stuff
+ # bins have insecure runpath’s
+ for f in $(find bin/ -executable ) ; do
+ dobin ${f}
+ done
+ dodir /usr/include/fst
+ dodir /usr/include/fst/lib
+ insinto /usr/include/fst/lib
+ doins lib/{fst,arc,compat,properties,register,symbol-table,util}.h
+ dodir /usr/$(get_libdir)
+ insinto /usr/$(get_libdir)
+ doins lib/libfst.so
+ doins bin/libfstmain.so
+ cd "${WORKDIR}/${MY_PN}"
+ dodoc README
+}
+
+src_test() {
+ einfo "make test can take a few hours on moderately modern systems"
+ make test || die "check failed"
+}
+