Bug 39699 - Update port: textproc/ispell Polish language support
Summary: Update port: textproc/ispell Polish language support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: jmz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-23 15:20 UTC by Piotr Rusiecki
Modified: 2002-06-24 00:35 UTC (History)
0 users

See Also:


Attachments
file.diff (3.15 KB, patch)
2002-06-23 15:20 UTC, Piotr Rusiecki
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Rusiecki 2002-06-23 15:20:01 UTC
Add support for Polish language

Fix: Patch:
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-06-23 15:59:59 UTC
Responsible Changed
From-To: freebsd-ports->jmz

over to maintainer
Comment 2 Piotr Rusiecki 2002-06-23 16:51:36 UTC
Ups, I forgot to change pkg-descr. Sorry. 

The whole patch once again:


diff -ruN ispell.orig/Makefile ispell/Makefile
--- ispell.orig/Makefile	Mon Jun 17 21:37:50 2002
+++ ispell/Makefile	Sat Jun 22 22:01:42 2002
@@ -31,7 +31,7 @@
 MUNCHLIST=	${WRKSRC}/munchlist
 DATADIR=	${PREFIX}/share/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))
+.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))
 pre-everything::
 	@${ECHO_MSG} '*********************************************************'
 	@${ECHO_MSG} '* You can add further dictionaries:                     *'
@@ -48,6 +48,7 @@
 	@${ECHO_MSG} '*  - German (old spelling)     ISPELL_DEALT=yes         *'
 	@${ECHO_MSG} '*  - German (new spelling)     ISPELL_DENEU=yes         *'
 	@${ECHO_MSG} '*  - Italian                   ISPELL_IT=yes            *'
+	@${ECHO_MSG} '*  - Polish                    ISPELL_PL=yes            *'
 	@${ECHO_MSG} '*  - Swedish                   ISPELL_SE=yes            *'
 	@${ECHO_MSG} '*  - Norwegian                 ISPELL_NO=yes            *'
 	@${ECHO_MSG} '* Example: "make ISPELL_FR=yes ISPELL_SE=yes install"   *'
@@ -134,6 +135,14 @@
 .endif
 EXTRA_DICT+=	${FIDICTFILE} ${FIAFFIXFILE}
 .endif
+.if defined(ISPELL_PL)
+MASTER_SITES+=	ftp://sunsite.icm.edu.pl/pub/unix/polish-ispell/ \
+		${MASTER_SITE_LOCAL}
+PLDISTFILE=	ispell-pl-20011004.tar.gz
+MASKBITS?=	64
+EXTRA_DICT+=	${PLDISTFILE}
+EXTRACT_ONLY+=	${PLDISTFILE}
+.endif
 
 DISTFILES+=	${EXTRA_DICT}
 .endif
@@ -252,6 +261,11 @@
 		${BUILDHASH} ${FIDICTFILE:S/.bz2//} ${FIAFFIXFILE:S/.bz2//} \
 		finnish.hash && ${MV} ${FIAFFIXFILE:S/.bz2//} finnish.aff
 .endif
+.if defined(ISPELL_PL)
+	@cd ${WRKDIR}/${PLDISTFILE:S=ispell-pl-==:S=.tar.gz==} && \
+		${CAT} A B C imiona-A imiona-B fachowe/* > polish.dic && \
+		${BUILDHASH} polish.dic polish.aff polish.hash
+.endif
 
 pre-install:
 	@if [ ! -d ${DATADIR} ]; then ${MKDIR} ${DATADIR}; fi
@@ -302,6 +316,9 @@
 .endif
 .if defined(ISPELL_FI)
 	@${CAT} ${MASTERDIR}/pkg-plist.fi >> ${TMPPLIST}
+.endif
+.if defined(ISPELL_PL)
+	@${CAT} ${MASTERDIR}/pkg-plist.pl >> ${TMPPLIST}
 .endif
 	@${ECHO_CMD} "@dirrm share/ispell" >> ${TMPPLIST}
 
diff -ruN ispell.orig/distinfo ispell/distinfo
--- ispell.orig/distinfo	Mon Jun 17 21:37:50 2002
+++ ispell/distinfo	Sat Jun 22 17:28:38 2002
@@ -13,3 +13,4 @@
 MD5 (finnish.small.aff.bz2) = 19fec07598e23ad747bc999ea53b9538
 MD5 (finnish.medium.aff.bz2) = d53611daaed94c8b17869a60e4ae61d9
 MD5 (finnish.large.aff.bz2) = 9c7bfc8850e958a5d2aec579f5d8903c
+MD5 (ispell-pl-20011004.tar.gz) = b224a718fa28bdd888b4e813e0fb897e
diff -ruN ispell.orig/pkg-descr ispell/pkg-descr
--- ispell.orig/pkg-descr	Mon Jun 17 21:37:50 2002
+++ ispell/pkg-descr	Sun Jun 23 17:13:01 2002
@@ -14,5 +14,6 @@
 	- German (old and new spelling)
 	- Norwegian
 	- Swedish 
+	- Polish
 
 WWW: http://fmg-www.cs.ucla.edu/geoff/ispell.html
diff -ruN ispell.orig/pkg-plist.pl ispell/pkg-plist.pl
--- ispell.orig/pkg-plist.pl	Thu Jan  1 01:00:00 1970
+++ ispell/pkg-plist.pl	Mon Jun 17 21:39:03 2002
@@ -0,0 +1,2 @@
+share/ispell/polish.aff
+share/ispell/polish.hash
Comment 3 jmz freebsd_committer freebsd_triage 2002-06-24 00:34:22 UTC
State Changed
From-To: open->closed

Committed. Thanks!