aboutsummaryrefslogtreecommitdiffstats
path: root/hungarian
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2004-05-20 22:52:50 +0800
committerthierry <thierry@FreeBSD.org>2004-05-20 22:52:50 +0800
commit3526ef8ef4430b650be221c74a50884bc008af99 (patch)
treec55e3e11d18ffb2ca46fbed9d34bdd42eb13e6f3 /hungarian
parent46d0b2ca243614612775175b7fb308ba94f3bfd4 (diff)
downloadfreebsd-ports-gnome-3526ef8ef4430b650be221c74a50884bc008af99.tar.gz
freebsd-ports-gnome-3526ef8ef4430b650be221c74a50884bc008af99.tar.zst
freebsd-ports-gnome-3526ef8ef4430b650be221c74a50884bc008af99.zip
Add hunspell 0.9.7, improved Hungarian spelling checker.
PR: 61987 Submitted by: janos.mohacsi@bsd.hu
Diffstat (limited to 'hungarian')
-rw-r--r--hungarian/Makefile1
-rw-r--r--hungarian/hunspell/Makefile67
-rw-r--r--hungarian/hunspell/distinfo2
-rw-r--r--hungarian/hunspell/files/patch-Makefile41
-rw-r--r--hungarian/hunspell/files/patch-csutil.cxx18
-rw-r--r--hungarian/hunspell/files/patch-hunspell.cxx13
-rw-r--r--hungarian/hunspell/pkg-descr14
-rw-r--r--hungarian/hunspell/pkg-plist13
8 files changed, 169 insertions, 0 deletions
diff --git a/hungarian/Makefile b/hungarian/Makefile
index 5eadffce7a9c..69f28d5ea7d0 100644
--- a/hungarian/Makefile
+++ b/hungarian/Makefile
@@ -5,6 +5,7 @@
SUBDIR += hu-phone
SUBDIR += hu-zipcodes
+ SUBDIR += hunspell
SUBDIR += ispell
SUBDIR += jdictionary-eng-hun
SUBDIR += jdictionary-eng-hun-expr
diff --git a/hungarian/hunspell/Makefile b/hungarian/hunspell/Makefile
new file mode 100644
index 000000000000..2ed8495310e4
--- /dev/null
+++ b/hungarian/hunspell/Makefile
@@ -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>
diff --git a/hungarian/hunspell/distinfo b/hungarian/hunspell/distinfo
new file mode 100644
index 000000000000..1ae772ad81e1
--- /dev/null
+++ b/hungarian/hunspell/distinfo
@@ -0,0 +1,2 @@
+MD5 (hunspell-0.9.7.tar.gz) = 3f9a15d8bac0de3e38769f3c83fafde9
+SIZE (hunspell-0.9.7.tar.gz) = 1174266
diff --git a/hungarian/hunspell/files/patch-Makefile b/hungarian/hunspell/files/patch-Makefile
new file mode 100644
index 000000000000..21aa5c7ad884
--- /dev/null
+++ b/hungarian/hunspell/files/patch-Makefile
@@ -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
+
diff --git a/hungarian/hunspell/files/patch-csutil.cxx b/hungarian/hunspell/files/patch-csutil.cxx
new file mode 100644
index 000000000000..3197e047ccc5
--- /dev/null
+++ b/hungarian/hunspell/files/patch-csutil.cxx
@@ -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;
+-};
++}
+
diff --git a/hungarian/hunspell/files/patch-hunspell.cxx b/hungarian/hunspell/files/patch-hunspell.cxx
new file mode 100644
index 000000000000..5473c35eae82
--- /dev/null
+++ b/hungarian/hunspell/files/patch-hunspell.cxx
@@ -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"
diff --git a/hungarian/hunspell/pkg-descr b/hungarian/hunspell/pkg-descr
new file mode 100644
index 000000000000..0be9f555847c
--- /dev/null
+++ b/hungarian/hunspell/pkg-descr
@@ -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/
diff --git a/hungarian/hunspell/pkg-plist b/hungarian/hunspell/pkg-plist
new file mode 100644
index 000000000000..f664d3b2fd46
--- /dev/null
+++ b/hungarian/hunspell/pkg-plist
@@ -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