summaryrefslogtreecommitdiff
path: root/textproc/ispell
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2002-04-24 00:18:37 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2002-04-24 00:18:37 +0000
commit9083bfee80c481dc28845d19b8c441bb2734aa81 (patch)
tree6f4fa3167b4847bcbcc5ea7e6e056237df4cb75c /textproc/ispell
parentrespect PREFIX by using GNU_CONFIGURE, not HAS_CONFIGURE (diff)
Add italian dictionary
PR: ports/37318 Submitted by: Alex Dupre <sysadmin@alexdupre.com>
Notes
Notes: svn path=/head/; revision=58047
Diffstat (limited to 'textproc/ispell')
-rw-r--r--textproc/ispell/Makefile26
-rw-r--r--textproc/ispell/distinfo1
-rw-r--r--textproc/ispell/files/IT.patch12
3 files changed, 36 insertions, 3 deletions
diff --git a/textproc/ispell/Makefile b/textproc/ispell/Makefile
index 445be1b4002b..8a923cf4fdcb 100644
--- a/textproc/ispell/Makefile
+++ b/textproc/ispell/Makefile
@@ -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 @@ UNSQ?= ${WRKDIR}/${DENEUDISTFILE:S=.tar.bz2$==}/bin/unsq.pl
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 @@ pre-everything::
@${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 @@ pre-everything::
.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 @@ DISTFILES+= ${EXTRA_DICT}
.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 @@ post-extract:
.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 @@ post-configure:
.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} \
@@ -248,6 +265,9 @@ post-install:
${DATADIR}/english.dict
.endif
@-${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 --git a/textproc/ispell/distinfo b/textproc/ispell/distinfo
index d8b5aba7d87c..816018a5c90e 100644
--- a/textproc/ispell/distinfo
+++ b/textproc/ispell/distinfo
@@ -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 --git a/textproc/ispell/files/IT.patch b/textproc/ispell/files/IT.patch
new file mode 100644
index 000000000000..4b433d231dba
--- /dev/null
+++ b/textproc/ispell/files/IT.patch
@@ -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