1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

Add hunspell 0.9.7, improved Hungarian spelling checker.

PR:		61987
Submitted by:	janos.mohacsi@bsd.hu
This commit is contained in:
Thierry Thomas 2004-05-20 14:52:50 +00:00
parent d7c7a482a8
commit 0e8d24bf42
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109562
15 changed files with 337 additions and 0 deletions

View File

@ -5,6 +5,7 @@
SUBDIR += hu-phone
SUBDIR += hu-zipcodes
SUBDIR += hunspell
SUBDIR += ispell
SUBDIR += jdictionary-eng-hun
SUBDIR += jdictionary-eng-hun-expr

View File

@ -0,0 +1,67 @@
# New ports collection makefile for: hunspell
# Date created: 24.07.2004
# Whom: janos.mohacsi@bsd.hu
#
# $FreeBSD$
#
PORTNAME= hunspell
PORTVERSION= 0.9.7
CATEGORIES= hungarian textproc
#MASTER_SITES= http://www.szofi.hu/gnu/magyarispell/
MASTER_SITES= http://magyarispell.sourceforge.net/
MAINTAINER= Janos.Mohacsi@bsd.hu
COMMENT= Improved Hungarian spelling checker
USE_GMAKE= yes
USE_GCC= 3.3
USE_GETTEXT= yes
USE_REINPLACE= yes
MAN1= hunspell.1
MAN4= hunspell.4
PORTDOCS= OLVASS.EL README README.myspell
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= "Does not compile on FreeBSD-4.x at this time"
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/hunspell.cxx
do-install:
${INSTALL_MAN} ${WRKSRC}/man/hunspell.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/hunspell.4 ${PREFIX}/man/man4
${INSTALL_PROGRAM} ${WRKSRC}/hunspell ${PREFIX}/bin
${LN} -s ${PREFIX}/bin/hunspell ${PREFIX}/bin/hunstem
${MKDIR} ${PREFIX}/share/myspell/ && \
${INSTALL_DATA} ${WRKSRC}/hu_HU.dic \
${PREFIX}/share/myspell/ && \
${INSTALL_DATA} ${WRKSRC}/hu_HU.aff \
${PREFIX}/share/myspell/
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/magyar.dic
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/hungarian.dic
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/default.dic
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/magyar.aff
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/hungarian.aff
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/default.aff
${INSTALL_DATA} ${WRKSRC}/dictionary.lst \
${PREFIX}/share/myspell/default.lst
${LOCALBASE}/bin/msgfmt -o ${WRKSRC}/hunspell.mo ${WRKSRC}/hunspell.po
${MKDIR} ${PREFIX}/share/locale/hu/LC_MESSAGES/ && \
${INSTALL_DATA} ${WRKSRC}/hunspell.mo ${PREFIX}/share/locale/hu/LC_MESSAGES/
.ifndef(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (hunspell-0.9.7.tar.gz) = 3f9a15d8bac0de3e38769f3c83fafde9
SIZE (hunspell-0.9.7.tar.gz) = 1174266

View File

@ -0,0 +1,41 @@
--- Makefile.orig Wed Dec 17 18:50:49 2003
+++ Makefile Thu May 20 15:04:38 2004
@@ -1,29 +1,29 @@
#------ beállítások -- configuration -------------------
# szótárak -- dictionaries (hu_HU.aff, hu_HU.dic)
-MYSPELL_DIR?=/usr/share/myspell
+MYSPELL_DIR?=${PREFIX}/share/myspell
# Hunmorph szótárak -- hu_HU.morph, extended hu_HU.aff, hu_HU.dic
-HUNMORPH_DIR?=/usr/share/hunmorph
+HUNMORPH_DIR?=${PREFIX}/share/hunmorph
# Magyar üzenetek -- Hungarian messages
-LOCALE_DIR?=/usr/share/locale
+LOCALE_DIR?=${PREFIX}/share/locale
# Kézikönyvoldalak -- Manual pages
-MAN_DIR?=/usr/share/man
+MAN_DIR?=${PREFIX}/share/man
# Magyar kézikönyvoldalak -- Hungarian manual pages
-MAN_HU_DIR?=/usr/share/man/hu
+MAN_HU_DIR?=${PREFIX}/share/man/hu
# Futtatható program helye -- Directory for executables
-BIN_DIR?=/usr/bin
+BIN_DIR?=${PREFIX}/bin
#--------------------------------------------------------
-CC=g++
+CC=$(CXX)
#CC=/opt/SUNWspro/bin/CC
-CXXFLAGS=-O2 -Wall -ansi -pedantic -I.
+CXXFLAGS+= -Wall -ansi -pedantic -I. -I${LOCALBASE}/include
# for debug only
#CXXFLAGS=-g -O0 -Wall -ansi -pedantic -I.
#CXXFLAGS=-g -O0 -Wall -ansi -pedantic -I. -g
#CXXFLAGS=-O2 +w2 -I.
-LDFLAGS=-L. -lmyspell
+LDFLAGS=-L. -lmyspell -L$(LOCALBASE)/lib -lintl -lstdc++
LIBS=libmyspell.a

View File

@ -0,0 +1,18 @@
--- csutil.cxx.orig Wed Dec 17 18:50:49 2003
+++ csutil.cxx Thu May 20 15:20:06 2004
@@ -3315,7 +3315,7 @@
}
}
return ccs;
-};
+}
@@ -3348,5 +3348,5 @@
}
}
return NULL;
-};
+}

