Gentoo Archives: gentoo-commits

From: Flammie Pirinen <flammie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-misc/sfst/
Date: Wed, 01 Aug 2012 00:50:00
Message-Id: 1343781894.7b2f61c42b449e1a5f1b3388bd9740d6d214ba74.flammie@gentoo
1 commit: 7b2f61c42b449e1a5f1b3388bd9740d6d214ba74
2 Author: Flammie Pirinen <flammie <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 1 00:44:54 2012 +0000
4 Commit: Flammie Pirinen <flammie <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 1 00:44:54 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=7b2f61c4
7
8 Version bump sfst to 1.4.6g
9
10 (Portage version: 2.1.10.65/git/Linux i686, unsigned Manifest commit)
11
12 ---
13 sci-misc/sfst/ChangeLog | 7 +++-
14 sci-misc/sfst/sfst-1.4.6g.ebuild | 83 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 89 insertions(+), 1 deletions(-)
16
17 diff --git a/sci-misc/sfst/ChangeLog b/sci-misc/sfst/ChangeLog
18 index 127bdf9..ac6a40d 100644
19 --- a/sci-misc/sfst/ChangeLog
20 +++ b/sci-misc/sfst/ChangeLog
21 @@ -1,7 +1,12 @@
22 # ChangeLog for sci-misc/sfst
23 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
24 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 +*sfst-1.4.6g (01 Aug 2012)
28 +
29 + 01 Aug 2012; Flammie Pirinen <flammie@g.o> +sfst-1.4.6g.ebuild:
30 + Version bump sfst to 1.4.6g.
31 +
32 24 Oct 2011; Justin Lecher <jlec@g.o> metadata.xml:
33 Removed no-herd from herd tag in metadata.xml
34
35
36 diff --git a/sci-misc/sfst/sfst-1.4.6g.ebuild b/sci-misc/sfst/sfst-1.4.6g.ebuild
37 new file mode 100644
38 index 0000000..6222fdd
39 --- /dev/null
40 +++ b/sci-misc/sfst/sfst-1.4.6g.ebuild
41 @@ -0,0 +1,83 @@
42 +# Copyright 1999-2012 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +# $Header: $
45 +
46 +EAPI=4
47 +
48 +inherit elisp-common eutils
49 +
50 +MY_PN="SFST"
51 +MY_P="${MY_PN}-${PV}"
52 +
53 +DESCRIPTION="Uni Stuttgart Finite State Transducer tools"
54 +HOMEPAGE="http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html"
55 +SRC_URI="
56 + ftp://ftp.ims.uni-stuttgart.de/pub/corpora/${MY_PN}/${MY_P}.tar.gz
57 + vim-syntax? ( ftp://ftp.ims.uni-stuttgart.de/pub/corpora/${MY_PN}/vim-mode.tar.gz )
58 + emacs? ( http://www.cis.uni-muenchen.de/~wastl/emacs/sfst.el )"
59 +
60 +LICENSE="GPL-2"
61 +SLOT="0"
62 +KEYWORDS="~x86"
63 +IUSE="emacs vim-syntax"
64 +
65 +RDEPEND="sys-libs/readline"
66 +DEPEND="${RDEPEND}
67 + sys-devel/bison
68 + sys-devel/flex
69 + sys-apps/sed
70 + emacs? ( virtual/emacs )"
71 +
72 +S="${WORKDIR}/${MY_PN}"
73 +
74 +src_prepare() {
75 + # settings in makefile are a bit hacky
76 + #epatch "${FILESDIR}"/SFST-1.3-gcc43.patch || die "patch failed"
77 + sed \
78 + -e "s/^CFLAGS = -O3/CFLAGS = ${CFLAGS}/g" \
79 + -e "s/local//g" \
80 + -e 's/strip/echo strip removed: /g' \
81 + -e 's/# FPIC/FPIC/' \
82 + -e 's/ $(PREFIX/ $(DESTDIR)$(PREFIX/g' \
83 + -e 's/ldconfig/true/' \
84 + -e 's/$(INSTALL_LIBS)/$(INSTALL_DIR) $(DESTDIR)$(PREFIX)\/lib\n\t\0/' \
85 + -i "${S}"/src/Makefile || die "sed failed"
86 + cd "${S}"
87 + if use emacs ; then
88 + cp "${DISTDIR}/sfst.el" "${S}"
89 + fi
90 + if use vim-syntax ; then
91 + mv "${WORKDIR}"/INSTALL "${S}"/INSTALL-vim-syntax
92 + mv "${WORKDIR}"/sfst.vim "${S}"/
93 + fi
94 +}
95 +
96 +src_compile() {
97 + emake -C "${S}/src"
98 + if use emacs ; then
99 + cd "${S}"
100 + elisp-compile *.el || die "could not compile elisp"
101 + fi
102 +}
103 +
104 +src_install() {
105 + cd "${S}/src"
106 + # destdir works but prefix fails
107 + emake DESTDIR="${D}" install maninstall libinstall
108 + cd "${S}"
109 + dodoc README
110 + insinto /usr/share/doc/${PF}/
111 + doins doc/SFST-Manual.pdf doc/SFST-Tutorial.pdf
112 + insinto /usr/share/${PN}
113 + doins -r data/*
114 + if use vim-syntax ; then
115 + insinto /usr/share/vim/vimfiles/syntax/
116 + doins sfst.vim
117 + insinto /usr/share/vim/vimfiles/ftdetect/
118 + newins "${FILESDIR}"/ftdetect-sfst.vim sfst.vim
119 + dodoc INSTALL-vim-syntax
120 + fi
121 + if use emacs ; then
122 + elisp-install ${PN} *.el *.elc || die "could not install elisp"
123 + fi
124 +}