Remove RUBY option and unbreak this port

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-06-22 21:48:49 +00:00
parent efa2aa6831
commit 15c2debbdd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504897
2 changed files with 5 additions and 15 deletions

View File

@ -15,26 +15,22 @@ COMMENT= Bindings allowing Xapian to be used from various programming languages
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_RUBY25= yes
LIB_DEPENDS= libxapian.so:databases/xapian-core12
CONFLICTS= xapian-bindings
OPTIONS_DEFINE= DOCS LUA PYTHON RUBY
OPTIONS_DEFAULT=PYTHON RUBY
OPTIONS_DEFINE= DOCS LUA PYTHON
OPTIONS_DEFAULT=PYTHON
OPTIONS_SUB= yes
# BROKEN: ruby.h: error: wrong number of arguments specified for 'deprecated' attribute
OPTIONS_EXCLUDE_powerpc64= RUBY
PORTSCOUT= limitw:1,even
USES= libtool tar:xz
CONFIGURE_ARGS= --datarootdir=${DATADIR} --docdir=${DOCSDIR} \
--without-csharp --without-java --without-perl --without-tcl
--without-csharp --without-java --without-perl --without-ruby --without-tcl
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USES= libtool tar:xz
PORTDOCS= *
@ -44,12 +40,8 @@ LUA_USES= lua
PYTHON_CONFIGURE_ENV= PYTHON_LIB=${PYTHON_SITELIBDIR}
PYTHON_CONFIGURE_WITH= python
PYTHON_USES= python:2.7
RUBY_CONFIGURE_WITH= ruby
RUBY_USE= RUBY=yes
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
# do not install rdoc
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' ${WRKSRC}/ruby/Makefile.in
.include <bsd.port.mk>

View File

@ -3,5 +3,3 @@
%%PYTHON%%%%PYTHON_SITELIBDIR%%/xapian/__init__.pyc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/xapian/__init__.pyo
%%PYTHON%%%%PYTHON_SITELIBDIR%%/xapian/_xapian.so
%%RUBY%%%%RUBY_SITELIBDIR%%/xapian.rb
%%RUBY%%%%RUBY_SITEARCHLIBDIR%%/_xapian.so