aboutsummaryrefslogtreecommitdiff
path: root/databases/py-xapian
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2018-01-25 13:06:23 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2018-01-25 13:06:23 +0000
commit73bd061b02f30f6060cd1c76530268777950566b (patch)
tree69dd7c69ccbfd67304e7d2d7b2e8f9dee939352f /databases/py-xapian
parent84d253c48106f61e6050427e3980b92172c9cb7e (diff)
downloadports-73bd061b02f30f6060cd1c76530268777950566b.tar.gz
ports-73bd061b02f30f6060cd1c76530268777950566b.zip
Update BUILD_DEPENDS: restrict py-sphinx to DOCS option
PR: 219249 Reported by: Gerrit Beine <mail+freebsd@gerritbeine.de>
Notes
Notes: svn path=/head/; revision=459929
Diffstat (limited to 'databases/py-xapian')
-rw-r--r--databases/py-xapian/Makefile5
-rw-r--r--databases/py-xapian/files/patch-configure24
2 files changed, 27 insertions, 2 deletions
diff --git a/databases/py-xapian/Makefile b/databases/py-xapian/Makefile
index ed4220660053..cffeeb9eaaad 100644
--- a/databases/py-xapian/Makefile
+++ b/databases/py-xapian/Makefile
@@ -17,8 +17,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_aarch64= fails to build: Fatal Python error: swig_pythreadstate set in XapianSWIG_Python_Thread_Allow ctor
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.4.8:textproc/py-sphinx@${FLAVOR} \
- xapian-core>=${PORTVERSION}:databases/xapian-core
+BUILD_DEPENDS= xapian-core>=${PORTVERSION}:databases/xapian-core
LIB_DEPENDS= libxapian.so:databases/xapian-core
CONFLICTS_INSTALL= xapian-bindings12
@@ -38,6 +37,8 @@ USE_PYTHON= flavors
PORTDOCS= *
+DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.4.8:textproc/py-sphinx@${FLAVOR}
+
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} > 3000
diff --git a/databases/py-xapian/files/patch-configure b/databases/py-xapian/files/patch-configure
new file mode 100644
index 000000000000..21ccbf11bed2
--- /dev/null
+++ b/databases/py-xapian/files/patch-configure
@@ -0,0 +1,24 @@
+--- configure.orig 2017-10-16 02:32:59 UTC
++++ configure
+@@ -17105,10 +17105,6 @@ $as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ $as_echo "no" >&6; }
+- if test yes = "$with_python" ; then
+- as_fn_error $? "Couldn't import sphinx module and call sphinx.main() for Python2 - try package python-sphinx" "$LINENO" 5
+- fi
+- PYTHON2=
+ fi
+ if test -n "$PYTHON2" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON2_INC/Python.h" >&5
+@@ -17292,10 +17288,6 @@ $as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ $as_echo "no" >&6; }
+- if test yes = "$with_python3" ; then
+- as_fn_error $? "Couldn't import sphinx module and call sphinx.main() for Python3 - try package python3-sphinx" "$LINENO" 5
+- fi
+- PYTHON3=
+ fi
+ if test -n "$PYTHON3" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON3_INC/Python.h" >&5