aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-06-25 19:00:15 +0200
committerJustin Lecher <jlec@gentoo.org>2011-06-25 19:00:15 +0200
commitf5548837cf53a7dd3c36741d2651560c6fbfdeb5 (patch)
tree0205b91b7314bd9ab9c90253286b31742eed300a /sci-misc/sfst/sfst-1.4.2.ebuild
parentCleaned ebuild (diff)
downloadsci-f5548837cf53a7dd3c36741d2651560c6fbfdeb5.tar.gz
sci-f5548837cf53a7dd3c36741d2651560c6fbfdeb5.tar.bz2
sci-f5548837cf53a7dd3c36741d2651560c6fbfdeb5.zip
Cleaned ebuild
(Portage version: 2.2.0_alpha41/git/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'sci-misc/sfst/sfst-1.4.2.ebuild')
-rw-r--r--sci-misc/sfst/sfst-1.4.2.ebuild37
1 files changed, 19 insertions, 18 deletions
diff --git a/sci-misc/sfst/sfst-1.4.2.ebuild b/sci-misc/sfst/sfst-1.4.2.ebuild
index f7c5aa793..73d5664b6 100644
--- a/sci-misc/sfst/sfst-1.4.2.ebuild
+++ b/sci-misc/sfst/sfst-1.4.2.ebuild
@@ -2,6 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI=4
+
inherit elisp eutils
MY_PN="SFST"
@@ -9,36 +11,37 @@ MY_P="${MY_PN}-${PV}"
DESCRIPTION="Uni Stuttgart Finite State Transducer tools"
HOMEPAGE="http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html"
-SRC_URI="ftp://ftp.ims.uni-stuttgart.de/pub/corpora/${MY_PN}/${MY_P}.tar.gz
-vim-syntax? ( ftp://ftp.ims.uni-stuttgart.de/pub/corpora/${MY_PN}/vim-mode.tar.gz )
-emacs? ( http://www.cis.uni-muenchen.de/~wastl/emacs/sfst.el )"
+SRC_URI="
+ ftp://ftp.ims.uni-stuttgart.de/pub/corpora/${MY_PN}/${MY_P}.tar.gz
+ vim-syntax? ( ftp://ftp.ims.uni-stuttgart.de/pub/corpora/${MY_PN}/vim-mode.tar.gz )
+ emacs? ( http://www.cis.uni-muenchen.de/~wastl/emacs/sfst.el )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="emacs vim-syntax"
-DEPEND="sys-libs/readline
-sys-devel/bison
-sys-devel/flex
-sys-apps/sed"
+DEPEND="
+ sys-libs/readline
+ sys-devel/bison
+ sys-devel/flex
+ sys-apps/sed"
RDEPEND="sys-libs/readline"
S="${WORKDIR}/${MY_PN}"
-
-src_unpack() {
- unpack ${A}
+src_prepare() {
# settings in makefile are a bit hacky
#epatch "${FILESDIR}"/SFST-1.3-gcc43.patch || die "patch failed"
- sed -i -e "s/^CFLAGS = -O3/CFLAGS = ${CFLAGS}/g" \
+ sed \
+ -e "s/^CFLAGS = -O3/CFLAGS = ${CFLAGS}/g" \
-e "s/local//g" \
-e 's/strip/echo strip removed: /g' \
-e 's/# FPIC/FPIC/' \
-e 's/ $(PREFIX/ $(DESTDIR)$(PREFIX/g' \
-e 's/ldconfig/true/' \
-e 's/$(INSTALL_LIBS)/$(INSTALL_DIR) $(DESTDIR)$(PREFIX)\/lib\n\t\0/' \
- "${S}"/src/Makefile || die "sed failed"
+ -i "${S}"/src/Makefile || die "sed failed"
cd "${S}"
if use emacs ; then
cp "${DISTDIR}/sfst.el" "${S}"
@@ -50,8 +53,7 @@ src_unpack() {
}
src_compile() {
- cd "${S}/src"
- emake || die "make failed"
+ emake -C "${S}/src"
if use emacs ; then
cd "${S}"
elisp_src_compile
@@ -61,11 +63,11 @@ src_compile() {
src_install() {
cd "${S}/src"
# destdir works but prefix fails
- emake DESTDIR="${D}" install maninstall libinstall || die "install failed"
+ emake DESTDIR="${D}" install maninstall libinstall
cd "${S}"
- dodoc README || die "doc failed"
+ dodoc README
insinto /usr/share/doc/${PF}/
- doins doc/SFST-Manual.pdf doc/SFST-Tutorial.pdf || die "doc failed"
+ doins doc/SFST-Manual.pdf doc/SFST-Tutorial.pdf
insinto /usr/share/${PN}
doins -r data/*
if use vim-syntax ; then
@@ -79,4 +81,3 @@ src_install() {
elisp_src_install
fi
}
-