packages: hfst-morph-en/hfst-morph-en-DESTDIR.patch (NEW), hfst-morph-en/hf...
qboosh
qboosh at pld-linux.org
Sun May 29 11:19:36 CEST 2011
Author: qboosh Date: Sun May 29 09:19:36 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/hfst-morph-en:
hfst-morph-en-DESTDIR.patch (NONE -> 1.1) (NEW), hfst-morph-en.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/hfst-morph-en/hfst-morph-en-DESTDIR.patch
diff -u /dev/null packages/hfst-morph-en/hfst-morph-en-DESTDIR.patch:1.1
--- /dev/null Sun May 29 11:19:36 2011
+++ packages/hfst-morph-en/hfst-morph-en-DESTDIR.patch Sun May 29 11:19:31 2011
@@ -0,0 +1,42 @@
+--- hfst-english-installable/Makefile.orig 2011-04-27 16:20:32.000000000 +0200
++++ hfst-english-installable/Makefile 2011-05-29 07:58:40.920047209 +0200
+@@ -1,6 +1,7 @@
+ langname = english
+ langcode = en
+
++DESTDIR =
+ analyzer_transducer = $(langcode)-analysis.hfst.ol
+ generator_transducer = $(langcode)-generation.hfst.ol
+ prefix = /usr/local
+@@ -10,19 +11,19 @@
+ generator_script = $(binarypath)/${langname}-generate.sh
+
+ install:
+- install -m 0775 -d $(transducerpath)
+- install -m 0664 $(analyzer_transducer) --target-directory=$(transducerpath)
+- install -m 0664 $(generator_transducer) --target-directory=$(transducerpath)
++ install -m 0775 -d $(DESTDIR)$(transducerpath) $(DESTDIR)$(binarypath)
++ install -m 0664 $(analyzer_transducer) --target-directory=$(DESTDIR)$(transducerpath)
++ install -m 0664 $(generator_transducer) --target-directory=$(DESTDIR)$(transducerpath)
+ sed -e s,BINPATH,$(binarypath),g -e s,TRPATH,$(transducerpath),g \
+- < ${langname}-analyze.sh > $(binarypath)/${langname}-analyze.sh
++ < ${langname}-analyze.sh > $(DESTDIR)$(binarypath)/${langname}-analyze.sh
+ sed -e s,BINPATH,$(binarypath),g -e s,TRPATH,$(transducerpath),g \
+- < ${langname}-generate.sh > $(binarypath)/${langname}-generate.sh
+- chmod 0755 $(analyzer_script)
+- chmod 0755 $(generator_script)
++ < ${langname}-generate.sh > $(DESTDIR)$(binarypath)/${langname}-generate.sh
++ chmod 0755 $(DESTDIR)$(analyzer_script)
++ chmod 0755 $(DESTDIR)$(generator_script)
+
+ clean:
+- rm -f $(transducerpath)/$(analyzer_transducer)
+- rm -f $(transducerpath)/$(generator_transducer)
+- rmdir --ignore-fail-on-non-empty $(transducerpath)
+- rm -f $(analyzer_script)
+- rm -f $(generator_script)
++ rm -f $(DESTDIR)$(transducerpath)/$(analyzer_transducer)
++ rm -f $(DESTDIR)$(transducerpath)/$(generator_transducer)
++ rmdir --ignore-fail-on-non-empty $(DESTDIR)$(transducerpath)
++ rm -f $(DESTDIR)$(analyzer_script)
++ rm -f $(DESTDIR)$(generator_script)
================================================================
Index: packages/hfst-morph-en/hfst-morph-en.spec
diff -u /dev/null packages/hfst-morph-en/hfst-morph-en.spec:1.1
--- /dev/null Sun May 29 11:19:37 2011
+++ packages/hfst-morph-en/hfst-morph-en.spec Sun May 29 11:19:31 2011
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+Summary: HFST morphological analysis transducer for English language
+Summary(pl.UTF-8): Automat HFST do analizy morfologicznej dla języka angielskiego
+Name: hfst-morph-en
+# or 20110316?
+Version: 0
+Release: 1
+License: GPL v2
+Group: Applications/Text
+# source is hfst-english.tar.gz, but it doesn't contain scripts
+Source0: http://downloads.sourceforge.net/hfst/hfst-english-installable.tar.gz
+# Source0-md5: 567c761cd7b8bb48c9600671b5ffebdf
+Patch0: %{name}-DESTDIR.patch
+URL: http://hfst.sourceforge.net/
+Requires: hfst
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is an English morphological transducer for HFST. It is meant for
+analysis, and thus overgenerates by allowing a large number of
+prefixes and suffixes. The exceptions lexicon and parts of the main
+lexicon are based on WordNet 2.0 (see
+http://wordnet.princeton.edu/wordnet/license/). The grammar itself is
+licensed under the GNU General Public License.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera automat dla HFST do analizy morfologicznej języka
+angielskiego. Jest przeznaczony do analizy, więc generuje nadmiarowe
+dane, pozwalając na dużą liczbę przedrostków i przyrostków. Słownik
+wyjątków i części głównego słownika są oparte na słowniku WordNet 2.0
+(p. http://wordnet.princeton.edu/wordnet/license/). Sama gramatyka
+jest na Powszechnej Licencji Publicznej GNU (GNU GPL).
+
+%prep
+%setup -q -n hfst-english-installable
+%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ prefix=%{_prefix}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/english-analyze.sh
+%attr(755,root,root) %{_bindir}/english-generate.sh
+%{_datadir}/hfst/en
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/05/29 09:19:31 qboosh
+- new
================================================================
More information about the pld-cvs-commit
mailing list