[Midnightbsd-cvs] mports: mports/textproc: add enchant.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Aug 22 04:53:30 EDT 2007
Log Message:
-----------
add enchant.
Modified Files:
--------------
mports/textproc:
Makefile (r1.68 -> r1.69)
Added Files:
-----------
mports/textproc/enchant:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/textproc/Makefile,v
retrieving revision 1.68
retrieving revision 1.69
diff -Ltextproc/Makefile -Ltextproc/Makefile -u -r1.68 -r1.69
--- textproc/Makefile
+++ textproc/Makefile
@@ -25,6 +25,7 @@
SUBDIR += docproj
SUBDIR += dsssl-docbook-modular
SUBDIR += easydiff
+ SUBDIR += enchant
SUBDIR += etoile-lucenekit
SUBDIR += etoile-ogrekit
SUBDIR += expat2
--- /dev/null
+++ textproc/enchant/pkg-descr
@@ -0,0 +1,16 @@
+On the surface, Enchant appears to be a generic spell checking library. You
+can request dictionaries from it, ask if a word is correctly spelled, get
+corrections for a misspelled word, etc...
+
+Beneath the surface, Enchant is a whole lot more - and less - than that.
+You'll see that Enchant isn't really a spell checking library at all.
+
+"What's that?" you ask. Well, Enchant doesn't try to do any of the work
+itself. It's lazy, and requires backends to do most of its dirty work. Looking
+closer, you'll see the Enchant is more-or-less a fancy wrapper around the
+dlopen() system call. Enchant steps in to provide uniformity and conformity
+on top of these libraries, and implement certain features that may be lacking
+in any individual provider library. Everything should "just work" for any and
+every definition of "just working."
+
+WWW: http://www.abisource.com/projects/enchant/
--- /dev/null
+++ textproc/enchant/pkg-plist
@@ -0,0 +1,23 @@
+bin/enchant
+bin/enchant-lsmod
+include/enchant/enchant++.h
+include/enchant/enchant-provider.h
+include/enchant/enchant.h
+%%ASPELL%%lib/enchant/libenchant_aspell.a
+%%ASPELL%%lib/enchant/libenchant_aspell.la
+%%ASPELL%%lib/enchant/libenchant_aspell.so
+lib/enchant/libenchant_ispell.a
+lib/enchant/libenchant_ispell.la
+lib/enchant/libenchant_ispell.so
+lib/enchant/libenchant_myspell.a
+lib/enchant/libenchant_myspell.la
+lib/enchant/libenchant_myspell.so
+lib/libenchant.a
+lib/libenchant.la
+lib/libenchant.so
+lib/libenchant.so.1
+libdata/pkgconfig/enchant.pc
+%%DATADIR%%/enchant.ordering
+ at dirrm %%DATADIR%%
+ at dirrm lib/enchant
+ at dirrm include/enchant
--- /dev/null
+++ textproc/enchant/Makefile
@@ -0,0 +1,72 @@
+# New ports collection makefile for: enchant
+# Date created: 03 January 2004
+# Whom: Adam Weinberger <adamw at FreeBSD.org>
+#
+# $MidnightBSD: mports/textproc/enchant/Makefile,v 1.1 2007/08/22 08:53:28 laffer1 Exp $
+# $FreeBSD: ports/textproc/enchant/Makefile,v 1.23 2006/11/30 20:37:18 mezz Exp $
+#
+
+PORTNAME= enchant
+PORTVERSION= 1.3.0
+CATEGORIES= textproc gnome
+MASTER_SITES= http://www.abisource.com/downloads/${PORTNAME}/${PORTVERSION}/
+DIST_SUBDIR= gnome2
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Dictionary/spellchecking framework
+
+USE_GMAKE= yes
+USE_AUTOTOOLS= libtool:15
+USE_LDCONFIG= yes
+USE_GNOME= gnomehack gnometarget glib20 ltverhack
+CONFIGURE_ARGS= --disable-hspell \
+ --disable-uspell
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+MAN1= enchant.1
+
+.ifndef(WITHOUT_ASPELL)
+LIB_DEPENDS+= pspell.16:${PORTSDIR}/textproc/aspell
+CONFIGURE_ARGS+=--enable-aspell \
+ --with-aspell-prefix=${LOCALBASE}
+PLIST_SUB+= ASPELL=""
+.else
+CONFIGURE_ARGS+=--disable-aspell
+PLIST_SUB+= ASPELL="@comment "
+.endif
+
+.include <bsd.port.pre.mk>
+
+# Disable, it needs hspell 0.9 or above.
+#.if exists(${LOCALBASE}/bin/hspell)
+#WITH_HSPELL= yes
+#.endif
+#
+#.if defined(WITH_HSPELL)
+#BUILD_DEPENDS+= hspell:${PORTSDIR}/hebrew/hspell
+#CONFIGURE_ARGS+=--enable-hspell
+#PLIST_SUB+= HSPELL=""
+#.else
+#CONFIGURE_ARGS+=--disable-hspell
+#PLIST_SUB+= HSPELL="@comment "
+#.endif
+
+pre-everything::
+.if !defined(WITHOUT_ASPELL) || !defined(WITH_HSPELL)
+ @${ECHO_CMD} '===> The following options are available for this port:'
+.if !defined(WITHOUT_ASPELL)
+ @${ECHO_CMD} '===>'
+ @${ECHO_CMD} '===> Define WITHOUT_ASPELL to disable aspell support'
+.endif
+#.if !defined(WITH_HSPELL)
+# @${ECHO_CMD} '===>'
+# @${ECHO_CMD} '===> Define WITH_HSPELL to enable hspell (Hebrew) support'
+#.endif
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|MKDIRPROG-mkdir|MKDIRPROG-mkdir -p|g' \
+ ${WRKSRC}/install-sh
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ textproc/enchant/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome2/enchant-1.3.0.tar.gz) = f7edafae875616b83e7a17a7e5c2d585
+SHA256 (gnome2/enchant-1.3.0.tar.gz) = e65015aa0e6ada88a001b07b092265f4cbaf377d99b4233972995cdb94e698ef
+SIZE (gnome2/enchant-1.3.0.tar.gz) = 539040
More information about the Midnightbsd-cvs
mailing list