Add hungarian/ispell, the Hungarian dictionary for ispell.
PR: ports/39308 Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
This commit is contained in:
parent
98fced1f1f
commit
0709fc8439
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70469
8 changed files with 126 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
SUBDIR +=
|
||||
SUBDIR += ispell
|
||||
|
||||
.include <bsd.port.subdir.mk>
|
||||
|
|
30
hungarian/ispell/Makefile
Normal file
30
hungarian/ispell/Makefile
Normal file
|
@ -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>
|
1
hungarian/ispell/distinfo
Normal file
1
hungarian/ispell/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (magyarispell-0.85.tar.gz) = 7b032d6a5b54229ff68487263d2de8ac
|
3
hungarian/ispell/files/ispell-hu.sh
Normal file
3
hungarian/ispell/files/ispell-hu.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec ispell -d magyar "$@"
|
77
hungarian/ispell/files/patch-Makefile
Normal file
77
hungarian/ispell/files/patch-Makefile
Normal file
|
@ -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
|
1
hungarian/ispell/pkg-comment
Normal file
1
hungarian/ispell/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Hungarian dictionary for ispell
|
6
hungarian/ispell/pkg-descr
Normal file
6
hungarian/ispell/pkg-descr
Normal file
|
@ -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
|
7
hungarian/ispell/pkg-plist
Normal file
7
hungarian/ispell/pkg-plist
Normal file
|
@ -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
|
Loading…
Reference in a new issue