From 1c0fb623a8a831853a9a81a725ad91e3e0f2cb22 Mon Sep 17 00:00:00 2001 From: ahoka Date: Thu, 29 Oct 2009 22:57:10 +0000 Subject: Support for OO.o dicts without readme files. --- textproc/hunspell/Makefile.common | 12 +++++++++++- textproc/hunspell/PLIST.common | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'textproc/hunspell') 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 -- cgit v1.2.3