diff options
author | knu <knu@FreeBSD.org> | 2002-11-19 10:46:25 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-11-19 10:46:25 +0000 |
commit | 92cd6fc7812c5303c7a0ef8d1531f7fd340c2ae0 (patch) | |
tree | 3ca5cb2358cdadc9f5fd4c54bd6731201b80ba9b /hungarian | |
parent | 67b9b5743808700d97459867a88bff2787892bd0 (diff) | |
download | FreeBSD-ports-92cd6fc7812c5303c7a0ef8d1531f7fd340c2ae0.zip FreeBSD-ports-92cd6fc7812c5303c7a0ef8d1531f7fd340c2ae0.tar.gz |
Add hungarian/ispell, the Hungarian dictionary for ispell.
PR: ports/39308
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
Diffstat (limited to 'hungarian')
-rw-r--r-- | hungarian/Makefile | 2 | ||||
-rw-r--r-- | hungarian/ispell/Makefile | 30 | ||||
-rw-r--r-- | hungarian/ispell/distinfo | 1 | ||||
-rw-r--r-- | hungarian/ispell/files/ispell-hu.sh | 3 | ||||
-rw-r--r-- | hungarian/ispell/files/patch-Makefile | 77 | ||||
-rw-r--r-- | hungarian/ispell/pkg-comment | 1 | ||||
-rw-r--r-- | hungarian/ispell/pkg-descr | 6 | ||||
-rw-r--r-- | hungarian/ispell/pkg-plist | 7 |
8 files changed, 126 insertions, 1 deletions
diff --git a/hungarian/Makefile b/hungarian/Makefile index 0c57140..939018d 100644 --- a/hungarian/Makefile +++ b/hungarian/Makefile @@ -1,5 +1,5 @@ # $FreeBSD$ # - SUBDIR += + SUBDIR += ispell .include <bsd.port.subdir.mk> diff --git a/hungarian/ispell/Makefile b/hungarian/ispell/Makefile new file mode 100644 index 0000000..0292268 --- /dev/null +++ b/hungarian/ispell/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: magyarispell +# Date created: 20.03.2002 +# Whom: mohacsi +# +# $FreeBSD$ +# + +PORTNAME= ispell +PORTVERSION= 0.85 +CATEGORIES= hungarian textproc +MASTER_SITES= http://www.szofi.hu/gnu/magyarispell/ +DISTNAME= magyarispell-${PORTVERSION} + +MAINTAINER= Janos.Mohacsi@bsd.hu + +BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell \ + gm4:${PORTSDIR}/devel/m4 +RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell + +USE_GMAKE= yes + +do-install: + cd ${WRKSRC} && \ + ${INSTALL_DATA} magyar.hash magyar.dict magyar.aff \ + ${PREFIX}/share/ispell + ${INSTALL_SCRIPT} ${FILESDIR}/ispell-hu.sh ${PREFIX}/bin/ispell-hu + ${MKDIR} ${PREFIX}/share/doc/hu-ispell + ${INSTALL_MAN} ${WRKSRC}/OLVASSEL ${WRKSRC}/README ${PREFIX}/share/doc/hu-ispell + +.include <bsd.port.mk> diff --git a/hungarian/ispell/distinfo b/hungarian/ispell/distinfo new file mode 100644 index 0000000..3de631c --- /dev/null +++ b/hungarian/ispell/distinfo @@ -0,0 +1 @@ +MD5 (magyarispell-0.85.tar.gz) = 7b032d6a5b54229ff68487263d2de8ac diff --git a/hungarian/ispell/files/ispell-hu.sh b/hungarian/ispell/files/ispell-hu.sh new file mode 100644 index 0000000..386f2aa --- /dev/null +++ b/hungarian/ispell/files/ispell-hu.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exec ispell -d magyar "$@" diff --git a/hungarian/ispell/files/patch-Makefile b/hungarian/ispell/files/patch-Makefile new file mode 100644 index 0000000..575874d --- /dev/null +++ b/hungarian/ispell/files/patch-Makefile @@ -0,0 +1,77 @@ +*** Makefile.orig Tue May 21 14:55:37 2002 +--- Makefile Tue May 21 14:58:21 2002 +*************** +*** 4,11 **** + + magyar.aff: aff.fej aff.alanyi aff.fonev + # ******* magyar ispell ragozási táblázat (magyar.aff) előállítása ********* +! cat aff.fej aff.alanyi aff.fonev aff.fonev.morfo | m4 >magyar.aff +! cat aff.targyas aff.ige_kiv | m4 >>magyar.aff + + magyar.dict: ige_gen.awk fonev_gen.awk + # ******* magyar ispell alapszótár (magyar.dict) előállítása ********* +--- 4,11 ---- + + magyar.aff: aff.fej aff.alanyi aff.fonev + # ******* magyar ispell ragozási táblázat (magyar.aff) előállítása ********* +! cat aff.fej aff.alanyi aff.fonev aff.fonev.morfo | gm4 >magyar.aff +! cat aff.targyas aff.ige_kiv | gm4 >>magyar.aff + + magyar.dict: ige_gen.awk fonev_gen.awk + # ******* magyar ispell alapszótár (magyar.dict) előállítása ********* +*************** +*** 48,65 **** + awk -f melleknev_gen.awk <ige_ando | sed -e 's/$$/\/X/' >>magyar.dict + awk -f melleknev_gen.awk <ige_hato | sed -e 's/$$/\/X/' >>magyar.dict + # egyéb kivételek +! cat kivetelek/igekötős/* | grep -v ^# | m4 | tr "\t" "\n" | grep -v ^$$ | sed -e 's/$$/\/X/' >>magyar.dict +! cat ragozatlan kivetelek/ragozatlan/* | m4 | grep -v ^# | tr "\t" "\n" >>magyar.dict + + install: +! # magyar.hash, magyar.aff a helyére, rendszergazdaként adjuk ki! +! ! [ -d $(DESTDIR)/usr/lib/ispell/ ] && mkdir /usr/lib/ispell || true +! mv magyar.hash $(DESTDIR)/usr/lib/ispell +! mv magyar.aff $(DESTDIR)/usr/lib/ispell +! # hungarian.hash -> magyar.hash kötés létrehozása +! ! [ -f $(DESTDIR)/usr/lib/ispell/hungarian.hash ] && ln -s magyar.hash $(DESTDIR)/usr/lib/ispell/hungarian.hash || true +! # spellhtml és spellhtmlic a helyére +! cp spellhtml/spellhtmlic spellhtml/spellhtml $(DESTDIR)/usr/bin + + allinstal: + install -D -o root -g root -m 0644 magyar.hash $(DESTDIR)/usr/lib/ispell/hungarian.hash +--- 48,65 ---- + awk -f melleknev_gen.awk <ige_ando | sed -e 's/$$/\/X/' >>magyar.dict + awk -f melleknev_gen.awk <ige_hato | sed -e 's/$$/\/X/' >>magyar.dict + # egyéb kivételek +! cat kivetelek/igekötős/* | grep -v ^# | gm4 | tr "\t" "\n" | grep -v ^$$ | sed -e 's/$$/\/X/' >>magyar.dict +! cat ragozatlan kivetelek/ragozatlan/* | gm4 | grep -v ^# | tr "\t" "\n" >>magyar.dict + + install: +! ##@# magyar.hash, magyar.aff a helyére, rendszergazdaként adjuk ki! +! ##@#! [ -d $(DESTDIR)/usr/lib/ispell/ ] && mkdir /usr/lib/ispell || true +! ##@#mv magyar.hash $(DESTDIR)/usr/lib/ispell +! ##@#mv magyar.aff $(DESTDIR)/usr/lib/ispell +! ##@# hungarian.hash -> magyar.hash kötés létrehozása +! ##@#! [ -f $(DESTDIR)/usr/lib/ispell/hungarian.hash ] && ln -s magyar.hash $(DESTDIR)/usr/lib/ispell/hungarian.hash || true +! ##@# spellhtml és spellhtmlic a helyére +! ##@#cp spellhtml/spellhtmlic spellhtml/spellhtml $(DESTDIR)/usr/bin + + allinstal: + install -D -o root -g root -m 0644 magyar.hash $(DESTDIR)/usr/lib/ispell/hungarian.hash +*************** +*** 81,87 **** + bin/i2myspell -d magyar.dict >$(dir)hu_HU.dic + + all: magyar.hash +! make myspell ISPELLDIR=$(CURDIR)/ + + new: + # új modul létrehozása +--- 81,87 ---- + bin/i2myspell -d magyar.dict >$(dir)hu_HU.dic + + all: magyar.hash +! ##@#make myspell ISPELLDIR=$(CURDIR)/ + + new: + # új modul létrehozása diff --git a/hungarian/ispell/pkg-comment b/hungarian/ispell/pkg-comment new file mode 100644 index 0000000..eaf8b87 --- /dev/null +++ b/hungarian/ispell/pkg-comment @@ -0,0 +1 @@ +Hungarian dictionary for ispell diff --git a/hungarian/ispell/pkg-descr b/hungarian/ispell/pkg-descr new file mode 100644 index 0000000..652ae2b --- /dev/null +++ b/hungarian/ispell/pkg-descr @@ -0,0 +1,6 @@ +Hungarian Ispell/Myspell Spell Checher is a utility with Hungarian dictionary +and affix files. It provides Hungarian spelling checking with Ispell +program and Myspell library. It contains around 140 000 hungarian word + +affix rules. + +WWW: http://www.szofi.hu/gnu/magyarispell/english.html diff --git a/hungarian/ispell/pkg-plist b/hungarian/ispell/pkg-plist new file mode 100644 index 0000000..ed28e440 --- /dev/null +++ b/hungarian/ispell/pkg-plist @@ -0,0 +1,7 @@ +bin/ispell-hu +share/ispell/magyar.aff +share/ispell/magyar.dict +share/ispell/magyar.hash +%%PORTDOCS%%share/doc/hu-ispell/README +%%PORTDOCS%%share/doc/hu-ispell/OLVASSEL +%%PORTDOCS%%@dirrm share/doc/hu-ispell |