Date: Sun, 21 Apr 2002 17:32:38 +0200 (CEST) From: Alex Dupre <sysadmin@alexdupre.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/37318: [Update Port] textproc/ispell (New dictionary: Italian) Message-ID: <200204211532.g3LFWckq033232@vaio.alexdupre.com>
next in thread | raw e-mail | index | archive | help
>Number: 37318 >Category: ports >Synopsis: [Update Port] textproc/ispell (New dictionary: Italian) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Apr 21 08:30:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Alex Dupre >Release: FreeBSD 4.5-ALEXDUPRE i386 >Organization: >Environment: System: FreeBSD vaio.alexdupre.com 4.5-ALEXDUPRE FreeBSD 4.5-ALEXDUPRE #0: Fri Apr 12 14:12:57 CEST 2002 alex@vaio.alexdupre.com:/usr/obj/usr/src/sys/VAIO i386 >Description: Main change: Added Italian dictionary Other changes: Resorted language list Patched munchlist to use correct tmp dir Patched local.h to use ISO character sets >How-To-Repeat: >Fix: --- ispell.diff begins here --- diff -ruN ispell/Makefile ispell.new/Makefile --- ispell/Makefile Thu Feb 21 21:22:55 2002 +++ ispell.new/Makefile Sun Apr 21 17:27:48 2002 @@ -7,7 +7,7 @@ PORTNAME?= ispell PORTVERSION?= 3.2.06 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES+= textproc MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/ DISTNAME= ispell-3.2.06 # needed for slave ports / options @@ -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) && !defined(ISPELL_FI)) +.if (!defined(ISPELL_IT) && !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: *' @@ -39,14 +39,15 @@ @${ECHO_MSG} '* - Afrikaans ISPELL_AF=yes *' @${ECHO_MSG} '* - British ISPELL_BRITISH=yes *' @${ECHO_MSG} '* (replaces the American dictionary) *' + @${ECHO_MSG} '* - Brasilian ISPELL_BR=yes *' @${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 *' @${ECHO_MSG} '* - German (new spelling) ISPELL_DENEU=yes *' + @${ECHO_MSG} '* - Italian ISPELL_IT=yes *' @${ECHO_MSG} '* - Swedish ISPELL_SE=yes *' @${ECHO_MSG} '* - Norwegian ISPELL_NO=yes *' @${ECHO_MSG} '* Example: "make ISPELL_FR=yes ISPELL_SE=yes install" *' @@ -55,6 +56,11 @@ .if defined(ISPELL_BRITISH) SCRIPTS_ENV+= ISPELL_BRITISH=${ISPELL_BRITISH} .endif +.if defined(ISPELL_IT) +ITDISTFILE= ispell-it2001.tgz +MASTER_SITES+= http://members.xoom.virgilio.it/trasforma/ispell/ +EXTRA_DICT+= ${ITDISTFILE} +.endif .if defined(ISPELL_FR) FRDISTFILE= francais-IREQ-1.4.tar.gz MASTER_SITES+= ftp://ftp.robot.ireq.ca/pub/ispell/ @@ -133,6 +139,9 @@ .endif post-extract: +.if defined(ISPELL_IT) + @${TAR} -C ${WRKDIR} -zxf ${DISTDIR}/${ITDISTFILE} +.endif .if defined(ISPELL_FR) @${MKDIR} ${WRKDIR}/francais-IREQ @${TAR} -C ${WRKDIR}/francais-IREQ -zxf ${PORTSDIR}/distfiles/${FRDISTFILE} @@ -153,6 +162,11 @@ .endif post-patch: +.if defined(ISPELL_IT) + @cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/IT.patch 2>/dev/null + @${PERL} -pi -e "s|%%BH%%|${BUILDHASH}|g;s|%%MH%%|${MUNCHLIST}|g" \ + ${WRKDIR}/ispell-it/Makefile +.endif .if defined(ISPELL_FR) @cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/FR.patch 2>/dev/null .endif @@ -185,6 +199,9 @@ .endif post-build: +.if defined(ISPELL_IT) + @cd ${WRKDIR}/ispell-it && ${MAKE} all +.endif .if defined(ISPELL_DENEU) @cd ${WRKDIR}/${DENEUDISTFILE:S=.tar.bz2==} && \ ${MAKE} ${MAKEFLAGS} UNSQ=${UNSQ} BUILDHASH=${BUILDHASH} \ @@ -247,7 +264,10 @@ ${INSTALL_DATA} ${WRKSRC}/languages/american/english.med+ \ ${DATADIR}/english.dict .endif - @-${INSTALL_DATA} ${WRKDIR}/*/*.aff ${WRKDIR}/*/*.hash ${DATADIR} + @${INSTALL_DATA} ${WRKDIR}/*/*.aff ${WRKDIR}/*/*.hash ${DATADIR} +.if defined(ISPELL_IT) + @${CAT} ${MASTERDIR}/pkg-plist.it >> ${TMPPLIST} +.endif .if defined(ISPELL_FR) @${CAT} ${MASTERDIR}/pkg-plist.fr >> ${TMPPLIST} .endif diff -ruN ispell/distinfo ispell.new/distinfo --- ispell/distinfo Fri Feb 15 20:45:15 2002 +++ ispell.new/distinfo Sun Apr 21 16:08:47 2002 @@ -1,4 +1,5 @@ MD5 (ispell-3.2.06.tar.gz) = d434e1aef1a815294d5012c60c4c414a +MD5 (ispell-it2001.tgz) = 559ab52451fec91068f11d40f5f919b2 MD5 (francais-IREQ-1.4.tar.gz) = 3871371b0f8e57b554f8895ce3a43b5a MD5 (iswedish-1.2.1.tar.gz) = b546aeb88d7614c32e541488d55f32fe MD5 (hk-deutsch.tar.gz) = 0fb468159f7f0ba5b8a02c1fe111ac2d diff -ruN ispell/files/IT.patch ispell.new/files/IT.patch --- ispell/files/IT.patch Thu Jan 1 01:00:00 1970 +++ ispell.new/files/IT.patch Sun Apr 21 16:41:15 2002 @@ -0,0 +1,12 @@ +--- ispell-it/Makefile.orig Sun Apr 21 16:28:51 2002 ++++ ispell-it/Makefile Sun Apr 21 16:29:01 2002 +@@ -1,7 +1,7 @@ + SHELL = /bin/sh + MAKE = make +-BUILDHASH = buildhash +-MUNCHLIST = munchlist ++BUILDHASH = %%BH%% ++MUNCHLIST = %%MH%% + LANGUAGE = italian + AFFIXES = $(LANGUAGE).aff + DICTIONARY = $(LANGUAGE).words diff -ruN ispell/files/patch-local.h.samp ispell.new/files/patch-local.h.samp --- ispell/files/patch-local.h.samp Thu Jan 1 01:00:00 1970 +++ ispell.new/files/patch-local.h.samp Sun Apr 21 17:00:42 2002 @@ -0,0 +1,10 @@ +--- local.h.samp.orig Sun Apr 21 16:58:43 2002 ++++ local.h.samp Sun Apr 21 16:58:54 2002 +@@ -105,7 +105,6 @@ + */ + + #define MINIMENU /* Display a mini-menu at the bottom of the screen */ +-#define NO8BIT /* Remove this if you use ISO character sets */ + #undef USG /* Define on System V or if term.c won't compile */ + #undef NO_FCNTL_H /* Define if you get compile errors on fcntl.h */ + #undef NO_MKSTEMP /* Define if you get compile or link errors */ diff -ruN ispell/files/patch-munchlist.X ispell.new/files/patch-munchlist.X --- ispell/files/patch-munchlist.X Thu Jan 1 01:00:00 1970 +++ ispell.new/files/patch-munchlist.X Sun Apr 21 16:53:33 2002 @@ -0,0 +1,11 @@ +--- munchlist.X.orig Sun Apr 21 16:52:41 2002 ++++ munchlist.X Sun Apr 21 16:53:03 2002 +@@ -160,7 +160,7 @@ + set -vx + fi + LIBDIR=!!LIBDIR!! +-TDIR=${TMPDIR-/usr/tmp} ++TDIR=${TMPDIR-/tmp} + TMP=${TDIR}/munch$$ + SORTTMP="-T ${TDIR}" # !!SORTTMP!! + diff -ruN ispell/pkg-plist.it ispell.new/pkg-plist.it --- ispell/pkg-plist.it Thu Jan 1 01:00:00 1970 +++ ispell.new/pkg-plist.it Sun Apr 21 17:08:49 2002 @@ -0,0 +1,3 @@ +share/ispell/italian.aff +share/ispell/italian.hash +share/ispell/italiano.hash --- ispell.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204211532.g3LFWckq033232>