aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2002-02-11 22:13:18 +0800
committerjmz <jmz@FreeBSD.org>2002-02-11 22:13:18 +0800
commitf260e5d56649bb39479a906e9a89a53e85da9eab (patch)
tree7a56e272451c01ca4afaa5a102b5d2738583235f
parentb2629f82f5a27197ae29321da4a846ea8060c0d7 (diff)
downloadfreebsd-ports-gnome-f260e5d56649bb39479a906e9a89a53e85da9eab.tar.gz
freebsd-ports-gnome-f260e5d56649bb39479a906e9a89a53e85da9eab.tar.zst
freebsd-ports-gnome-f260e5d56649bb39479a906e9a89a53e85da9eab.zip
Add Finnish language support.
PR: ports/34793 Submitted by: Esa Karkkainen <ejk@iki.fi>
-rw-r--r--textproc/ispell/Makefile32
-rw-r--r--textproc/ispell/distinfo4
-rw-r--r--textproc/ispell/pkg-descr1
-rw-r--r--textproc/ispell/pkg-plist.fi2
4 files changed, 36 insertions, 3 deletions
diff --git a/textproc/ispell/Makefile b/textproc/ispell/Makefile
index e5f47420e29c..282f984075b1 100644
--- a/textproc/ispell/Makefile
+++ b/textproc/ispell/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ispell
PORTVERSION?= 3.2.05
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES+= textproc
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/
DISTNAME= ispell-3.2.05 # 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))
+.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 @@ pre-everything::
@${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,16 @@ MASTER_SITE_SUBDIR= asmodai
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
+EXTRA_DICT+= ${FIDICTFILE} ${FIAFFIXFILE}
+.endif
DISTFILES+= ${EXTRA_DICT}
.endif
@@ -132,6 +144,13 @@ post-extract:
.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 +178,6 @@ post-patch:
@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 +230,11 @@ post-build:
@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
@@ -257,6 +280,9 @@ post-install:
.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}
.include <bsd.port.mk>
diff --git a/textproc/ispell/distinfo b/textproc/ispell/distinfo
index e724a9feddf6..3c698c83c8a7 100644
--- a/textproc/ispell/distinfo
+++ b/textproc/ispell/distinfo
@@ -8,3 +8,7 @@ MD5 (ispell-nl-1.0.0.tar.gz) = d9f8c68f28053e71792053e34201a28b
MD5 (ispell-da-1.4.22.tar.gz) = fd4580d33dc61b3dc667495db1d6f098
MD5 (ispell-sa-1.0.0.tar.gz) = b70889894d1427e5b78c0a6ecc4f8235
MD5 (igerman98-20001109.tar.bz2) = ec06d69a4b045b738788fd3359de37ee
+MD5 (finnish.dict.bz2) = 977a5eebe21881dca6be6cf38a244457
+MD5 (finnish.small.aff.bz2) = 19fec07598e23ad747bc999ea53b9538
+MD5 (finnish.medium.aff.bz2) = d53611daaed94c8b17869a60e4ae61d9
+MD5 (finnish.large.aff.bz2) = 9c7bfc8850e958a5d2aec579f5d8903c
diff --git a/textproc/ispell/pkg-descr b/textproc/ispell/pkg-descr
index 08989b9a6663..b966b95716f2 100644
--- a/textproc/ispell/pkg-descr
+++ b/textproc/ispell/pkg-descr
@@ -8,6 +8,7 @@ Included in this port are:
- British English
- Danish
- Dutch
+ - Finnish
- French
- Brasilian
- German (old and new spelling)
diff --git a/textproc/ispell/pkg-plist.fi b/textproc/ispell/pkg-plist.fi
new file mode 100644
index 000000000000..ed397124160e
--- /dev/null
+++ b/textproc/ispell/pkg-plist.fi
@@ -0,0 +1,2 @@
+share/ispell/finnish.aff
+share/ispell/finnish.hash