From owner-freebsd-ports Sun Feb 10 8:10:46 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E37B137B419 for ; Sun, 10 Feb 2002 08:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1AGA1o47824; Sun, 10 Feb 2002 08:10:01 -0800 (PST) (envelope-from gnats) Received: from cs78133146.pp.htv.fi (cs78133146.pp.htv.fi [62.78.133.146]) by hub.freebsd.org (Postfix) with ESMTP id 620A737B404 for ; Sun, 10 Feb 2002 08:07:45 -0800 (PST) Received: from anthrax.mumblefrotz.dyndns.org (anthrax.mumblefrotz.dyndns.org [192.168.1.3]) by cs78133146.pp.htv.fi (8.11.6/8.11.6) with ESMTP id g1AG7f200339 for ; Sun, 10 Feb 2002 18:07:42 +0200 (EET) (envelope-from ejk@pp.htv.fi) Received: (from ejk@localhost) by anthrax.mumblefrotz.dyndns.org (8.11.6/8.11.6) id g1AG7bf24590; Sun, 10 Feb 2002 18:07:37 +0200 (EET) (envelope-from ejk) Message-Id: <200202101607.g1AG7bf24590@anthrax.mumblefrotz.dyndns.org> Date: Sun, 10 Feb 2002 18:07:37 +0200 (EET) From: Esa Karkkainen Reply-To: Esa Karkkainen To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/34793: Update port: textproc/ispell Finnish language support Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34793 >Category: ports >Synopsis: Update port: textproc/ispell Finnish language support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Feb 10 08:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Esa Karkkainen >Release: FreeBSD 4.5-STABLE i386 >Organization: Is in state of disintegration >Environment: System: FreeBSD anthrax.mumblefrotz.dyndns.org 4.5-STABLE FreeBSD 4.5-STABLE #51: Fri Feb 1 19:09:42 EET 2002 root@anthrax.mumblefrotz.dyndns.org:/usr/obj/usr/src/sys/ANTHRAX i386 >Description: Add support for small, medium (default) or large Finnish dictionary. >How-To-Repeat: grep Finnish textproct/ispell >Fix: Apply the following patch. If for some reason this patch is not desirable way to implement Finnish ispell dictionarys, I have made a separate port and can submit it to gnats. diff -ruN ispell.orig/Makefile ispell/Makefile --- ispell.orig/Makefile Tue Jan 29 13:58:49 2002 +++ ispell/Makefile Sun Feb 10 17:49:56 2002 @@ -31,7 +31,7 @@ MUNCHLIST= ${WRKSRC}/munchlist DATADIR= ${PREFIX}/share/ispell -.if (!defined(ISPELL_FR) && !defined(ISPELL_SE) && !defined(ISPELL_BR) && !defined(ISPELL_DENEU) && !defined(ISPELL_DEALT) && !defined(ISPELL_BRITISH) && !defined(ISPELL_NO) && !defined(ISPELL_NL) && !defined(ISPELL_DA) && !defined(ISPELL_AF)) +.if (!defined(ISPELL_FR) && !defined(ISPELL_SE) && !defined(ISPELL_BR) && !defined(ISPELL_DENEU) && !defined(ISPELL_DEALT) && !defined(ISPELL_BRITISH) && !defined(ISPELL_NO) && !defined(ISPELL_NL) && !defined(ISPELL_DA) && !defined(ISPELL_AF) && !defined(ISPELL_FI)) pre-everything:: @${ECHO_MSG} '*********************************************************' @${ECHO_MSG} '* You can add further dictionaries: *' @@ -41,6 +41,8 @@ @${ECHO_MSG} '* (replaces the American dictionary) *' @${ECHO_MSG} '* - Dutch ISPELL_NL=yes *' @${ECHO_MSG} '* - Danish ISPELL_DA=yes *' + @${ECHO_MSG} '* - Finnish ISPELL_FI=yes *' + @${ECHO_MSG} '* (or ISPELL_FI=[small|large] (medium is default) *' @${ECHO_MSG} '* - French ISPELL_FR=yes *' @${ECHO_MSG} '* - Brasilian ISPELL_BR=yes *' @${ECHO_MSG} '* - German (old spelling) ISPELL_DEALT=yes *' @@ -116,6 +118,15 @@ EXTRA_DICT+= ${AFDISTFILE} EXTRACT_ONLY+= ${AFDISTFILE} .endif +.if defined(ISPELL_FI) +MASTER_SITES+= http://ispell-fi.sourceforge.net/ +FIDICTFILE= finnish.dict.bz2 +.if ${ISPELL_FI:L} != yes +FIAFFIXFILE= finnish.${ISPELL_FI:L}.aff.bz2 +.else +FIAFFIXFILE= finnish.medium.aff.bz2 +.endif +.endif DISTFILES+= ${EXTRA_DICT} .endif @@ -132,6 +143,13 @@ .if defined(ISPELL_DENEU) @${TAR} -C ${WRKDIR}/ -yxf ${DISTDIR}/${DENEUDISTFILE} .endif +.if defined(ISPELL_FI) + ${MKDIR} ${WRKDIR}/finnish +.for file in ${FIDICTFILE} ${FIAFFIXFILE} + ${BZIP2_CMD} -dc ${DISTDIR}/${file} \ + > ${WRKDIR}/finnish/${file:S/.bz2$//} +.endfor +.endif post-patch: .if defined(ISPELL_FR) @@ -159,7 +177,6 @@ @cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/AF.patch 2>/dev/null .endif - post-configure: @${ECHO_CMD} "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h .if defined(MASKBITS) @@ -212,6 +229,11 @@ @cd ${WRKDIR}/${AFDISTFILE:S=.tar.gz==} && \ ${MAKE} ${MAKEFLAGS} BUILDHASH=${BUILDHASH} all .endif +.if defined(ISPELL_FI) + @cd ${WRKDIR}/finnish && \ + ${BUILDHASH} ${FIDICTFILE:S/.bz2//} ${FIAFFIXFILE:S/.bz2//} \ + finnish.hash && ${MV} ${FIAFFIXFILE:S/.bz2//} finnish.aff +.endif pre-install: @if [ ! -d ${DATADIR} ]; then ${MKDIR} ${DATADIR}; fi @@ -256,6 +278,9 @@ @${CAT} ${MASTERDIR}/pkg-plist.british >> ${TMPPLIST} .else @${CAT} ${MASTERDIR}/pkg-plist.am >> ${TMPPLIST} +.endif +.if defined(ISPELL_FI) + @${CAT} ${MASTERDIR}/pkg-plist.fi >> ${TMPPLIST} .endif @${ECHO_CMD} "@dirrm share/ispell" >> ${TMPPLIST} diff -ruN ispell.orig/pkg-descr ispell/pkg-descr --- ispell.orig/pkg-descr Wed Jan 10 14:07:55 2001 +++ ispell/pkg-descr Sun Feb 10 17:22:43 2002 @@ -8,6 +8,7 @@ - British English - Danish - Dutch + - Finnish - French - Brasilian - German (old and new spelling) diff -ruN ispell.orig/pkg-plist.fi ispell/pkg-plist.fi --- ispell.orig/pkg-plist.fi Thu Jan 1 02:00:00 1970 +++ ispell/pkg-plist.fi Sat Feb 9 18:30:26 2002 @@ -0,0 +1,2 @@ +share/ispell/finnish.aff +share/ispell/finnish.hash >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message