import of databases/xapian-bindings:

Bindings allowing Xapian to be used from various other programming languages.
Currently the port provides bindings for perl and python only, but can easily
be extended if needed.

ok ajacoutot@
This commit is contained in:
robert 2015-04-05 21:41:02 +00:00
parent 5540907686
commit 7d4f4c0a7b
8 changed files with 146 additions and 0 deletions

View File

@ -0,0 +1,35 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/04/05 21:41:02 robert Exp $
COMMENT-main= perl bindings for Xapian
COMMENT-python= python bindings for Xapian
V= 1.2.15
DISTNAME= xapian-bindings-${V}
PKGNAME-main= xapian-bindings-perl-${V}
PKGNAME-python= xapian-bindings-python-${V}
MODULES= lang/python
MULTI_PACKAGES= -main -python
CATEGORIES= databases textproc
HOMEPAGE= http://xapian.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://oligarchy.co.uk/xapian/${V}/
LIB_DEPENDS= databases/xapian-core
WANTLIB += m stdc++ uuid z xapian
AUTOCONF_VERSION= 2.68
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --without-php --without-ruby \
--without-tcl --without-csharp \
--without-java --without-lua
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (xapian-bindings-1.2.15.tar.gz) = idMMvTjc+52eD8zI5Lp9ZFL/rUWvs/HpYUo74KOjPnc=
SIZE (xapian-bindings-1.2.15.tar.gz) = 1484058

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-perl_Makefile_in,v 1.1.1.1 2015/04/05 21:41:02 robert Exp $
--- perl/Makefile.in.orig Sun Apr 5 20:52:56 2015
+++ perl/Makefile.in Sun Apr 5 20:53:06 2015
@@ -966,7 +966,7 @@ clean-local:
auto/Search/Xapian/Xapian$(PERL_SO): Xapian.la
@$(MKDIR_P) auto/Search/Xapian
- $(LIBTOOL) --config > libtoolconfig.tmp
+ $(LIBTOOL) --config | grep -v pic > libtoolconfig.tmp
. ./libtoolconfig.tmp; cp "$$objdir/Xapian$(PERL_SO)" auto/Search/Xapian
rm -f libtoolconfig.tmp

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-python_Makefile_in,v 1.1.1.1 2015/04/05 21:41:02 robert Exp $
--- python/Makefile.in.orig Sun Apr 5 20:46:30 2015
+++ python/Makefile.in Sun Apr 5 20:46:41 2015
@@ -942,7 +942,7 @@ xapian/__init__.pyo: xapian/__init__.py xapian/_xapian
xapian/_xapian$(PYTHON_SO): _xapian.la
-test -d xapian || mkdir xapian
- $(LIBTOOL) --config > libtoolconfig.tmp
+ $(LIBTOOL) --config | grep -v pic > libtoolconfig.tmp
. ./libtoolconfig.tmp; cp $$objdir/_xapian$(PYTHON_SO) xapian
rm -f libtoolconfig.tmp

View File

@ -0,0 +1,3 @@
Bindings allowing Xapian to be used from various other programming languages.
This package provides Perl bindings.

View File

@ -0,0 +1 @@
Python bindings for Xapian.

View File

