summaryrefslogtreecommitdiff
path: root/textproc/hunspell
diff options
context:
space:
mode:
authorahoka <ahoka@pkgsrc.org>2008-07-19 15:06:36 +0000
committerahoka <ahoka@pkgsrc.org>2008-07-19 15:06:36 +0000
commit35a91a6d56cae9e431f434476db3d257aad19a89 (patch)
treed5598c342efa2b7908dd81d6c33147a303d53d5c /textproc/hunspell
parentc29bec956289f23aa4b7dffd5227b1960d1095be (diff)
downloadpkgsrc-35a91a6d56cae9e431f434476db3d257aad19a89.tar.gz
Add skeleton makefiles for handling OO.org supplied dictionaries.
While here: change my email address.
Diffstat (limited to 'textproc/hunspell')
-rw-r--r--textproc/hunspell/Makefile4
-rw-r--r--textproc/hunspell/Makefile.common47
-rw-r--r--textproc/hunspell/PLIST.common6
3 files changed, 55 insertions, 2 deletions
diff --git a/textproc/hunspell/Makefile b/textproc/hunspell/Makefile
index c899621a4c1..6f87f6d3c5c 100644
--- a/textproc/hunspell/Makefile
+++ b/textproc/hunspell/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.7 2008/04/18 12:01:05 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2008/07/19 15:06:36 ahoka Exp $
#
DISTNAME= hunspell-1.2.2
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hunspell/}
-MAINTAINER= adam.hoka@gmail.com
+MAINTAINER= ahoka@NetBSD.org
HOMEPAGE= http://hunspell.sourceforge.net/
COMMENT= Improved spellchecker
diff --git a/textproc/hunspell/Makefile.common b/textproc/hunspell/Makefile.common
new file mode 100644
index 00000000000..c8642e62b01
--- /dev/null
+++ b/textproc/hunspell/Makefile.common
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile.common,v 1.1 2008/07/19 15:06:36 ahoka Exp $
+# used by textproc/hunspell-af_ZA/Makefile
+# used by textproc/hunspell-bg_BG/Makefile
+# used by textproc/hunspell-ca_ES/Makefile
+# used by textproc/hunspell-cs_CZ/Makefile
+# used by textproc/hunspell-da_DK/Makefile
+# used by textproc/hunspell-es_ES/Makefile
+# used by textproc/hunspell-es_MX/Makefile
+# used by textproc/hunspell-fo_FO/Makefile
+# used by textproc/hunspell-ga_IE/Makefile
+# used by textproc/hunspell-he_IL/Makefile
+# used by textproc/hunspell-hr_HR/Makefile
+# used by textproc/hunspell-id_ID/Makefile
+# used by textproc/hunspell-lt_LT/Makefile
+# used by textproc/hunspell-mg_MG/Makefile
+# used by textproc/hunspell-ms_MY/Makefile
+# used by textproc/hunspell-nl_NL/Makefile
+# used by textproc/hunspell-ny_MW/Makefile
+# used by textproc/hunspell-ru_RU/Makefile
+#
+# Hunspell dictionary template for fetching from OpenOffice.org
+
+PKGNAME= hunspell-${DISTNAME}-${VERSION}
+CATEGORIES= textproc
+MASTER_SITES= http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/
+HOMEPAGE= http://wiki.services.openoffice.org/wiki/Dictionaries
+
+EXTRACT_SUFX= .zip
+USE_LANGUAGES= # none
+NO_BUILD= yes
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}
+EXTRACT_OPTS_ZIP= -aqo # We don't want -L
+DIST_SUBDIR= hunspell-dictionaries/${DISTNAME}-${VERSION}
+
+PLIST_SRC= ../../textproc/hunspell/PLIST.common
+PLIST_SUBST+= DISTNAME=${DISTNAME}
+
+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
+ ${INSTALL_DATA} ${WRKSRC}/README_${DISTNAME}.txt \
+ ${DESTDIR}${PREFIX}/share/doc/hunspell-${DISTNAME}
diff --git a/textproc/hunspell/PLIST.common b/textproc/hunspell/PLIST.common
new file mode 100644
index 00000000000..4793f7aac03
--- /dev/null
+++ b/textproc/hunspell/PLIST.common
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST.common,v 1.1 2008/07/19 15:06:36 ahoka Exp $
+share/doc/hunspell-${DISTNAME}/README_${DISTNAME}.txt
+share/hunspell/${DISTNAME}.aff
+share/hunspell/${DISTNAME}.dic
+@unexec ${RMDIR} %D/share/hunspell 2>/dev/null || ${TRUE}
+@dirrm share/doc/hunspell-${DISTNAME}