svn commit: r454619 - in head: databases/ldb databases/ldb12 databases/ldb13 databases/tdb devel/talloc devel/tevent

Timur I. Bakeyev timur at FreeBSD.org
Tue Nov 21 17:00:14 UTC 2017


Author: timur
Date: Tue Nov 21 17:00:12 2017
New Revision: 454619
URL: https://svnweb.freebsd.org/changeset/ports/454619

Log:
  Make sure that you can compile all supplimentary ports without Python bindings

Modified:
  head/databases/ldb/Makefile
  head/databases/ldb12/Makefile
  head/databases/ldb13/Makefile
  head/databases/tdb/Makefile
  head/devel/talloc/Makefile
  head/devel/tevent/Makefile

Modified: head/databases/ldb/Makefile
==============================================================================
--- head/databases/ldb/Makefile	Tue Nov 21 16:56:24 2017	(r454618)
+++ head/databases/ldb/Makefile	Tue Nov 21 17:00:12 2017	(r454619)
@@ -77,7 +77,8 @@ PLIST_FILES=		include/ldb_version.h \
 			%%PKGCONFIGDIR%%/ldb.pc
 
 .if defined(NO_PYTHON)
-CONFIGURE_ARGS+=	--disable-python
+USES+=			python:2.7,build
+#CONFIGURE_ARGS+=	--disable-python
 .else
 USES+=			python:2.7
 
@@ -141,6 +142,25 @@ post-install:
 .if !defined(NO_PYTHON)
 			${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpyldb-util.so
 			${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ldb.so
+.else
+.for file in		include/pyldb.h \
+			lib/libpyldb-util.so \
+			lib/libpyldb-util.so.1 \
+			lib/ldb/libpytalloc-util.so.2
+				${RM} ${STAGEDIR}${PREFIX}/${file}
+.endfor
+.for file in		${PYTHON_SITELIBDIR}/ldb.so \
+			${PYTHON_SITELIBDIR}/_ldb_text.py \
+			${PYTHON_SITELIBDIR}/_tdb_text.py \
+			${PYTHON_SITELIBDIR}/_tevent.so \
+			${PYTHON_SITELIBDIR}/talloc.so \
+			${PYTHON_SITELIBDIR}/tdb.so \
+			${PYTHON_SITELIBDIR}/tevent.py \
+			${PKGCONFIGDIR}/pyldb-util.pc
+				${RM} ${STAGEDIR}/${file}
+.endfor
+			${RMDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
+			${RMDIR} ${STAGEDIR}${PYTHON_LIBDIR}
 .endif
 
 .include <bsd.port.post.mk>

Modified: head/databases/ldb12/Makefile
==============================================================================
--- head/databases/ldb12/Makefile	Tue Nov 21 16:56:24 2017	(r454618)
+++ head/databases/ldb12/Makefile	Tue Nov 21 17:00:12 2017	(r454619)
@@ -79,6 +79,7 @@ PLIST_FILES=		include/ldb_version.h \
 			%%PKGCONFIGDIR%%/ldb.pc
 
 .if defined(NO_PYTHON)
+USES+=			python:2.7,build
 CONFIGURE_ARGS+=	--disable-python
 .else
 USES+=			python:2.7

Modified: head/databases/ldb13/Makefile
==============================================================================
--- head/databases/ldb13/Makefile	Tue Nov 21 16:56:24 2017	(r454618)
+++ head/databases/ldb13/Makefile	Tue Nov 21 17:00:12 2017	(r454619)
@@ -79,6 +79,7 @@ PLIST_FILES=		include/ldb_version.h \
 			%%PKGCONFIGDIR%%/ldb.pc
 
 .if defined(NO_PYTHON)
+USES+=			python:2.7,build
 CONFIGURE_ARGS+=	--disable-python
 .else
 USES+=			python:2.7

Modified: head/databases/tdb/Makefile
==============================================================================
--- head/databases/tdb/Makefile	Tue Nov 21 16:56:24 2017	(r454618)
+++ head/databases/tdb/Makefile	Tue Nov 21 17:00:12 2017	(r454619)
@@ -44,6 +44,7 @@ PLIST_FILES+=		include/tdb.h \
 			%%PKGCONFIGDIR%%/tdb.pc
 
 .if defined(NO_PYTHON)
+USES+=			python:2.7,build
 CONFIGURE_ARGS+=	--disable-python
 .else
 USES+=			python:2.7

Modified: head/devel/talloc/Makefile
==============================================================================
--- head/devel/talloc/Makefile	Tue Nov 21 16:56:24 2017	(r454618)
+++ head/devel/talloc/Makefile	Tue Nov 21 17:00:12 2017	(r454619)
@@ -37,6 +37,7 @@ PLIST_FILES+=		include/talloc.h \
 			%%PKGCONFIGDIR%%/talloc.pc
 
 .if defined(NO_PYTHON)
+USES+=			python:2.7,build
 CONFIGURE_ARGS+=	--disable-python
 .else
 USES+=			python:2.7

Modified: head/devel/tevent/Makefile
==============================================================================
--- head/devel/tevent/Makefile	Tue Nov 21 16:56:24 2017	(r454618)
+++ head/devel/tevent/Makefile	Tue Nov 21 17:00:12 2017	(r454619)
@@ -43,6 +43,7 @@ PLIST_FILES+=		include/tevent.h \
 			%%PKGCONFIGDIR%%/tevent.pc
 
 .if defined(NO_PYTHON)
+USES+=			python:2.7,build
 CONFIGURE_ARGS+=	--disable-python
 .else
 USES+=			python:2.7


More information about the svn-ports-all mailing list