This commit is contained in:
parent
413e482f42
commit
7592ac3395
65
textproc/ispell/Makefile
Normal file
65
textproc/ispell/Makefile
Normal file
@ -0,0 +1,65 @@
|
||||
# New ports collection makefile for: ispell
|
||||
# Version required: 3.1.20
|
||||
# Date created: 17 Nov 1997
|
||||
# Whom: ejovi
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1997/11/18 02:46:09 joey Exp $
|
||||
# Id: Makefile,v 1.21 1997/08/13 23:29:52 jmz Exp $
|
||||
#
|
||||
|
||||
DISTNAME= ispell-3.1
|
||||
PKGNAME= ispell-3.1.20
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
|
||||
DISTFILES= ispell-3.1.20.tar.gz
|
||||
|
||||
MAINTAINER= joey@OpenBSD.ORG
|
||||
|
||||
MAKE_FLAGS= TMPDIR=${.CURDIR} -f
|
||||
MAN1= buildhash.1 findaffix.1 ispell.1 munchlist.1 \
|
||||
sq.1 tryaffix.1 unsq.1
|
||||
MAN4= ispell.4 english.4
|
||||
|
||||
pre-fetch pre-build pre-install:
|
||||
.if !defined(ISPELL_FR)
|
||||
@echo '******************************************************'
|
||||
@echo '* Note that you can build a french/english version *'
|
||||
@echo '* by typing "make french" *'
|
||||
@echo '******************************************************'
|
||||
.else
|
||||
EXTRA_DICT= francais-IREQ-1.4.tar.gz
|
||||
MASTER_SITES+= ftp://ftp.robot.ireq.ca/pub/ispell/
|
||||
DISTFILES+= ${EXTRA_DICT}
|
||||
.endif
|
||||
|
||||
pre-extract:
|
||||
.if !defined(LANG)
|
||||
@echo '******************************************************'
|
||||
@echo '* Note that you can build a british version by *'
|
||||
@echo '* typing "make british" following a "make clean" *'
|
||||
@echo '******************************************************'
|
||||
.endif
|
||||
|
||||
|
||||
pre-configure:
|
||||
.if defined(EXTRA_DICT)
|
||||
@echo ${EXTRA_DICT} > ${WRKDIR}/extra_dict
|
||||
.else
|
||||
@echo -n
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
@echo "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
|
||||
|
||||
british:
|
||||
@echo "Okay, making a british version of ispell...."
|
||||
@${MAKE} ${.MAKEFLAGS} LANG=british all
|
||||
|
||||
french:
|
||||
@echo "Okay, making a french/english version of ispell...."
|
||||
@${MAKE} ${.MAKEFLAGS} ISPELL_FR=yes
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${PREFIX}/share/emacs/site-lisp
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/ispell/files/md5
Normal file
2
textproc/ispell/files/md5
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (ispell-3.1.20.tar.gz) = 92986f940548fe4116428d21b16fd356
|
||||
MD5 (francais-IREQ-1.4.tar.gz) = 3871371b0f8e57b554f8895ce3a43b5a
|
30
textproc/ispell/patches/patch-ab
Normal file
30
textproc/ispell/patches/patch-ab
Normal file
@ -0,0 +1,30 @@
|
||||
--- Makefile.orig Thu Oct 12 20:04:06 1995
|
||||
+++ Makefile Wed Jun 4 05:05:47 1997
|
||||
@@ -253,7 +253,7 @@
|
||||
set -ex; \
|
||||
rm -f $$ELISPDIR/ispell.el; \
|
||||
$$INSTALL ispell.el $$ELISPDIR; \
|
||||
- if sh iwhich $$EMACS >/dev/null; then \
|
||||
+ if sh iwhich ___XXX___$$EMACS >/dev/null; then \
|
||||
echo '(byte-compile-file "'"$$ELISPDIR/ispell.el"'")' \
|
||||
> /tmp/emi$$$$; \
|
||||
$$EMACS -batch -l /tmp/emi$$$$; \
|
||||
@@ -508,7 +508,7 @@
|
||||
local.h:
|
||||
set +e; [ -r local.h ] || cp local.h.samp local.h
|
||||
|
||||
-msgs.h: config.sh FRC
|
||||
+msgs.h: config.sh
|
||||
@. ./config.sh; \
|
||||
set $(SHELLDEBUG); \
|
||||
set +e; \
|
||||
@@ -522,7 +522,8 @@
|
||||
else \
|
||||
set -x; \
|
||||
rm -f msgs.h; ln $$msgs msgs.h || cp $$msgs msgs.h; \
|
||||
- fi
|
||||
+ fi; \
|
||||
+ touch msgs.h
|
||||
|
||||
FRC:
|
||||
|
1
textproc/ispell/pkg/COMMENT
Normal file
1
textproc/ispell/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
An interactive spelling checker.
|
6
textproc/ispell/pkg/DESCR
Normal file
6
textproc/ispell/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
Ispell is a fast screen-oriented spelling checker that shows you your
|
||||
errors in the context of the original file, and suggests possible
|
||||
corrections when it can figure them out. Compared to UNIX spell, it
|
||||
is faster and much easier to use. Ispell can also handle languages
|
||||
other than English.
|
||||
|
23
textproc/ispell/pkg/PLIST
Normal file
23
textproc/ispell/pkg/PLIST
Normal file
@ -0,0 +1,23 @@
|
||||
bin/buildhash
|
||||
bin/findaffix
|
||||
bin/icombine
|
||||
bin/ijoin
|
||||
bin/ispell
|
||||
bin/munchlist
|
||||
bin/sq
|
||||
bin/tryaffix
|
||||
bin/unsq
|
||||
share/emacs/site-lisp/ispell.el
|
||||
lib/american.hash
|
||||
lib/americanmed+.hash
|
||||
lib/english.aff
|
||||
lib/english.hash
|
||||
man/man1/buildhash.1.gz
|
||||
man/man1/findaffix.1.gz
|
||||
man/man1/ispell.1.gz
|
||||
man/man1/munchlist.1.gz
|
||||
man/man1/sq.1.gz
|
||||
man/man1/tryaffix.1.gz
|
||||
man/man1/unsq.1.gz
|
||||
man/man4/ispell.4.gz
|
||||
man/man4/english.4.gz
|
53
textproc/ispell/scripts/configure
vendored
Normal file
53
textproc/ispell/scripts/configure
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "`echo a|sed -e P`" = "aa" ]; then
|
||||
echo You need a newer version of sed. Use sed from -current or gnu sed
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -f /usr/share/dict/words ]; then
|
||||
echo "you need to install /usr/share/dict/words from the 'dict' distribution first"
|
||||
exit 1
|
||||
fi
|
||||
cd $WRKSRC || exit 1;
|
||||
|
||||
if [ -f $WRKDIR/extra_dict ]; then
|
||||
extra_dict=`cat $WRKDIR/extra_dict`;
|
||||
case $extra_dict in
|
||||
francais-IREQ*)
|
||||
mkdir -p $WRKSRC/languages/francais-IREQ
|
||||
LOCAL=' {francais-IREQ}'
|
||||
for i in $WRKDIR/[A-Za-z]*; do
|
||||
if [ -f $i ]; then cp $i $WRKSRC/languages/francais-IREQ/; fi
|
||||
done
|
||||
(echo RM=rm -f; echo LIBDIR=$PREFIX/lib; echo HASH=../../buildhash) \
|
||||
>> $WRKSRC/languages/francais-IREQ/Makefile
|
||||
;;
|
||||
*)
|
||||
echo "I don't now how to configure ispell with $extra_dict"
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1;
|
||||
echo "#undef NO8BIT" >> local.h
|
||||
case $LANG in
|
||||
british)
|
||||
echo "#define LANGUAGES \"{british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=}$LOCAL\"" >>local.h ||exit 1;
|
||||
echo '#define MASTERHASH "britishxlg.hash"' >> local.h
|
||||
break ;;
|
||||
*)
|
||||
echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1;
|
||||
:;;
|
||||
esac
|
||||
|
||||
echo "#undef WORDS" >> local.h
|
||||
echo '#define WORDS "/usr/share/dict/words"' >> local.h
|
||||
echo '#undef ELISPDIR' >> local.h
|
||||
echo "#define ELISPDIR \"$PREFIX/share/emacs/site-lisp\"" >> local.h
|
||||
|
||||
mv Makefile Makefile.orig
|
||||
sed -e 's/^[ ]*$/\
|
||||
/' <Makefile.orig >Makefile
|
||||
|
||||
exit 0;
|
Loading…
Reference in New Issue
Block a user