@ -0,0 +1,66 @@
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2015/04/05 21:41:02 robert Exp $
libdata/perl5/site_perl/Search/
libdata/perl5/site_perl/Search/Xapian/
libdata/perl5/site_perl/Search/Xapian.pm
libdata/perl5/site_perl/Search/Xapian/AssertionError.pm
libdata/perl5/site_perl/Search/Xapian/BM25Weight.pm
libdata/perl5/site_perl/Search/Xapian/BoolWeight.pm
libdata/perl5/site_perl/Search/Xapian/Database.pm
libdata/perl5/site_perl/Search/Xapian/DatabaseCorruptError.pm
libdata/perl5/site_perl/Search/Xapian/DatabaseCreateError.pm
libdata/perl5/site_perl/Search/Xapian/DatabaseError.pm
libdata/perl5/site_perl/Search/Xapian/DatabaseLockError.pm
libdata/perl5/site_perl/Search/Xapian/DatabaseModifiedError.pm
libdata/perl5/site_perl/Search/Xapian/DatabaseOpeningError.pm
libdata/perl5/site_perl/Search/Xapian/DatabaseVersionError.pm
libdata/perl5/site_perl/Search/Xapian/DocNotFoundError.pm
libdata/perl5/site_perl/Search/Xapian/Document.pm
libdata/perl5/site_perl/Search/Xapian/ESet.pm
libdata/perl5/site_perl/Search/Xapian/ESetIterator.pm
libdata/perl5/site_perl/Search/Xapian/Enquire.pm
libdata/perl5/site_perl/Search/Xapian/Error.pm
libdata/perl5/site_perl/Search/Xapian/FeatureUnavailableError.pm
libdata/perl5/site_perl/Search/Xapian/InternalError.pm
libdata/perl5/site_perl/Search/Xapian/InvalidArgumentError.pm
libdata/perl5/site_perl/Search/Xapian/InvalidOperationError.pm
libdata/perl5/site_perl/Search/Xapian/LogicError.pm
libdata/perl5/site_perl/Search/Xapian/MSet.pm
libdata/perl5/site_perl/Search/Xapian/MSetIterator.pm
libdata/perl5/site_perl/Search/Xapian/MultiValueSorter.pm
libdata/perl5/site_perl/Search/Xapian/NetworkError.pm
libdata/perl5/site_perl/Search/Xapian/NetworkTimeoutError.pm
libdata/perl5/site_perl/Search/Xapian/PerlStopper.pm
libdata/perl5/site_perl/Search/Xapian/PositionIterator.pm
libdata/perl5/site_perl/Search/Xapian/PostingIterator.pm
libdata/perl5/site_perl/Search/Xapian/Query.pm
libdata/perl5/site_perl/Search/Xapian/QueryParser.pm
libdata/perl5/site_perl/Search/Xapian/QueryParserError.pm
libdata/perl5/site_perl/Search/Xapian/RSet.pm
libdata/perl5/site_perl/Search/Xapian/RangeError.pm
libdata/perl5/site_perl/Search/Xapian/RuntimeError.pm
libdata/perl5/site_perl/Search/Xapian/SimpleStopper.pm
libdata/perl5/site_perl/Search/Xapian/Stem.pm
libdata/perl5/site_perl/Search/Xapian/Stopper.pm
libdata/perl5/site_perl/Search/Xapian/TermGenerator.pm
libdata/perl5/site_perl/Search/Xapian/TermIterator.pm
libdata/perl5/site_perl/Search/Xapian/TradWeight.pm
libdata/perl5/site_perl/Search/Xapian/UnimplementedError.pm
libdata/perl5/site_perl/Search/Xapian/ValueIterator.pm
libdata/perl5/site_perl/Search/Xapian/Weight.pm
libdata/perl5/site_perl/Search/Xapian/WritableDatabase.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Search/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Search/Xapian/
@comment libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Search/Xapian/Xapian.a
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Search/Xapian/Xapian.so
share/doc/xapian-bindings/
share/doc/xapian-bindings/perl/
share/doc/xapian-bindings/perl/examples/
share/doc/xapian-bindings/perl/examples/full-indexer.pl
share/doc/xapian-bindings/perl/examples/full-searcher.pl
share/doc/xapian-bindings/perl/examples/simpleexpand.pl
share/doc/xapian-bindings/perl/examples/simpleindex.pl
share/doc/xapian-bindings/perl/examples/simplematchdecider.pl
share/doc/xapian-bindings/perl/examples/simplesearch.pl
share/doc/xapian-bindings/perl/index.html

View File

@ -0,0 +1,15 @@
@comment $OpenBSD: PLIST-python,v 1.1.1.1 2015/04/05 21:41:02 robert Exp $
lib/python${MODPY_VERSION}/site-packages/xapian/
lib/python${MODPY_VERSION}/site-packages/xapian/__init__.py
lib/python${MODPY_VERSION}/site-packages/xapian/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/xapian/__init__.pyo
@comment lib/python${MODPY_VERSION}/site-packages/xapian/_xapian.a
lib/python${MODPY_VERSION}/site-packages/xapian/_xapian.so
share/doc/xapian-bindings/
share/doc/xapian-bindings/python/
share/doc/xapian-bindings/python/examples/
share/doc/xapian-bindings/python/examples/simpleexpand.py
share/doc/xapian-bindings/python/examples/simpleindex.py
share/doc/xapian-bindings/python/examples/simplematchdecider.py
share/doc/xapian-bindings/python/examples/simplesearch.py
share/doc/xapian-bindings/python/index.html