Date: Mon, 18 Nov 2002 12:06:16 +0100 (CET) From: Janos Mohacsi <mohacsi@niif.hu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/45398: NEW PORT: hu-ispell version 0.91 - Hungarian ispell Message-ID: <200211181106.gAIB6GXw027946@norfolk.ki.iif.hu>
next in thread | raw e-mail | index | archive | help
>Number: 45398 >Category: ports >Synopsis: NEW PORT: hu-ispell version 0.91 - Hungarian ispell >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 18 03:10:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Janos Mohacsi >Release: FreeBSD 4.7-STABLE i386 >Organization: NIIF >Environment: System: FreeBSD norfolk.ki.iif.hu 4.7-STABLE FreeBSD 4.7-STABLE #3: Sun Oct 20 22:09:30 CEST 2002 root@norfolk.ki.iif.hu:/usr/src/sys/compile/NORFOLK i386 >Description: NEW PORT hu-ispell version 0.91 - Hungarian ispell. It is superseeding the following ports: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/39308 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/41450 It is relying on the new hungarian language category. Janos Mohacsi >How-To-Repeat: Apply this shar. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ispell/ # ispell/files # ispell/files/patch-Makefile # ispell/files/ispell-hu.sh # ispell/files/patch-kotojeles # ispell/pkg-plist # ispell/pkg-descr # ispell/pkg-comment # ispell/Makefile # ispell/distinfo # echo c - ispell/ mkdir -p ispell/ > /dev/null 2>&1 echo c - ispell/files mkdir -p ispell/files > /dev/null 2>&1 echo x - ispell/files/patch-Makefile sed 's/^X//' >ispell/files/patch-Makefile << 'END-of-ispell/files/patch-Makefile' X--- Makefile.orig Fri Nov 15 01:21:05 2002 X+++ Makefile Mon Nov 18 11:41:26 2002 X@@ -12,16 +12,16 @@ X X magyar.aff: aff.fej aff.alanyi aff.fonev X # ******* magyar ispell ragozási táblázat (magyar.aff) előállítása ********* X- cat aff.fej aff.alanyi aff.fonev aff.fonev.morfo | m4 >magyar.aff X- cat aff.targyas aff.ige_kiv | m4 >>magyar.aff X+ cat aff.fej aff.alanyi aff.fonev aff.fonev.morfo | gm4 >magyar.aff X+ cat aff.targyas aff.ige_kiv | gm4 >>magyar.aff X X magyar.dict: ige_gen.awk fonev_gen.awk X # ******* magyar ispell alapszótár (magyar.dict) előállítása ********* X # szótárak egybemásolása X- for i in _alap/*; do j=$$(basename $$i | sed 's/\..*$$//'); cat [A-Z]*/$$j [A-Z]*/$$j.* | \ X+ -for i in _alap/*; do j=$$(basename $$i | sed 's/\..*$$//'); cat [A-Z]*/$$j [A-Z]*/$$j.* | \ X grep -v '#[A-Z]' | \ X sed 's/[ ]*#.*$$//' | tr '\t' '\n' | grep -v '^$$' >$$j; done X- for i in _alap/*; do j=$$(basename $$i | sed 's/\..*$$//'); cat [A-Z]*/$$j [A-Z]*/$$j.* | \ X+ -for i in _alap/*; do j=$$(basename $$i | sed 's/\..*$$//'); cat [A-Z]*/$$j [A-Z]*/$$j.* | \ X grep '#$(SPELL)' | \ X sed 's/[ ]*#.*$$//' | tr '\t' '\n' | grep -v '^$$' >>$$j; done X # igékből képzett más szófajú alakok előállítása X@@ -65,19 +65,19 @@ X awk -f melleknev_gen.awk <ige_ando | awk -f igekoto_filter.awk >>magyar.dict X awk -f melleknev_gen.awk <ige_hato | awk -f igekoto_filter.awk >>magyar.dict X # egyéb kivételek X- cat kivetelek/igekötős/* | grep -v ^# | m4 | tr "\t" "\n" | grep -v ^$$ | sed -e 's/$$/\/X/' >>magyar.dict X- cat ragozatlan kivetelek/ragozatlan/* | m4 | grep -v ^# | grep -v "#[A-Z]" | sed 's/[ ]*#.*$$//' | tr "\t" "\n" >>magyar.dict X- cat ragozatlan kivetelek/ragozatlan/* | m4 | grep '#$(SPELL)' | sed 's/[ ]*#.*$$//' | tr "\t" "\n" >>magyar.dict X+ cat kivetelek/igekötős/* | grep -v ^# | gm4 | tr "\t" "\n" | grep -v ^$$ | sed -e 's/$$/\/X/' >>magyar.dict X+ cat ragozatlan kivetelek/ragozatlan/* | gm4 | grep -v ^# | grep -v "#[A-Z]" | sed 's/[ ]*#.*$$//' | tr "\t" "\n" >>magyar.dict X+ cat ragozatlan kivetelek/ragozatlan/* | gm4 | grep '#$(SPELL)' | sed 's/[ ]*#.*$$//' | tr "\t" "\n" >>magyar.dict X X install: X # magyar.hash, magyar.aff a helyére, rendszergazdaként adjuk ki! X- ! [ -d $(DESTDIR)/usr/lib/ispell/ ] && mkdir /usr/lib/ispell || true X- mv magyar.hash $(DESTDIR)/usr/lib/ispell X- mv magyar.aff $(DESTDIR)/usr/lib/ispell X+ ##@#! [ -d $(DESTDIR)/usr/lib/ispell/ ] && mkdir /usr/lib/ispell || true X+ ##@#mv magyar.hash $(DESTDIR)/usr/lib/ispell X+ ##@#mv magyar.aff $(DESTDIR)/usr/lib/ispell X # hungarian.hash -> magyar.hash kötés létrehozása X- ! [ -f $(DESTDIR)/usr/lib/ispell/hungarian.hash ] && ln -s magyar.hash $(DESTDIR)/usr/lib/ispell/hungarian.hash || true X+ ##@#! [ -f $(DESTDIR)/usr/lib/ispell/hungarian.hash ] && ln -s magyar.hash $(DESTDIR)/usr/lib/ispell/hungarian.hash || true X # spellhtml és spellhtmlic a helyére X- cp spellhtml/spellhtmlic spellhtml/spellhtml $(DESTDIR)/usr/bin X+ ##@#cp spellhtml/spellhtmlic spellhtml/spellhtml $(DESTDIR)/usr/bin X X X inst: END-of-ispell/files/patch-Makefile echo x - ispell/files/ispell-hu.sh sed 's/^X//' >ispell/files/ispell-hu.sh << 'END-of-ispell/files/ispell-hu.sh' X#!/bin/sh X Xexec ispell -d magyar "$@" END-of-ispell/files/ispell-hu.sh echo x - ispell/files/patch-kotojeles sed 's/^X//' >ispell/files/patch-kotojeles << 'END-of-ispell/files/patch-kotojeles' X--- kotojeles.orig Mon Nov 18 11:42:11 2002 X+++ kotojeles Mon Nov 18 11:42:18 2002 X@@ -2,7 +2,7 @@ X # X # idegen kiejtésű, és mozaikszavak feldolgozása X # X-function ragoz () { X+ragoz () { X cut -f 1 $1 >> magyar.dict X cut -f 1 $1 | sed 's/\(.\)o$/\1ó/ X s/\(.\)ö$/\1ő/ END-of-ispell/files/patch-kotojeles echo x - ispell/pkg-plist sed 's/^X//' >ispell/pkg-plist << 'END-of-ispell/pkg-plist' Xbin/ispell-hu Xshare/ispell/magyar.aff Xshare/ispell/magyar.dict Xshare/ispell/magyar.hash X%%PORTDOCS%%share/doc/hu-ispell/README X%%PORTDOCS%%share/doc/hu-ispell/OLVASSEL X%%PORTDOCS%%@dirrm share/doc/hu-ispell END-of-ispell/pkg-plist echo x - ispell/pkg-descr sed 's/^X//' >ispell/pkg-descr << 'END-of-ispell/pkg-descr' XHungarian Ispell/Myspell Spell Checher is a utility with Hungarian dictionary Xand affix files. It provides Hungarian spelling checking with Ispell Xprogram and Myspell library. It contains around 140 000 hungarian word + Xaffix rules. X XWWW: http://www.szofi.hu/gnu/magyarispell/english.html END-of-ispell/pkg-descr echo x - ispell/pkg-comment sed 's/^X//' >ispell/pkg-comment << 'END-of-ispell/pkg-comment' XHungarian dictionary for ispell END-of-ispell/pkg-comment echo x - ispell/Makefile sed 's/^X//' >ispell/Makefile << 'END-of-ispell/Makefile' X# New ports collection makefile for: magyarispell X# Date created: 20.03.2002 X# Whom: mohacsi X# X# $FreeBSD$ X# X XPORTNAME= ispell XPORTVERSION= 0.91 XCATEGORIES= hungarian textproc XMASTER_SITES= http://www.szofi.hu/gnu/magyarispell/ XDISTNAME= magyarispell-${PORTVERSION} X XMAINTAINER= Janos.Mohacsi@bsd.hu X XRUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell XBUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell XBUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 X XUSE_GMAKE= yes X Xdo-install: X cd ${WRKSRC} && \ X ${INSTALL_DATA} magyar.hash magyar.dict magyar.aff \ X ${PREFIX}/share/ispell X ${INSTALL_SCRIPT} ${FILESDIR}/ispell-hu.sh ${PREFIX}/bin/ispell-hu X ${MKDIR} ${PREFIX}/share/doc/hu-ispell X ${INSTALL_MAN} ${WRKSRC}/OLVASSEL ${WRKSRC}/README ${PREFIX}/share/doc/hu-ispell X X.include <bsd.port.mk> END-of-ispell/Makefile echo x - ispell/distinfo sed 's/^X//' >ispell/distinfo << 'END-of-ispell/distinfo' XMD5 (magyarispell-0.91.tar.gz) = e52582c9f65a6e7bd4647b5b2e00cbcc END-of-ispell/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211181106.gAIB6GXw027946>