Add support for Slovak dictionary.

PR:		ports/105969
Submitted by:	martinko <gamato@users.sourceforge.net>
This commit is contained in:
Jean-Marc Zucconi 2006-12-04 11:38:15 +00:00
parent c6f1382e04
commit 8379855368
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178814
4 changed files with 22 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME?= ispell PORTNAME?= ispell
PORTVERSION?= 3.2.06 PORTVERSION?= 3.2.06
PORTREVISION?= 15 PORTREVISION?= 16
CATEGORIES+= textproc CATEGORIES+= textproc
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/ \ MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/ \
http://distfiles.opendarwin.org/ http://distfiles.opendarwin.org/
@ -37,7 +37,7 @@ MUNCHLIST= ${WRKSRC}/munchlist
DATADIR= ${PREFIX}/share/ispell DATADIR= ${PREFIX}/share/ispell
ISPELL= ${WRKSRC}/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) .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))
pre-everything:: pre-everything::
@${ECHO_MSG} '*********************************************************' @${ECHO_MSG} '*********************************************************'
@${ECHO_MSG} '* You can add further dictionaries: *' @${ECHO_MSG} '* You can add further dictionaries: *'
@ -57,6 +57,7 @@ pre-everything::
@${ECHO_MSG} '* - German (new spelling) ISPELL_DENEU=yes *' @${ECHO_MSG} '* - German (new spelling) ISPELL_DENEU=yes *'
@${ECHO_MSG} '* - Italian ISPELL_IT=yes *' @${ECHO_MSG} '* - Italian ISPELL_IT=yes *'
@${ECHO_MSG} '* - Polish ISPELL_PL=yes *' @${ECHO_MSG} '* - Polish ISPELL_PL=yes *'
@${ECHO_MSG} '* - Slovak ISPELL_SK=yes *'
@${ECHO_MSG} '* - Swedish ISPELL_SE=yes *' @${ECHO_MSG} '* - Swedish ISPELL_SE=yes *'
@${ECHO_MSG} '* - Norwegian ISPELL_NO=yes *' @${ECHO_MSG} '* - Norwegian ISPELL_NO=yes *'
@${ECHO_MSG} '* Example: "make ISPELL_FR=yes ISPELL_SE=yes install" *' @${ECHO_MSG} '* Example: "make ISPELL_FR=yes ISPELL_SE=yes install" *'
@ -156,6 +157,12 @@ MASKBITS?= 64
EXTRA_DICT+= ${BGDISTFILE}:bg EXTRA_DICT+= ${BGDISTFILE}:bg
EXTRACT_ONLY+= ${BGDISTFILE} EXTRACT_ONLY+= ${BGDISTFILE}
.endif .endif
.if defined(ISPELL_SK)
SKDISTFILE= ispell-sk-0.3.2.tar.gz
MASTER_SITES+= http://sk-spell.sk.cx/files/:sk
EXTRA_DICT+= ${SKDISTFILE}:sk
EXTRACT_ONLY+= ${SKDISTFILE}
.endif
.endif .endif
DISTFILES+= ${EXTRA_DICT} DISTFILES+= ${EXTRA_DICT}
@ -290,6 +297,10 @@ post-build:
${CP} data/bulgarian.aff bulgarian.aff && \ ${CP} data/bulgarian.aff bulgarian.aff && \
${CP} data/bulgarian.hash bulgarian.hash ${CP} data/bulgarian.hash bulgarian.hash
.endif .endif
.if defined(ISPELL_SK)
@cd ${WRKDIR}/${SKDISTFILE:S=.tar.gz==} && \
${BUILDHASH} slovak.words slovak.aff slovak.hash
.endif
pre-su-install: pre-su-install:
@if [ ! -d ${DATADIR} ]; then ${MKDIR} ${DATADIR}; fi @if [ ! -d ${DATADIR} ]; then ${MKDIR} ${DATADIR}; fi
@ -348,6 +359,9 @@ post-install:
.endif .endif
.if defined(ISPELL_PL) .if defined(ISPELL_PL)
@${CAT} ${MASTERDIR}/pkg-plist.pl >> ${TMPPLIST} @${CAT} ${MASTERDIR}/pkg-plist.pl >> ${TMPPLIST}
.endif
.if defined(ISPELL_SK)
@${CAT} ${MASTERDIR}/pkg-plist.sk >> ${TMPPLIST}
.endif .endif
@${ECHO_CMD} "@dirrm share/ispell" >> ${TMPPLIST} @${ECHO_CMD} "@dirrm share/ispell" >> ${TMPPLIST}

View File

@ -47,3 +47,6 @@ SIZE (ispell-pl-20021127.tar.gz) = 1019831
MD5 (ispell-bg-2.1.tar.gz) = 226ea86d1f10b0bffc816fa149548c4f MD5 (ispell-bg-2.1.tar.gz) = 226ea86d1f10b0bffc816fa149548c4f
SHA256 (ispell-bg-2.1.tar.gz) = 3f9916c2a4ac2a8429a951715d03d91bacf20cbcbd78bfd945243e1001e32d32 SHA256 (ispell-bg-2.1.tar.gz) = 3f9916c2a4ac2a8429a951715d03d91bacf20cbcbd78bfd945243e1001e32d32
SIZE (ispell-bg-2.1.tar.gz) = 233729 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

View File

@ -16,5 +16,6 @@ Included in this port are:
- Norwegian - Norwegian
- Swedish - Swedish
- Polish - Polish
- Slovak
WWW: http://fmg-www.cs.ucla.edu/geoff/ispell.html WWW: http://fmg-www.cs.ucla.edu/geoff/ispell.html

View File

@ -0,0 +1,2 @@
share/ispell/slovak.aff
share/ispell/slovak.hash