Date: Mon, 16 Jul 2012 15:03:19 GMT From: Veniamin Gvozdikov <g.veniamin@googlemail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/169912: [update] databases/xapian-bindings added support perl and lua bindings Message-ID: <201207161503.q6GF3J7n009167@red.freebsd.org> Resent-Message-ID: <201207161510.q6GFA9JX033948@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 169912 >Category: ports >Synopsis: [update] databases/xapian-bindings added support perl and lua bindings >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 16 15:10:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Veniamin Gvozdikov >Release: FreeBSD 8.2-RELEASE >Organization: >Environment: FreeBSD ololo 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Aug 18 11:19:07 MSD 2011 root@ololo:/usr/obj/usr/src/sys/OLOLO amd64 >Description: Added support perl and lua bindings. >How-To-Repeat: >Fix: diff -ruN xapian-bindings.orig/Makefile xapian-bindings/Makefile --- xapian-bindings.orig/Makefile 2012-07-16 18:34:52.801602568 +0400 +++ xapian-bindings/Makefile 2012-07-16 18:53:22.695123393 +0400 @@ -7,6 +7,7 @@ PORTNAME= xapian-bindings PORTVERSION= 1.2.12 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://oligarchy.co.uk/xapian/${PORTVERSION}/ \ LOCAL/sunpoet @@ -18,8 +19,8 @@ LIB_DEPENDS= xapian:${PORTSDIR}/databases/xapian-core -OPTIONS_DEFINE= DOCS PHP PYTHON RUBY -OPTIONS_DEFAULT=PHP PYTHON RUBY +OPTIONS_DEFINE= DOCS LUA PERL PHP PYTHON RUBY +OPTIONS_DEFAULT=LUA PERL PHP PYTHON RUBY PORTSCOUT= limitw:1,even @@ -29,6 +30,27 @@ .include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MLUA} +CONFIGURE_ARGS+=--with-lua +CONFIGURE_ENV+= LUA="${LUA_CMD}" LUA_INC="${LUA_INCDIR}" \ + LUA_SO=".so" LUA_LIB="${LUA_MODLIBDIR}" +USE_LUA?= 5.1+ +PLIST_SUB+= BINDING_LUA="" +.else +CONFIGURE_ARGS+=--without-lua +PLIST_SUB+= BINDING_LUA="@comment " +.endif + +.if ${PORT_OPTIONS:MPERL} +CONFIGURE_ARGS+=--with-perl +CONFIGURE_ENV+= PERL_LIB="${SITE_PERL}" +USE_PERL= yes +PLIST_SUB+= BINDING_PERL="" +.else +CONFIGURE_ARGS+=--without-perl +PLIST_SUB+= BINDING_PERL="@comment " +.endif + .if ${PORT_OPTIONS:MPHP} CONFIGURE_ARGS+=--with-php CONFIGURE_ENV+= PHP_CONFIG="${LOCALBASE}/bin/php-config" @@ -64,7 +86,7 @@ # do not install rdoc @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' ${WRKSRC}/ruby/Makefile.in .if empty(PORT_OPTIONS:MDOCS) - @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docdataDATA install-dist_exampledataDATA ||' ${WRKSRC}/php/Makefile.in ${WRKSRC}/python/Makefile.in + @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docdataDATA install-dist_exampledataDATA ||' ${WRKSRC}/php/Makefile.in ${WRKSRC}/python/Makefile.in ${WRKSRC}/perl/Makefile.in ${WRKSRC}/lua/Makefile.in @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docdataDATA||; 760 s|install-dist_exampledataDATA ||' ${WRKSRC}/ruby/Makefile.in .endif diff -ruN xapian-bindings.orig/pkg-plist xapian-bindings/pkg-plist --- xapian-bindings.orig/pkg-plist 2012-07-16 18:34:52.801602568 +0400 +++ xapian-bindings/pkg-plist 2012-07-16 18:50:05.289263710 +0400 @@ -1,3 +1,72 @@ +%%BINDING_LUA%%%%PORTDOCS%%%%DOCSDIR%%/lua/index.html +%%BINDING_LUA%%%%PORTDOCS%%%%DOCSDIR%%/lua/examples/simplematchdecider.lua +%%BINDING_LUA%%%%PORTDOCS%%%%DOCSDIR%%/lua/examples/simpleexpand.lua +%%BINDING_LUA%%%%PORTDOCS%%%%DOCSDIR%%/lua/examples/simplesearch.lua +%%BINDING_LUA%%%%PORTDOCS%%%%DOCSDIR%%/lua/examples/simpleindex.lua +%%BINDING_LUA%%%%PORTDOCS%%@dirrm %%DOCSDIR%%/lua/examples +%%BINDING_LUA%%%%PORTDOCS%%@dirrm %%DOCSDIR%%/lua +%%BINDING_LUA%%%%LUA_MODLIBDIR%%/xapian.so +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/AssertionError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/BM25Weight.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/BoolWeight.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/Database.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/DatabaseCorruptError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/DatabaseCreateError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/DatabaseError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/DatabaseLockError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/DatabaseModifiedError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/DatabaseOpeningError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/DatabaseVersionError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/DocNotFoundError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/Document.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/ESet.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/ESetIterator.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/Enquire.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/Error.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/FeatureUnavailableError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/InternalError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/InvalidArgumentError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/InvalidOperationError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/LogicError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/MSet.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/MSetIterator.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/MultiValueSorter.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/NetworkError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/NetworkTimeoutError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/PerlStopper.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/PositionIterator.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/PostingIterator.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/Query.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/QueryParser.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/QueryParserError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/RSet.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/RangeError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/RuntimeError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/SimpleStopper.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/Stem.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/Stopper.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/TermGenerator.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/TermIterator.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/TradWeight.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/UnimplementedError.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/ValueIterator.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/Weight.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian/WritableDatabase.pm +%%BINDING_PERL%%%%SITE_PERL%%/Search/Xapian.pm +%%BINDING_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Search/Xapian/Xapian.so +%%BINDING_PERL%%%%PORTDOCS%%%%DOCSDIR%%/perl/index.html +%%BINDING_PERL%%%%PORTDOCS%%%%DOCSDIR%%/perl/examples/simpleindex.pl +%%BINDING_PERL%%%%PORTDOCS%%%%DOCSDIR%%/perl/examples/simplematchdecider.pl +%%BINDING_PERL%%%%PORTDOCS%%%%DOCSDIR%%/perl/examples/full-searcher.pl +%%BINDING_PERL%%%%PORTDOCS%%%%DOCSDIR%%/perl/examples/simplesearch.pl +%%BINDING_PERL%%%%PORTDOCS%%%%DOCSDIR%%/perl/examples/full-indexer.pl +%%BINDING_PERL%%%%PORTDOCS%%%%DOCSDIR%%/perl/examples/simpleexpand.pl +%%BINDING_PERL%%@dirrm %%SITE_PERL%%/Search/Xapian +%%BINDING_PERL%%@dirrm %%SITE_PERL%%/Search +%%BINDING_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Search/Xapian +%%BINDING_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Search +%%BINDING_PERL%%%%PORTDOCS%%@dirrm %%DOCSDIR%%/perl/examples +%%BINDING_PERL%%%%PORTDOCS%%@dirrm %%DOCSDIR%%/perl %%BINDING_PHP%%lib/php/%%PHP_EXT_DIR%%/xapian.so %%BINDING_PHP%%%%DATADIR%%/php5/xapian.php %%BINDING_PHP%%%%PORTDOCS%%%%DOCSDIR%%/php/examples/simpleexpand.php5 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207161503.q6GF3J7n009167>