mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Extract the ispell wrapper out of aspell into a dedicated port
Cleanup up the aspell port Propertly strip aspell libraries Use short form of MASTER_SITES
This commit is contained in:
parent
41a994e689
commit
d2365ade3e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341537
6 changed files with 43 additions and 22 deletions
|
@ -31,6 +31,7 @@
|
||||||
SUBDIR += asciidoc
|
SUBDIR += asciidoc
|
||||||
SUBDIR += asm-xml
|
SUBDIR += asm-xml
|
||||||
SUBDIR += aspell
|
SUBDIR += aspell
|
||||||
|
SUBDIR += aspell-ispell
|
||||||
SUBDIR += ast-aspell
|
SUBDIR += ast-aspell
|
||||||
SUBDIR += atom
|
SUBDIR += atom
|
||||||
SUBDIR += ats-contrib-parcomb
|
SUBDIR += ats-contrib-parcomb
|
||||||
|
|
29
textproc/aspell-ispell/Makefile
Normal file
29
textproc/aspell-ispell/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= aspell
|
||||||
|
PORTVERSION= 0.60.6.1
|
||||||
|
CATEGORIES= textproc
|
||||||
|
MASTER_SITES= GNU/aspell
|
||||||
|
PKGNAMESUFFIX= -ispell
|
||||||
|
|
||||||
|
MAINTAINER= office@FreeBSD.org
|
||||||
|
COMMENT= Ispell compatibility script for aspell
|
||||||
|
|
||||||
|
LICENSE= LGPL21
|
||||||
|
|
||||||
|
CONFLICTS+= ispell* ??-ispell*
|
||||||
|
|
||||||
|
RUN_DEPENDS= aspell:${PORTSDIR}/textproc/aspell
|
||||||
|
|
||||||
|
NO_BUILD= yes
|
||||||
|
PLIST_FILES= bin/ispell \
|
||||||
|
bin/spell
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} -e "s/^#CHECK/CHECK/g" ${WRKSRC}/scripts/ispell
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/ispell ${STAGEDIR}${PREFIX}/bin
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/spell ${STAGEDIR}${PREFIX}/bin
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
2
textproc/aspell-ispell/distinfo
Normal file
2
textproc/aspell-ispell/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (aspell-0.60.6.1.tar.gz) = f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1
|
||||||
|
SIZE (aspell-0.60.6.1.tar.gz) = 1878163
|
3
textproc/aspell-ispell/pkg-descr
Normal file
3
textproc/aspell-ispell/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Command line wrapper for aspell, behaving like ispell
|
||||||
|
|
||||||
|
WWW: http://aspell.sourceforge.net/
|
|
@ -3,21 +3,18 @@
|
||||||
|
|
||||||
PORTNAME= aspell
|
PORTNAME= aspell
|
||||||
PORTVERSION= 0.60.6.1
|
PORTVERSION= 0.60.6.1
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
CATEGORIES= textproc
|
CATEGORIES= textproc
|
||||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
MASTER_SITES= GNU/aspell
|
||||||
MASTER_SITE_SUBDIR= aspell
|
|
||||||
|
|
||||||
MAINTAINER= office@FreeBSD.org
|
MAINTAINER= office@FreeBSD.org
|
||||||
COMMENT= Spelling checker with better suggestion logic than ispell
|
COMMENT= Spelling checker with better suggestion logic than ispell
|
||||||
|
|
||||||
LICENSE= LGPL21
|
LICENSE= LGPL21
|
||||||
|
|
||||||
OPTIONS_DEFINE= NLS DOCS ISPELL
|
OPTIONS_DEFINE= NLS DOCS
|
||||||
OPTIONS_SUB= yes
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
ISPELL_DESC= Install the ispell wrapper
|
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_ARGS= --enable-dict-dir=${DATADIR} \
|
CONFIGURE_ARGS= --enable-dict-dir=${DATADIR} \
|
||||||
--enable-docdir=${DOCSDIR} \
|
--enable-docdir=${DOCSDIR} \
|
||||||
|
@ -28,6 +25,7 @@ USES= gmake iconv perl5 shebangfix
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
SHEBANG_FILES= scripts/aspell-import
|
SHEBANG_FILES= scripts/aspell-import
|
||||||
|
|
||||||
|
INSTALL_TARGET= install-strip
|
||||||
VERINST= ${PORTVERSION:R:R}
|
VERINST= ${PORTVERSION:R:R}
|
||||||
SUB_FILES= aspell.ver
|
SUB_FILES= aspell.ver
|
||||||
PLIST_SUB= VER=${VERINST}
|
PLIST_SUB= VER=${VERINST}
|
||||||
|
@ -35,28 +33,16 @@ SUB_LIST= VERINST=${VERINST}
|
||||||
INFO= aspell-dev aspell
|
INFO= aspell-dev aspell
|
||||||
|
|
||||||
NLS_USES= gettext
|
NLS_USES= gettext
|
||||||
NLS_CONFIGURE_ARGS= --disable-nls
|
NLS_CONFIGURE_ENABLE= nls
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MISPELL}
|
|
||||||
CONFLICTS+= ispell* ??-ispell*
|
|
||||||
SCRIPTS= ispell spell
|
|
||||||
.endif
|
|
||||||
|
|
||||||
# Does not link without at least -O
|
# Does not link without at least -O
|
||||||
.if !defined(CFLAGS) || ${CFLAGS:M-O*} == ""
|
.if !defined(CFLAGS) || ${CFLAGS:M-O*} == ""
|
||||||
CFLAGS+= -O
|
CFLAGS+= -O
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install: ${DICT_TARGET}
|
post-install:
|
||||||
@${INSTALL_DATA} ${WRKDIR}/aspell.ver ${STAGEDIR}${PREFIX}/etc
|
@${INSTALL_DATA} ${WRKDIR}/aspell.ver ${STAGEDIR}${PREFIX}/etc
|
||||||
.if ${PORT_OPTIONS:MISPELL}
|
|
||||||
@${INSTALL_SCRIPT} ${SCRIPTS:S|^|${WRKSRC}/scripts/|} ${STAGEDIR}${PREFIX}/bin
|
|
||||||
.endif
|
|
||||||
@${ECHO_CMD} "@dirrm share/aspell" >> ${TMPPLIST}
|
|
||||||
@${ECHO_CMD} "@dirrm lib/aspell-${VERINST}" >> ${TMPPLIST}
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaspell.so.16 \
|
|
||||||
${STAGEDIR}${PREFIX}/lib/libpspell.so.16
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
bin/aspell
|
bin/aspell
|
||||||
bin/aspell-import
|
bin/aspell-import
|
||||||
%%ISPELL%%bin/ispell
|
|
||||||
bin/precat
|
bin/precat
|
||||||
bin/preunzip
|
bin/preunzip
|
||||||
bin/prezip
|
bin/prezip
|
||||||
bin/prezip-bin
|
bin/prezip-bin
|
||||||
bin/pspell-config
|
bin/pspell-config
|
||||||
bin/run-with-aspell
|
bin/run-with-aspell
|
||||||
%%ISPELL%%bin/spell
|
|
||||||
bin/word-list-compress
|
bin/word-list-compress
|
||||||
etc/aspell.ver
|
etc/aspell.ver
|
||||||
include/aspell.h
|
include/aspell.h
|
||||||
|
@ -133,3 +131,5 @@ man/man1/word-list-compress.1.gz
|
||||||
%%NLS%%@dirrmtry share/locale/fi
|
%%NLS%%@dirrmtry share/locale/fi
|
||||||
%%NLS%%@dirrmtry share/locale/ast/LC_MESSAGES
|
%%NLS%%@dirrmtry share/locale/ast/LC_MESSAGES
|
||||||
%%NLS%%@dirrmtry share/locale/ast
|
%%NLS%%@dirrmtry share/locale/ast
|
||||||
|
@dirrmtry %%DATADIR%%
|
||||||
|
@dirrm lib/aspell-%%VER%%
|
||||||
|
|
Loading…
Add table
Reference in a new issue