View File

@ -0,0 +1,13 @@
--- hunspell.cxx.orig Wed Dec 17 18:50:49 2003
+++ hunspell.cxx Thu May 20 15:54:49 2004
@@ -49,8 +49,8 @@
#include "manparser.hxx"
#include "firstparser.hxx"
-#define LIBDIR "/usr/share/myspell/"
-#define LIBDIR2 "/usr/share/hunmorph/"
+#define LIBDIR "%%PREFIX%%/share/myspell/"
+#define LIBDIR2 "%%PREFIX%%/share/hunmorph/"
#define HOME getenv("HOME")
#define DICBASENAME ".hunspell_"
#define LOGFILE "/tmp/hunspell.log"

View File

@ -0,0 +1,14 @@
Hungarian Spell Checher utility with Hungarian dictionary
and affix files. It has several advantages over ispell.
It has better affix rules than hu-ispell.
Magyar helyesírás ellenõrzõ hunspell. Elõnyök az ispell-hez képest:
- Több karakter változással járó tipikus hibákra javítási javaslat.
- Helyes összetett szónak látszó szavak tiltása.
- 6-3-as szabály
- mozgószabály
- összetételi szabályok
- többszörös képzõk helyes használata
- ékezetesítési javaslatok
WWW: http://magyarispell.sourceforge.net/

View File

@ -0,0 +1,13 @@
bin/hunspell
bin/hunstem
share/myspell/hu_HU.aff
share/myspell/hu_HU.dic
share/myspell/hungarian.aff
share/myspell/hungarian.dic
share/myspell/magyar.aff
share/myspell/magyar.dic
share/myspell/default.aff
share/myspell/default.dic
share/myspell/default.lst
share/locale/hu/LC_MESSAGES/hunspell.mo
@dirrm share/myspell

View File

