diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2011-07-20 09:35:28 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2011-07-20 09:35:28 +0000 |
commit | 3e5bc7a3a7898b6109c2c42a2b0a5471c32dfbf1 (patch) | |
tree | e028665157b52f3a32fccee327c80cfc4dcb850b /textproc/en-hunspell/Makefile | |
parent | 4138a91c953238f54335d87f5842b3adf47bafde (diff) | |
download | ports-3e5bc7a3a7898b6109c2c42a2b0a5471c32dfbf1.tar.gz ports-3e5bc7a3a7898b6109c2c42a2b0a5471c32dfbf1.zip |
Notes
Diffstat (limited to 'textproc/en-hunspell/Makefile')
-rw-r--r-- | textproc/en-hunspell/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/textproc/en-hunspell/Makefile b/textproc/en-hunspell/Makefile new file mode 100644 index 000000000000..b82eabd89fb8 --- /dev/null +++ b/textproc/en-hunspell/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: en-hunspell +# Date created: 2011-07-20 +# Whom: Baptiste Daroussin <bapt@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= en-hunspell +PORTVERSION= 7.1 +CATEGORIES= textproc +MASTER_SITES= SF/wordlist/Hunspell%20en_US/${PORTVERSION}-0/ \ + SF/wordlist/Hunspell%20en_CA/${PORTVERSION}-0/:CA \ + http://en-gb.pyxidium.co.uk/dictionary/:GB +DISTFILES= hunspell-en_US-${PORTVERSION}-0${EXTRACT_SUFX} \ + hunspell-en_CA-${PORTVERSION}-0${EXTRACT_SUFX}:CA \ + en_GB.zip:GB + +MAINTAINER= bapt@FreeBSD.org +COMMENT= Hunspell english dictionnaries + +USE_ZIP= yes +NO_BUILD= yes + +PLIST_FILES= share/hunspell/en_GB.dic \ + share/hunspell/en_GB.aff \ + share/hunspell/en_CA.aff \ + share/hunspell/en_CA.dic \ + share/hunspell/en_US.aff \ + share/hunspell/en_US.dic \ + +GBALIASES= en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN en_JM \ + en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW +USALIASES= en_PH + +.for ALIAS in ${GBALIASES} +PLIST_FILES+= share/hunspell/${ALIAS}.aff \ + share/hunspell/${ALIAS}.dic +.endfor +.for ALIAS in ${USALIASES} +PLIST_FILES+= share/hunspell/${ALIAS}.aff \ + share/hunspell/${ALIAS}.dic +.endfor + +PLIST_DIRS= share/hunspell + +do-install: + @${MKDIR} ${PREFIX}/share/hunspell + @${INSTALL_DATA} ${WRKDIR}/*.dic ${WRKDIR}/*.aff ${PREFIX}/share/hunspell + @cd ${PREFIX}/share/hunspell; \ + for alias in ${GBALIASES}; do \ + ${LN} -s en_GB.aff $${alias}.aff ; \ + ${LN} -s en_GB.dic $${alias}.dic ; \ + done; \ + for alias in ${USALIASES}; do \ + ${LN} -s en_US.aff $${alias}.aff ; \ + ${LN} -s en_US.dic $${alias}.dic ; \ + done; \ + +.include <bsd.port.mk> |