| From | Sent On | Attachments |
|---|---|---|
| Mohacsi Janos | Aug 8, 2002 7:15 am |
| Subject: | ports/41450: New port: hu-ispell 0.86 (Hungarian spell checker) | |
|---|---|---|
| From: | Mohacsi Janos (moha...@niif.hu) | |
| Date: | Aug 8, 2002 7:15:33 am | |
| List: | org.freebsd.freebsd-ports | |
Number: 41450 Category: ports Synopsis: New port: hu-ispell 0.86 (Hungarian spell checker) 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: Thu Aug 08 07:50:02 PDT 2002 Closed-Date: Last-Modified: Originator: Mohacsi Janos Release: FreeBSD 4.6-STABLE i386 Organization: NIIF Environment:
System: FreeBSD nws2.iif.hu 4.6-STABLE FreeBSD 4.6-STABLE #1: Tue Aug 6 17:27:30
CEST 2002 ro...@nws2.iif.hu:/usr/src/sys/compile/NWS2 i386
Description:
New port: hu-ispell 0.86 (Hungarian extension for ispell).
This is a new version of an uncommited ports: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/39308
Do not use PR=39308 anymore. Use rather this one.
WARNING! This port requires adding new port category hungarian.
For clean installation 'hungarian' had to be added to VALID_CATEGORIES in /usr/ports/Mk/bsd.port.mk .
see discussion about this one on this: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/37576
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:
#
# hu-ispell
# hu-ispell/files
# hu-ispell/files/patch-Makefile
# hu-ispell/files/ispell-hu.sh
# hu-ispell/pkg-plist
# hu-ispell/pkg-descr
# hu-ispell/pkg-comment
# hu-ispell/Makefile
# hu-ispell/distinfo
#
echo c - hu-ispell
mkdir -p hu-ispell > /dev/null 2>&1
echo c - hu-ispell/files
mkdir -p hu-ispell/files > /dev/null 2>&1
echo x - hu-ispell/files/patch-Makefile
sed 's/^X//' >hu-ispell/files/patch-Makefile <<
'END-of-hu-ispell/files/patch-Makefile'
X*** Makefile.orig Tue May 21 14:55:37 2002
X--- Makefile Tue May 21 14:58:21 2002
X***************
X*** 4,11 ****
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
X magyar.dict: ige_gen.awk fonev_gen.awk
X # ******* magyar ispell alapszótár (magyar.dict) elõállítása *********
X--- 4,11 ----
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 | 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***************
X*** 48,65 ****
X awk -f melleknev_gen.awk <ige_ando | sed -e 's/$$/\/X/' >>magyar.dict
X awk -f melleknev_gen.awk <ige_hato | sed -e 's/$$/\/X/' >>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 ^# | 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! # 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! # spellhtml és spellhtmlic a helyére
X! cp spellhtml/spellhtmlic spellhtml/spellhtml $(DESTDIR)/usr/bin
X
X allinstal:
X install -D -o root -g root -m 0644 magyar.hash
$(DESTDIR)/usr/lib/ispell/hungarian.hash
X--- 48,65 ----
X awk -f melleknev_gen.awk <ige_ando | sed -e 's/$$/\/X/' >>magyar.dict
X awk -f melleknev_gen.awk <ige_hato | sed -e 's/$$/\/X/' >>magyar.dict
X # egyéb kivételek
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 ^# | 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! ##@# 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! ##@# spellhtml és spellhtmlic a helyére
X! ##@#cp spellhtml/spellhtmlic spellhtml/spellhtml $(DESTDIR)/usr/bin
X
X allinstal:
X install -D -o root -g root -m 0644 magyar.hash
$(DESTDIR)/usr/lib/ispell/hungarian.hash
X***************
X*** 81,87 ****
X bin/i2myspell -d magyar.dict >$(dir)hu_HU.dic
X
X all: magyar.hash
X! make myspell ISPELLDIR=$(CURDIR)/
X
X new:
X # új modul létrehozása
X--- 81,87 ----
X bin/i2myspell -d magyar.dict >$(dir)hu_HU.dic
X
X all: magyar.hash
X! ##@#make myspell ISPELLDIR=$(CURDIR)/
X
X new:
X # új modul létrehozása
END-of-hu-ispell/files/patch-Makefile
echo x - hu-ispell/files/ispell-hu.sh
sed 's/^X//' >hu-ispell/files/ispell-hu.sh <<
'END-of-hu-ispell/files/ispell-hu.sh'
X#!/bin/sh
X
Xexec ispell -d magyar "$@"
END-of-hu-ispell/files/ispell-hu.sh
echo x - hu-ispell/pkg-plist
sed 's/^X//' >hu-ispell/pkg-plist << 'END-of-hu-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-hu-ispell/pkg-plist
echo x - hu-ispell/pkg-descr
sed 's/^X//' >hu-ispell/pkg-descr << 'END-of-hu-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-hu-ispell/pkg-descr
echo x - hu-ispell/pkg-comment
sed 's/^X//' >hu-ispell/pkg-comment << 'END-of-hu-ispell/pkg-comment'
XHungarian dictionary for ispell
END-of-hu-ispell/pkg-comment
echo x - hu-ispell/Makefile
sed 's/^X//' >hu-ispell/Makefile << 'END-of-hu-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.86
XCATEGORIES= hungarian textproc
XMASTER_SITES= http://www.szofi.hu/gnu/magyarispell/
XPKGNAMEPREFIX= hu-
XDISTNAME= magyarispell-${PORTVERSION}
X
XMAINTAINER= Jano...@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-hu-ispell/Makefile
echo x - hu-ispell/distinfo
sed 's/^X//' >hu-ispell/distinfo << 'END-of-hu-ispell/distinfo'
XMD5 (magyarispell-0.86.tar.gz) = ee6cc89fb8675c7889dd5a93ad43e378
END-of-hu-ispell/distinfo
exit
Release-Note: Audit-Trail: Unformatted:
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message





