pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Copy over pkgsrc/textproc/enchant.



Module Name:	pkgsrc-wip
Committed By:	Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By:	bsiegert
Date:		Thu Oct 25 20:17:36 2018 +0200
Changeset:	f6e814d89cca92df0287613e894f0ac4789110d5

Added Files:
	enchant/DESCR
	enchant/MESSAGE
	enchant/Makefile
	enchant/PLIST
	enchant/buildlink3.mk
	enchant/distinfo
	enchant/options.mk

Log Message:
Copy over pkgsrc/textproc/enchant.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f6e814d89cca92df0287613e894f0ac4789110d5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 enchant/DESCR         | 22 ++++++++++++++++++++++
 enchant/MESSAGE       |  8 ++++++++
 enchant/Makefile      | 27 +++++++++++++++++++++++++++
 enchant/PLIST         | 13 +++++++++++++
 enchant/buildlink3.mk | 17 +++++++++++++++++
 enchant/distinfo      |  6 ++++++
 enchant/options.mk    | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 139 insertions(+)

diffs:
diff --git a/enchant/DESCR b/enchant/DESCR
new file mode 100644
index 0000000000..d44a8399b4
--- /dev/null
+++ b/enchant/DESCR
@@ -0,0 +1,22 @@
+The project aims to provide an efficient extensible abstraction
+for dealing with different spell checking libraries.
+
+Enchant is meant to provide a generic interface into various existing
+spell checking libaries. These include, but are not limited to:
+	* Aspell/Pspell (intends to replace Ispell)
+	* Ispell (old as sin, could be interpreted as a defacto standard)
+	* MySpell/Hunspell (an OOo project, also used by Mozilla)
+	* Uspell (primarily Yiddish, Hebrew, and Eastern European
+	  languages - hosted in AbiWord's CVS under the module "uspell")
+	* Hspell (Hebrew)
+	* Zemberek (Turkish)
+	* Voikko (Finnish)
+	* AppleSpell (Mac OSX)
+
+Enchant is also meant to be used in a cross-platform (XP) environment.
+Part of this means that Enchant wants to limit its number of external
+dependencies to 0, or as close is as humanly possible. Also, any
+enchant consumer (i.e. a Word Processor) should not need to know
+about what backend providers Enchant knows about. In fact, Enchant
+shouldn't even need to know this information itself. To accomplish
+this, all of Enchant's providers are DLLs.
diff --git a/enchant/MESSAGE b/enchant/MESSAGE
new file mode 100644
index 0000000000..c380340af3
--- /dev/null
+++ b/enchant/MESSAGE
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.2 2008/10/14 09:19:40 wiz Exp $
+
+For whichever spell-checkers you've installed (perhaps indirectly
+by selecting options to this package), you need to install one
+or more language-specific dictionaries.
+
+===========================================================================
diff --git a/enchant/Makefile b/enchant/Makefile
new file mode 100644
index 0000000000..67f5b28de9
--- /dev/null
+++ b/enchant/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.38 2018/10/24 15:42:47 bsiegert Exp $
+#
+
+DISTNAME=		enchant-1.6.0
+PKGREVISION=		6
+CATEGORIES=		textproc
+MASTER_SITES=		http://www.abisource.com/downloads/enchant/1.6.0/
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		http://www.abisource.com/projects/enchant/
+COMMENT=		Generic spell checking library
+LICENSE=		gnu-lgpl-v2.1
+
+USE_TOOLS+=		pkg-config autoconf
+USE_LANGUAGES=		c c++
+USE_PKGLOCALEDIR=	yes
+USE_LIBTOOL=		yes
+PKGCONFIG_OVERRIDE+=	enchant.pc.in
+GNU_CONFIGURE=		yes
+CFLAGS.SunOS+=		-D__EXTENSIONS__
+
+CONFIGURE_ARGS+=	--with-myspell-dir=${BUILDLINK_PREFIX.hunspell}/share/hunspell
+
+.include "options.mk"
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/enchant/PLIST b/enchant/PLIST
new file mode 100644
index 0000000000..4a55415f1b
--- /dev/null
+++ b/enchant/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.6 2009/06/14 18:17:15 joerg Exp $
+bin/enchant
+bin/enchant-lsmod
+include/enchant/enchant++.h
+include/enchant/enchant-provider.h
+include/enchant/enchant.h
+${PLIST.aspell}lib/enchant/libenchant_aspell.la
+${PLIST.ispell}lib/enchant/libenchant_ispell.la
+${PLIST.hunspell}lib/enchant/libenchant_myspell.la
+lib/libenchant.la
+lib/pkgconfig/enchant.pc
+man/man1/enchant.1
+share/enchant/enchant.ordering
diff --git a/enchant/buildlink3.mk b/enchant/buildlink3.mk
new file mode 100644
index 0000000000..75cbbc7399
--- /dev/null
+++ b/enchant/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.16 2012/09/15 10:06:36 obache Exp $
+
+BUILDLINK_TREE+=	enchant
+
+.if !defined(ENCHANT_BUILDLINK3_MK)
+ENCHANT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.enchant+=	enchant>=1.1.3
+BUILDLINK_ABI_DEPENDS.enchant+=	enchant>=1.6.0nb5
+BUILDLINK_PKGSRCDIR.enchant?=	../../textproc/enchant
+
+# spelling libraries are loaded dynamically and do not need
+# to be included here
+.include "../../devel/glib2/buildlink3.mk"
+.endif # ENCHANT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-enchant
diff --git a/enchant/distinfo b/enchant/distinfo
new file mode 100644
index 0000000000..3a19d7ae97
--- /dev/null
+++ b/enchant/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.16 2015/11/04 01:59:28 agc Exp $
+
+SHA1 (enchant-1.6.0.tar.gz) = 321f9cf0abfa1937401676ce60976d8779c39536
+RMD160 (enchant-1.6.0.tar.gz) = a992034355bb36b9acabdbd400c9f4a3b996cce6
+SHA512 (enchant-1.6.0.tar.gz) = 0ca1634bb783df51512df4abecc89abdadee6baf7330d6e5f90cc15d10779896a3521a1c079ecc07e4df4f7a018ce398cca9d0125a7845a314a059840ebc9137
+Size (enchant-1.6.0.tar.gz) = 607018 bytes
diff --git a/enchant/options.mk b/enchant/options.mk
new file mode 100644
index 0000000000..7bedcb3a0b
--- /dev/null
+++ b/enchant/options.mk
@@ -0,0 +1,46 @@
+# $NetBSD: options.mk,v 1.5 2009/10/12 19:56:04 ahoka Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.enchant
+PKG_SUPPORTED_OPTIONS=	aspell enchant-zemberek hunspell ispell
+# Package also supports the following:
+# hspell - Hebrew spelling
+# uspell - Yiddish spelling
+# voikko - Finnish spelling
+PKG_SUGGESTED_OPTIONS=	hunspell
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=            aspell
+.if !empty(PKG_OPTIONS:Maspell)
+CONFIGURE_ARGS+=	--enable-aspell
+.include "../../textproc/aspell/buildlink3.mk"
+PLIST.aspell=		yes
+.else
+CONFIGURE_ARGS+=	--disable-aspell
+.endif
+
+.if !empty(PKG_OPTIONS:Menchant-zemberek)
+CONFIGURE_ARGS+=	--enable-zemberek
+.include "../../sysutils/dbus-glib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-zemberek
+.endif
+
+PLIST_VARS+=            hunspell
+.if !empty(PKG_OPTIONS:Mhunspell)
+CONFIGURE_ARGS+=	--enable-myspell
+.include "../../textproc/hunspell/buildlink3.mk"
+DEPENDS+=		hunspell-en_US-[0-9]*:../../textproc/hunspell-en_US
+PLIST.hunspell=		yes
+.else
+CONFIGURE_ARGS+=	--disable-myspell
+.endif
+
+PLIST_VARS+=            ispell
+.if !empty(PKG_OPTIONS:Mispell)
+CONFIGURE_ARGS+=	--enable-ispell
+PLIST.ispell=		yes
+DEPENDS+=		ispell-base>=3.3.02:../../textproc/ispell-base
+.else
+CONFIGURE_ARGS+=	--disable-ispell
+.endif


Home | Main Index | Thread Index | Old Index