@ -0,0 +1,67 @@
# New ports collection makefile for: hunspell
# Date created: 24.07.2004
# Whom: janos.mohacsi@bsd.hu
#
# $FreeBSD$
#
PORTNAME= hunspell
PORTVERSION= 0.9.7
CATEGORIES= hungarian textproc
#MASTER_SITES= http://www.szofi.hu/gnu/magyarispell/
MASTER_SITES= http://magyarispell.sourceforge.net/
MAINTAINER= Janos.Mohacsi@bsd.hu
COMMENT= Improved Hungarian spelling checker
USE_GMAKE= yes
USE_GCC= 3.3
USE_GETTEXT= yes
USE_REINPLACE= yes
MAN1= hunspell.1
MAN4= hunspell.4
PORTDOCS= OLVASS.EL README README.myspell
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= "Does not compile on FreeBSD-4.x at this time"
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/hunspell.cxx
do-install:
${INSTALL_MAN} ${WRKSRC}/man/hunspell.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/hunspell.4 ${PREFIX}/man/man4
${INSTALL_PROGRAM} ${WRKSRC}/hunspell ${PREFIX}/bin
${LN} -s ${PREFIX}/bin/hunspell ${PREFIX}/bin/hunstem
${MKDIR} ${PREFIX}/share/myspell/ && \
${INSTALL_DATA} ${WRKSRC}/hu_HU.dic \
${PREFIX}/share/myspell/ && \
${INSTALL_DATA} ${WRKSRC}/hu_HU.aff \
${PREFIX}/share/myspell/
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/magyar.dic
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/hungarian.dic
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/default.dic
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/magyar.aff
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/hungarian.aff
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/default.aff
${INSTALL_DATA} ${WRKSRC}/dictionary.lst \
${PREFIX}/share/myspell/default.lst
${LOCALBASE}/bin/msgfmt -o ${WRKSRC}/hunspell.mo ${WRKSRC}/hunspell.po
${MKDIR} ${PREFIX}/share/locale/hu/LC_MESSAGES/ && \
${INSTALL_DATA} ${WRKSRC}/hunspell.mo ${PREFIX}/share/locale/hu/LC_MESSAGES/
.ifndef(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (hunspell-0.9.7.tar.gz) = 3f9a15d8bac0de3e38769f3c83fafde9
SIZE (hunspell-0.9.7.tar.gz) = 1174266

View File

@ -0,0 +1,41 @@
--- Makefile.orig Wed Dec 17 18:50:49 2003
+++ Makefile Thu May 20 15:04:38 2004
@@ -1,29 +1,29 @@
#------ beállítások -- configuration -------------------
# szótárak -- dictionaries (hu_HU.aff, hu_HU.dic)
-MYSPELL_DIR?=/usr/share/myspell
+MYSPELL_DIR?=${PREFIX}/share/myspell
# Hunmorph szótárak -- hu_HU.morph, extended hu_HU.aff, hu_HU.dic
-HUNMORPH_DIR?=/usr/share/hunmorph
+HUNMORPH_DIR?=${PREFIX}/share/hunmorph
# Magyar üzenetek -- Hungarian messages
-LOCALE_DIR?=/usr/share/locale
+LOCALE_DIR?=${PREFIX}/share/locale
# Kézikönyvoldalak -- Manual pages
-MAN_DIR?=/usr/share/man
+MAN_DIR?=${PREFIX}/share/man
# Magyar kézikönyvoldalak -- Hungarian manual pages
-MAN_HU_DIR?=/usr/share/man/hu
+MAN_HU_DIR?=${PREFIX}/share/man/hu
# Futtatható program helye -- Directory for executables
-BIN_DIR?=/usr/bin
+BIN_DIR?=${PREFIX}/bin
#--------------------------------------------------------
-CC=g++
+CC=$(CXX)
#CC=/opt/SUNWspro/bin/CC
-CXXFLAGS=-O2 -Wall -ansi -pedantic -I.
+CXXFLAGS+= -Wall -ansi -pedantic -I. -I${LOCALBASE}/include
# for debug only
#CXXFLAGS=-g -O0 -Wall -ansi -pedantic -I.
#CXXFLAGS=-g -O0 -Wall -ansi -pedantic -I. -g
#CXXFLAGS=-O2 +w2 -I.
-LDFLAGS=-L. -lmyspell
+LDFLAGS=-L. -lmyspell -L$(LOCALBASE)/lib -lintl -lstdc++
LIBS=libmyspell.a

View File

@ -0,0 +1,18 @@
--- csutil.cxx.orig Wed Dec 17 18:50:49 2003
+++ csutil.cxx Thu May 20 15:20:06 2004
@@ -3315,7 +3315,7 @@
}
}
return ccs;
-};
+}
@@ -3348,5 +3348,5 @@
}
}
return NULL;
-};
+}

View File

@ -0,0 +1,13 @@
--- hunspell.cxx.orig Wed Dec 17 18:50:49 2003
+++ hunspell.cxx Thu May 20 15:54:49 2004
@@ -49,8 +49,8 @@
#include "manparser.hxx"
#include "firstparser.hxx"
-#define LIBDIR "/usr/share/myspell/"
-#define LIBDIR2 "/usr/share/hunmorph/"
+#define LIBDIR "%%PREFIX%%/share/myspell/"
+#define LIBDIR2 "%%PREFIX%%/share/hunmorph/"
#define HOME getenv("HOME")
#define DICBASENAME ".hunspell_"
#define LOGFILE "/tmp/hunspell.log"

View File

@ -0,0 +1,14 @@
Hungarian Spell Checher utility with Hungarian dictionary
and affix files. It has several advantages over ispell.
It has better affix rules than hu-ispell.
Magyar helyesírás ellenõrzõ hunspell. Elõnyök az ispell-hez képest:
- Több karakter változással járó tipikus hibákra javítási javaslat.
- Helyes összetett szónak látszó szavak tiltása.
- 6-3-as szabály
- mozgószabály
- összetételi szabályok
- többszörös képzõk helyes használata
- ékezetesítési javaslatok
WWW: http://magyarispell.sourceforge.net/

View File

@ -0,0 +1,13 @@
bin/hunspell
bin/hunstem
share/myspell/hu_HU.aff
share/myspell/hu_HU.dic
share/myspell/hungarian.aff
share/myspell/hungarian.dic
share/myspell/magyar.aff
share/myspell/magyar.dic
share/myspell/default.aff
share/myspell/default.dic
share/myspell/default.lst
share/locale/hu/LC_MESSAGES/hunspell.mo
@dirrm share/myspell