summaryrefslogtreecommitdiff
path: root/textproc/hunspell
diff options
context:
space:
mode:
authorahoka <ahoka>2009-10-29 22:57:10 +0000
committerahoka <ahoka>2009-10-29 22:57:10 +0000
commit1c0fb623a8a831853a9a81a725ad91e3e0f2cb22 (patch)
tree16f6b7580bc003bec8941db929cce374c274950d /textproc/hunspell
parent1ca2ac9a35809ebdd9ba39e92ffe34286726e41f (diff)
downloadpkgsrc-1c0fb623a8a831853a9a81a725ad91e3e0f2cb22.tar.gz
Support for OO.o dicts without readme files.
Diffstat (limited to 'textproc/hunspell')
-rw-r--r--textproc/hunspell/Makefile.common12
-rw-r--r--textproc/hunspell/PLIST.common4
2 files changed, 13 insertions, 3 deletions
diff --git a/textproc/hunspell/Makefile.common b/textproc/hunspell/Makefile.common
index fa6a42629c6..1d9318ec79d 100644
--- a/textproc/hunspell/Makefile.common
+++ b/textproc/hunspell/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2009/08/25 11:57:46 wiz Exp $
+# $NetBSD: Makefile.common,v 1.3 2009/10/29 22:57:10 ahoka Exp $
# used by textproc/hunspell-af_ZA/Makefile
# used by textproc/hunspell-bg_BG/Makefile
# used by textproc/hunspell-ca_ES/Makefile
@@ -25,6 +25,10 @@ CATEGORIES= textproc
MASTER_SITES= http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/
HOMEPAGE= http://wiki.services.openoffice.org/wiki/Dictionaries
+# Whether to install readme files for dict
+HUNDICT_INSTALL_README?= yes
+PLIST_VARS= readme
+
EXTRACT_SUFX= .zip
USE_LANGUAGES= # none
NO_BUILD= yes
@@ -37,10 +41,16 @@ DIST_SUBDIR= hunspell-dictionaries/${DISTNAME}-${VERSION}
PLIST_SRC= ../../textproc/hunspell/PLIST.common
PLIST_SUBST+= DISTNAME=${DISTNAME}
+.if ${HUNDICT_INSTALL_README} == "yes"
+PLIST.readme= yes
+.endif
+
INSTALLATION_DIRS= share/hunspell share/doc/hunspell-${DISTNAME}
do-install:
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.aff ${DESTDIR}${PREFIX}/share/hunspell
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.dic ${DESTDIR}${PREFIX}/share/hunspell
+.if ${HUNDICT_INSTALL_README} == "yes"
${INSTALL_DATA} ${WRKSRC}/README_${DISTNAME}.txt \
${DESTDIR}${PREFIX}/share/doc/hunspell-${DISTNAME}
+.endif
diff --git a/textproc/hunspell/PLIST.common b/textproc/hunspell/PLIST.common
index 1b64d23cba6..8dd588c6e06 100644
--- a/textproc/hunspell/PLIST.common
+++ b/textproc/hunspell/PLIST.common
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.3 2009/06/14 21:36:31 joerg Exp $
-share/doc/hunspell-${DISTNAME}/README_${DISTNAME}.txt
+@comment $NetBSD: PLIST.common,v 1.4 2009/10/29 22:57:10 ahoka Exp $
+${PLIST.readme}share/doc/hunspell-${DISTNAME}/README_${DISTNAME}.txt
share/hunspell/${DISTNAME}.aff
share/hunspell/${DISTNAME}.dic