ports/58894: Fix of support for Norwegian ispell
Espen Skoglund
esk at ira.uka.de
Mon Nov 3 20:40:09 UTC 2003
>Number: 58894
>Category: ports
>Synopsis: Fix of support for Norwegian ispell
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 03 12:40:04 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Espen Skoglund
>Release: FreeBSD 5.0-RELEASE-p10 i386
>Organization:
Karlsruhe University
>Environment:
>Description:
Support for Norwegian textproc/ispell is currently broken. The following
patch unbreaks it (perhaps not in the most elegant way).
>How-To-Repeat:
>Fix:
diff -ruN ispell.orig/Makefile ispell/Makefile
--- ispell.orig/Makefile Fri Mar 7 07:11:40 2003
+++ ispell/Makefile Mon Nov 3 21:24:11 2003
@@ -101,11 +101,19 @@
.endif
.if defined(ISPELL_NO)
NODISTFILE= ispell-norsk-2.0.tar.gz
+.if !exists(/usr/bin/bzip2)
+BUILD_DEPENDS+= bzip2:${PORTSDIR}/archivers/bzip2
+.endif
+DENEUDISTFILE= igerman98-20001109.tar.bz2
MASTER_SITES+= http://www.uio.no/~runekl/
+MASTER_SITES+= http://www.suse.de/~bjacke/igerman98/dict/ \
+ ftp://student.physik.uni-dortmund.de/pub/users/jacke/ispell/
EXTRA_DICT+= ${NODISTFILE}
EXTRACT_ONLY+= ${NODISTFILE}
MASKBITS?= 64
USE_GMAKE= yes
+USE_REINPLACE= yes
+BUILD_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
.endif
.if defined(ISPELL_NL)
NLDISTFILE= ispell-nl-1.0.0.tar.gz
@@ -165,7 +173,7 @@
@${MKDIR} ${WRKDIR}/hk-deutsch
@${TAR} -C ${WRKDIR}/hk-deutsch/ -zxf ${DISTDIR}/${DEALTDISTFILE}
.endif
-.if defined(ISPELL_DENEU)
+.if defined(ISPELL_DENEU) || defined(ISPELL_NO)
@${TAR} -C ${WRKDIR}/ -yxf ${DISTDIR}/${DENEUDISTFILE}
.endif
.if defined(ISPELL_FI)
@@ -196,6 +204,9 @@
.endif
.if defined(ISPELL_NO)
@cd ${WRKDIR}/norsk && ${PATCH} < ${FILESDIR}/NO.patch 2>/dev/null
+ @${REINPLACE_CMD} -e 's/awk/gawk/g' \
+ -e 's/%%PORTVERSION%%/${PORTVERSION}/g' \
+ ${WRKDIR}/norsk/Makefile
.endif
.if defined(ISPELL_NL)
@cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/NL.patch 2>/dev/null
diff -ruN ispell.orig/files/NO.patch ispell/files/NO.patch
--- ispell.orig/files/NO.patch Sat Mar 31 15:21:19 2001
+++ ispell/files/NO.patch Mon Nov 3 21:24:11 2003
@@ -7,9 +7,9 @@
-CONFIG = ../../config.sh
-PATHADDER = ../..
-BUILDHASH = ../../buildhash
-+CONFIG = ../ispell-3.1/config.sh
-+PATHADDER = ../ispell-3.1
-+BUILDHASH ?= ../ispell-3.1/buildhash
++CONFIG = ../ispell-%%PORTVERSION%%/config.sh
++PATHADDER = ../ispell-%%PORTVERSION%%
++BUILDHASH ?= ../ispell-%%PORTVERSION%%/buildhash
# The following variables make it easy to adapt this Makefile to
# numerous languages.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list