summaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2007-03-06 11:27:43 +0000
committerjmz <jmz@FreeBSD.org>2007-03-06 11:27:43 +0000
commit3bc69d7844b8824506c64de6c858ff2682b894a5 (patch)
tree5be4fab7c689030a80afc632f0a285f115d74f11 /textproc
parente081b66ff83e96a933cae7b99227d7fb0e01e8de (diff)
downloadFreeBSD-ports-3bc69d7844b8824506c64de6c858ff2682b894a5.zip
FreeBSD-ports-3bc69d7844b8824506c64de6c858ff2682b894a5.tar.gz
Add support for czech dictionary.
PR: ports/109764 Submitted by: "Radim Kolar SF.NET" <hsn-sf@sanatana.iol.cz>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ispell/Makefile19
-rw-r--r--textproc/ispell/distinfo3
-rw-r--r--textproc/ispell/pkg-plist.cs2
3 files changed, 22 insertions, 2 deletions
diff --git a/textproc/ispell/Makefile b/textproc/ispell/Makefile
index b6b044f..82fc765 100644
--- a/textproc/ispell/Makefile
+++ b/textproc/ispell/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ispell
PORTVERSION?= 3.2.06
-PORTREVISION?= 16
+PORTREVISION?= 17
CATEGORIES+= textproc
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/ \
http://distfiles.opendarwin.org/
@@ -37,7 +37,7 @@ MUNCHLIST= ${WRKSRC}/munchlist
DATADIR= ${PREFIX}/share/ispell
ISPELL= ${WRKSRC}/ispell
-.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) && !defined(ISPELL_PL) && !defined(ISPELL_BG) && !defined(ISPELL_SK))
+.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) && !defined(ISPELL_PL) && !defined(ISPELL_BG) && !defined(ISPELL_SK) && !defined(ISPELL_CS))
pre-everything::
@${ECHO_MSG} '*********************************************************'
@${ECHO_MSG} '* You can add further dictionaries: *'
@@ -48,6 +48,7 @@ pre-everything::
@${ECHO_MSG} '* ISPELL_INCLAMERICAN=yes to have both) *'
@${ECHO_MSG} '* - Brazilian Portuguese ISPELL_BR=yes *'
@${ECHO_MSG} '* - Bulgarian ISPELL_BG=yes *'
+ @${ECHO_MSG} '* - Czech ISPELL_CS=yes *'
@${ECHO_MSG} '* - Dutch ISPELL_NL=yes *'
@${ECHO_MSG} '* - Danish ISPELL_DA=yes *'
@${ECHO_MSG} '* - Finnish ISPELL_FI=yes *'
@@ -163,6 +164,12 @@ MASTER_SITES+= http://sk-spell.sk.cx/files/:sk
EXTRA_DICT+= ${SKDISTFILE}:sk
EXTRACT_ONLY+= ${SKDISTFILE}
.endif
+.if defined(ISPELL_CS)
+CSDISTFILE= ispell-czech-20040229.tar.gz
+MASTER_SITES+= ftp://ftp.vslib.cz/pub/unix/ispell/:cs
+EXTRA_DICT+= ${CSDISTFILE}:cs
+EXTRACT_ONLY+= ${CSDISTFILE}
+.endif
.endif
DISTFILES+= ${EXTRA_DICT}
@@ -301,6 +308,11 @@ post-build:
@cd ${WRKDIR}/${SKDISTFILE:S=.tar.gz==} && \
${BUILDHASH} slovak.words slovak.aff slovak.hash
.endif
+.if defined(ISPELL_CS)
+ @cd ${WRKDIR}/ispell-czech && \
+ ${MAKE} czech.a-z && \
+ ${BUILDHASH} czech.a-z czech.aff czech.hash
+.endif
pre-su-install:
@if [ ! -d ${DATADIR} ]; then ${MKDIR} ${DATADIR}; fi
@@ -363,6 +375,9 @@ post-install:
.if defined(ISPELL_SK)
@${CAT} ${MASTERDIR}/pkg-plist.sk >> ${TMPPLIST}
.endif
+.if defined(ISPELL_CS)
+ @${CAT} ${MASTERDIR}/pkg-plist.cs >> ${TMPPLIST}
+.endif
@${ECHO_CMD} "@dirrm share/ispell" >> ${TMPPLIST}
.include <bsd.port.mk>
diff --git a/textproc/ispell/distinfo b/textproc/ispell/distinfo
index becaf11..4c6ea07 100644
--- a/textproc/ispell/distinfo
+++ b/textproc/ispell/distinfo
@@ -50,3 +50,6 @@ SIZE (ispell-bg-2.1.tar.gz) = 233729
SHA256 (ispell-sk-0.3.2.tar.gz) = 5b8a3e57e2a783c2e09984823e78ef758ff2954b7c165cea3ba4680e4dca657b
MD5 (ispell-sk-0.3.2.tar.gz) = 39a7587f1334b0d707101e28e0c29070
SIZE (ispell-sk-0.3.2.tar.gz) = 618244
+MD5 (ispell-czech-20040229.tar.gz) = 60d5cc92808eb09f764d900c680a9bff
+SHA256 (ispell-czech-20040229.tar.gz) = 7a8afeba08d9d888a7aea4b0e97eae3fa4b8ba3322e3c627f9420e14c51e8ffa
+SIZE (ispell-czech-20040229.tar.gz) = 1000601
diff --git a/textproc/ispell/pkg-plist.cs b/textproc/ispell/pkg-plist.cs
new file mode 100644
index 0000000..3f10d41
--- /dev/null
+++ b/textproc/ispell/pkg-plist.cs
@@ -0,0 +1,2 @@
+share/ispell/czech.aff
+share/ispell/czech.hash
OpenPOWER on IntegriCloud