ports/116790: [MAINTAINER] hungarian/hu-ispell: [fixing linuxism]

Janos Mohacsi janos.mohacsi at bsd.hu
Mon Oct 1 17:40:02 UTC 2007


>Number:         116790
>Category:       ports
>Synopsis:       [MAINTAINER] hungarian/hu-ispell: [fixing linuxism]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 01 17:40:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Janos Mohacsi
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
NIIF/HUNGARNET
>Environment:
System: FreeBSD scone.ki.iif.hu 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jun 27 18:22:17 CEST 2007
>Description:
fixing utf-8 handling bug. Thanks ot Gabor Zahemszky
fixing other bash specific fuctions.

Added file(s):
- files/patch-bin_felvesz

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- hu-ispell-1.2.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/hungarian/ispell.orig/Makefile /usr/ports/hungarian/ispell/Makefile
--- /usr/ports/hungarian/ispell.orig/Makefile	2007-10-01 12:56:11.000000000 +0200
+++ /usr/ports/hungarian/ispell/Makefile	2007-10-01 19:22:35.000000000 +0200
@@ -7,6 +7,7 @@
 
 PORTNAME=	ispell
 PORTVERSION=	1.2.1
+PORTREVISION=	1
 CATEGORIES=	hungarian textproc
 #MASTER_SITES=	http://www.szofi.hu/gnu/magyarispell/
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
diff -ruN --exclude=CVS /usr/ports/hungarian/ispell.orig/files/patch-bin_felvesz /usr/ports/hungarian/ispell/files/patch-bin_felvesz
--- /usr/ports/hungarian/ispell.orig/files/patch-bin_felvesz	1970-01-01 01:00:00.000000000 +0100
+++ /usr/ports/hungarian/ispell/files/patch-bin_felvesz	2007-10-01 19:25:47.000000000 +0200
@@ -0,0 +1,11 @@
+
+$FreeBSD$
+
+--- bin/felvesz.orig
++++ bin/felvesz
+@@ -8,4 +8,4 @@
+ Megjegyzés: a magyarispell*/ könyvtárból indítva működik.
+ Kilépés: Ctrl-c"
+ echo "Az új szó?"
+-function latin() { echo "$1" | iconv -f utf-8 -t latin2; }; function search() { grep -l "^$1$" `grep ^szotar szotar.konf | awk '{print $0"/*"}'`; }; function put() { echo "Kérem a következő mintát a $1 szóhoz, vagy f (felvétel), u (felvétel új tővel):"; LOC=""; while read j; do test "$j" = "f" -o "$j" = "u" && break || LOC=$(search `latin $j`); echo $LOC; done; echo ""; if test "$j" = "f"; then w=`latin $1`; for l in $LOC; do echo "$w" >>$l; done; else echo "új tő?"; read k; echo "új tő: $k"; w=`latin $k`; for l in $LOC; do echo "$w" >>$l; done; fi; echo -e "Felvéve ide:\n$LOC"; };  while read i; do case $i in "ö") echo "`latin $prev`" >>$(dirname $(echo $ploc | head -1 | awk '{print $1}'))/fonev_osszetett.1; echo "összetettként felvéve: $prev";; esac; ploc=$(search `latin $i`); echo $ploc; test -z "$ploc" && put $i; echo "Az új szó?"; prev=$i; done
++latin() { echo "$1" | iconv -f utf-8 -t latin2; }; search() { grep -l "^$1$" `grep ^szotar szotar.konf | awk '{print $0"/*"}'`; }; put() { echo "Kérem a következő mintát a $1 szóhoz, vagy f (felvétel), u (felvétel új tővel):"; LOC=""; while read j; do test "$j" = "f" -o "$j" = "u" && break || LOC=$(search `latin $j`); echo $LOC; done; echo ""; if test "$j" = "f"; then w=`latin $1`; for l in $LOC; do echo "$w" >>$l; done; else echo "új tő?"; read k; echo "új tő: $k"; w=`latin $k`; for l in $LOC; do echo "$w" >>$l; done; fi; echo -e "Felvéve ide:\n$LOC"; };  while read i; do case $i in "ö") echo "`latin $prev`" >>$(dirname $(echo $ploc | head -1 | awk '{print $1}'))/fonev_osszetett.1; echo "összetettként felvéve: $prev";; esac; ploc=$(search `latin $i`); echo $ploc; test -z "$ploc" && put $i; echo "Az új szó?"; prev=$i; done
diff -ruN --exclude=CVS /usr/ports/hungarian/ispell.orig/files/patch-bin_fonevek /usr/ports/hungarian/ispell/files/patch-bin_fonevek
--- /usr/ports/hungarian/ispell.orig/files/patch-bin_fonevek	2007-09-28 17:23:06.000000000 +0200
+++ /usr/ports/hungarian/ispell/files/patch-bin_fonevek	2007-10-01 19:22:09.000000000 +0200
@@ -1,5 +1,5 @@
 
-$FreeBSD: ports/hungarian/ispell/files/patch-bin_fonevek,v 1.1 2007/09/28 15:23:06 gabor Exp $
+$FreeBSD$
 
 --- bin/fonevek.orig
 +++ bin/fonevek
@@ -18,3 +18,12 @@
    awk '/^[^	]*[[]/{
  	print $1 >>"mezok.txt"
  	i = index($1, "[")
+@@ -186,7 +186,7 @@
+ 
+ # kiejtés javítása
+ cat mezok.txt | sed 's/sszsz/ssz/;s/szsz/ssz/;s/sss/ss/;s/[[,]/	/;s/]//' >mezok2.txt
+-cat mezok2.txt | iconv -f latin2 -t utf8 | sed -f $BINDIR/l1_u8.sed >mezok_utf.txt
++cat mezok2.txt | iconv -f latin2 -t utf-8 | sed -f $BINDIR/l1_u8.sed >mezok_utf.txt
+ echo_n .
+ 
+ echo " Rendben."
--- hu-ispell-1.2.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list