aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-03-17 16:21:32 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-03-17 16:21:32 +0000
commit76ffb781ed7a917f23b67454e9f950e5e3b83527 (patch)
tree94fa8e1ddc7cb9ef80b78ea7896a5845f074f95b /sci-misc/sfst
parentmove stuff to root (diff)
downloadsci-76ffb781ed7a917f23b67454e9f950e5e3b83527.tar.gz
sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.tar.bz2
sci-76ffb781ed7a917f23b67454e9f950e5e3b83527.zip
moved overlay to new directory
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@979 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-misc/sfst')
-rw-r--r--sci-misc/sfst/ChangeLog17
-rw-r--r--sci-misc/sfst/Manifest10
-rw-r--r--sci-misc/sfst/files/50sfst-gentoo.el9
-rw-r--r--sci-misc/sfst/files/ftdetect-sfst.vim2
-rw-r--r--sci-misc/sfst/metadata.xml14
-rw-r--r--sci-misc/sfst/sfst-1.1.ebuild75
-rw-r--r--sci-misc/sfst/sfst-1.2.ebuild76
7 files changed, 203 insertions, 0 deletions
diff --git a/sci-misc/sfst/ChangeLog b/sci-misc/sfst/ChangeLog
new file mode 100644
index 000000000..2370a7c1c
--- /dev/null
+++ b/sci-misc/sfst/ChangeLog
@@ -0,0 +1,17 @@
+# ChangeLog for sci-misc/sfst
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*sfst-1.2 (11 Mar 2008)
+
+ 11 Mar 2008; Flammie Pirinen <flammie@gentoo.org> +sfst-1.2.ebuild:
+ Version bump.
+
+ 11 Jan 2008; Flammie Pirinen <flammie@gentoo.org> sfst-1.1.ebuild:
+ sed CFLAGS.
+
+*sfst-1.1 (20 Dec 2007)
+
+ 20 Dec 2007; Flammie Pirinen <flammie@gentoo.org> +sfst-1.1.ebuild,
+ +files/ftdetect-sfst.vim, +files/50sfst-gentoo.el:
+ Initial import. Includse vim and emacs syntax support.
diff --git a/sci-misc/sfst/Manifest b/sci-misc/sfst/Manifest
new file mode 100644
index 000000000..76012bf2c
--- /dev/null
+++ b/sci-misc/sfst/Manifest
@@ -0,0 +1,10 @@
+AUX 50sfst-gentoo.el 215 RMD160 80bbc30f9e67a4a065d521593fa2a598dd721494 SHA1 f5c7c4e6a13ad8178465876f706cb42eeecf1be2 SHA256 d8207a2fb7d0d4d3c81b014cd0e5501b8efcfb196d18e100ac011776cc34addf
+AUX ftdetect-sfst.vim 83 RMD160 13bac861a8cd65f7896274c979a719795b8a69aa SHA1 15a75ae33e048a72bc00bd7ebb8f7d7db2811775 SHA256 8e48a335cebddc3f82af95bd826717b30e53164559f92124c20442eafac869e0
+DIST SFST-1.1.tar.gz 469807 RMD160 da811f26730f25c452a983b561d11010f4fa8c1c SHA1 544e810b5104577670e2c5fa1f5377d05843e373 SHA256 5ab616dfe93c09f72c3a2b11502ef48de6b8db09a404564867d4d713086735cf
+DIST SFST-1.2.tar.gz 477287 RMD160 359d61af4e9ab95d1d3d16f231e350b812285ebd SHA1 882440c4f2dbe7b762c37e4fc7506a1d9cb5649c SHA256 63c0ad5ea180841afaa7b44c18ffb6f64aa406e2c4bd801d72e360706519b075
+DIST sfst.el 4874 RMD160 cb0eb8e9c11706ee277fd620145e2cad9449e394 SHA1 70aa9078df4d820e7859f442b6dd9ac00d32f778 SHA256 8175a3f58672481003fc4ed369d58ad334a16c3cbaf81c82c17ce3cba1b9bbfd
+DIST vim-mode.tar.gz 1104 RMD160 c7e3f79fb5bd466724c3d456a92fbeb07d355515 SHA1 83b9651a7e4ca9642b16be416e616734e8c3f88c SHA256 a62ba91c40da75be389a334db62cc2b4904bedfac657b185012b10f3f55dfe09
+EBUILD sfst-1.1.ebuild 1835 RMD160 3e64bed7598acbd3ae730080aa5aa7b48f13985a SHA1 0b51f9ecf32c4f95fc9b262de3ddf51571b3e63d SHA256 e0bafa4204212c14209a663d856ffe69e93779f12533345472e1abf120dda4ce
+EBUILD sfst-1.2.ebuild 1794 RMD160 fa733feb042ca15b6ec4b4461139e911d042ad30 SHA1 60b1dcb5694571080e92dd2f922d9c4eac38eece SHA256 ccf21e4dafdaec8180b57883f5f1c8cf981d8d50afc26e444819250e44bd275f
+MISC ChangeLog 515 RMD160 7135f0731522adbce08e464098e38d9519908430 SHA1 42e325c343678b70d891f66762571c96521a674e SHA256 425e9a7c933b8e5bbe7f52c6bde186167b60db7a70474682b98bf9981400cb45
+MISC metadata.xml 493 RMD160 ea55577c02d3767473d78e1e2b00cd8b556b9a13 SHA1 2a237598bbecb05fe3f58923c084cf8b12cbe52e SHA256 7b452c2e5e1db167cf8064c8620a80101a4f5e8c655efff6e3e34de20ed98e73
diff --git a/sci-misc/sfst/files/50sfst-gentoo.el b/sci-misc/sfst/files/50sfst-gentoo.el
new file mode 100644
index 000000000..e3e9da983
--- /dev/null
+++ b/sci-misc/sfst/files/50sfst-gentoo.el
@@ -0,0 +1,9 @@
+
+;;; site-lisp configuration for sfst-syntax
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'sfst-mode "ebuild-mode"
+ "Major mode for SFST-PL files" t)
+
+(add-to-list 'auto-mode-alist '("\\.fst\\'" . sfst-mode))
diff --git a/sci-misc/sfst/files/ftdetect-sfst.vim b/sci-misc/sfst/files/ftdetect-sfst.vim
new file mode 100644
index 000000000..df702ad49
--- /dev/null
+++ b/sci-misc/sfst/files/ftdetect-sfst.vim
@@ -0,0 +1,2 @@
+" SFST ftdetect for vim sfst-syntax
+au BufRead,BufNewFile *.sfst set filetype=sfst
diff --git a/sci-misc/sfst/metadata.xml b/sci-misc/sfst/metadata.xml
new file mode 100644
index 000000000..913dfd00e
--- /dev/null
+++ b/sci-misc/sfst/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>flammie@gentoo.org</email>
+ <description>N.B. This is used in my master’s thesis project</description>
+</maintainer>
+<longdescription>
+ SFST is open source package for compiling and using Finite State
+ Transducers, mainly for linguistic uses, made in university of
+ Stuttgart, Germany.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-misc/sfst/sfst-1.1.ebuild b/sci-misc/sfst/sfst-1.1.ebuild
new file mode 100644
index 000000000..f33fb36c5
--- /dev/null
+++ b/sci-misc/sfst/sfst-1.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit elisp
+
+MY_PN="SFST"
+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 )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="vim-syntax emacs"
+
+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}
+ cd "${S}"
+ sed -i -e 's_/usr/local_$(destdir)/usr_g' -e 's/= install/= install -D/g' \
+ -e 's/^strip:/all:/g' -e 's/strip $(ALLPROGRAMS)/echo/g' \
+ -e "s/^CFLAGS = -O4 \(.*\)/CFLAGS = ${CFLAGS} \1/g" \
+ src/Makefile || die "sed failed"
+ if use emacs ; then
+ cp "${DISTDIR}/sfst.el" "${S}"
+ fi
+ if use vim-syntax ; then
+ mv "${WORKDIR}"/INSTALL "${S}"/INSTALL-vim-syntax
+ mv "${WORKDIR}"/sfst.vim "${S}"/
+ fi
+}
+
+src_compile() {
+ cd "${S}/src"
+ emake || die "make failed"
+ if use emacs ; then
+ cd "${S}"
+ elisp_src_compile
+ fi
+}
+
+src_install() {
+ cd "${S}/src"
+ emake destdir="${D}" install maninstall || die "install failed"
+ cd "${S}"
+ dodoc README || die "doc failed"
+ insinto /usr/share/doc/${PF}/
+ doins doc/SFST-Manual.pdf doc/SFST-Tutorial.pdf || die "doc failed"
+ insinto /usr/share/${PN}
+ doins -r data/*
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/syntax/
+ doins sfst.vim
+ insinto /usr/share/vim/vimfiles/ftdetect/
+ newins "${FILESDIR}"/ftdetect-sfst.vim sfst.vim
+ dodoc INSTALL-vim-syntax
+ fi
+ if use emacs ; then
+ elisp_src_install
+ fi
+}
+
diff --git a/sci-misc/sfst/sfst-1.2.ebuild b/sci-misc/sfst/sfst-1.2.ebuild
new file mode 100644
index 000000000..7a41d33a2
--- /dev/null
+++ b/sci-misc/sfst/sfst-1.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit elisp
+
+MY_PN="SFST"
+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 )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="vim-syntax emacs"
+
+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}
+ # settings in makefile are a bit hacky
+ sed -i -e "s/^CFLAGS = -O3/CFLAGS = ${CFLAGS}/g" \
+ -e "s/local//g" \
+ "${S}"/src/Makefile || die "sed failed"
+ cd "${S}"
+ if use emacs ; then
+ cp "${DISTDIR}/sfst.el" "${S}"
+ fi
+ if use vim-syntax ; then
+ mv "${WORKDIR}"/INSTALL "${S}"/INSTALL-vim-syntax
+ mv "${WORKDIR}"/sfst.vim "${S}"/
+ fi
+}
+
+src_compile() {
+ cd "${S}/src"
+ emake || die "make failed"
+ if use emacs ; then
+ cd "${S}"
+ elisp_src_compile
+ fi
+}
+
+src_install() {
+ cd "${S}/src"
+ # destdir works but prefix fails
+ emake DESTDIR="${D}" install maninstall || die "install failed"
+ cd "${S}"
+ dodoc README || die "doc failed"
+ insinto /usr/share/doc/${PF}/
+ doins doc/SFST-Manual.pdf doc/SFST-Tutorial.pdf || die "doc failed"
+ insinto /usr/share/${PN}
+ doins -r data/*
+ if use vim-syntax ; then
+ insinto /usr/share/vim/vimfiles/syntax/
+ doins sfst.vim
+ insinto /usr/share/vim/vimfiles/ftdetect/
+ newins "${FILESDIR}"/ftdetect-sfst.vim sfst.vim
+ dodoc INSTALL-vim-syntax
+ fi
+ if use emacs ; then
+ elisp_src_install
+ fi
+}
+