pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/xapian Add xapian-flint-backend and xapian-qu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5af400e39b0f
branches:  trunk
changeset: 553447:5af400e39b0f
user:      dsainty <dsainty%pkgsrc.org@localhost>
date:      Wed Jan 21 06:42:32 2009 +0000

description:
Add xapian-flint-backend and xapian-quartz-backend options, allowing
rationalisation of backends (and also allows wiring the database to the older
database format if desired).

The "suggested options" select support for both formats, which is also the
status quo.

diffstat:

 textproc/xapian/Makefile |  24 +++++++++++++++++++++++-
 textproc/xapian/PLIST    |  26 +++++++++++++-------------
 2 files changed, 36 insertions(+), 14 deletions(-)

diffs (86 lines):

diff -r 72f0e1f9e173 -r 5af400e39b0f textproc/xapian/Makefile
--- a/textproc/xapian/Makefile  Wed Jan 21 05:35:20 2009 +0000
+++ b/textproc/xapian/Makefile  Wed Jan 21 06:42:32 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/01/08 03:43:31 dsainty Exp $
+# $NetBSD: Makefile,v 1.4 2009/01/21 06:42:32 dsainty Exp $
 #
 
 DISTNAME=      xapian-core-1.0.10
@@ -14,5 +14,27 @@
 USE_LIBTOOL=   yes
 USE_LANGUAGES= c c++
 
+PKG_OPTIONS_VAR=       PKG_OPTIONS.xapian
+PKG_SUPPORTED_OPTIONS= xapian-flint-backend xapian-quartz-backend
+PKG_SUGGESTED_OPTIONS= xapian-flint-backend xapian-quartz-backend
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=           quartz
+.if !empty(PKG_OPTIONS:Mxapian-quartz-backend)
+CONFIGURE_ARGS+=       --enable-backend-quartz
+PLIST.quartz=          yes
+.else
+CONFIGURE_ARGS+=       --disable-backend-quartz
+.endif
+
+PLIST_VARS+=           flint
+.if !empty(PKG_OPTIONS:Mxapian-flint-backend)
+CONFIGURE_ARGS+=       --enable-backend-flint
+PLIST.flint=           yes
+.else
+CONFIGURE_ARGS+=       --disable-backend-flint
+.endif
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 72f0e1f9e173 -r 5af400e39b0f textproc/xapian/PLIST
--- a/textproc/xapian/PLIST     Wed Jan 21 05:35:20 2009 +0000
+++ b/textproc/xapian/PLIST     Wed Jan 21 06:42:32 2009 +0000
@@ -1,17 +1,17 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2008/07/26 23:35:05 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.2 2009/01/21 06:42:32 dsainty Exp $
 bin/copydatabase
 bin/delve
-bin/quartzcheck
-bin/quartzcompact
-bin/quartzdump
+${PLIST.quartz}bin/quartzcheck
+${PLIST.quartz}bin/quartzcompact
+${PLIST.quartz}bin/quartzdump
 bin/quest
 bin/simpleexpand
 bin/simpleindex
 bin/simplesearch
-bin/xapian-check
-bin/xapian-compact
+${PLIST.flint}bin/xapian-check
+${PLIST.flint}bin/xapian-compact
 bin/xapian-config
-bin/xapian-inspect
+${PLIST.flint}bin/xapian-inspect
 bin/xapian-progsrv
 bin/xapian-tcpsrv
 include/xapian.h
@@ -40,14 +40,14 @@
 lib/libxapian.la
 man/man1/copydatabase.1
 man/man1/delve.1
-man/man1/quartzcheck.1
-man/man1/quartzcompact.1
-man/man1/quartzdump.1
+${PLIST.quartz}man/man1/quartzcheck.1
+${PLIST.quartz}man/man1/quartzcompact.1
+${PLIST.quartz}man/man1/quartzdump.1
 man/man1/quest.1
-man/man1/xapian-check.1
-man/man1/xapian-compact.1
+${PLIST.flint}man/man1/xapian-check.1
+${PLIST.flint}man/man1/xapian-compact.1
 man/man1/xapian-config.1
-man/man1/xapian-inspect.1
+${PLIST.flint}man/man1/xapian-inspect.1
 man/man1/xapian-progsrv.1
 man/man1/xapian-tcpsrv.1
 share/aclocal/xapian.m4



Home | Main Index | Thread Index | Old Index