Switch to USES python depends.

Obtained from:	gnome dev repo.
This commit is contained in:
Koop Mast 2014-09-20 13:39:18 +00:00
parent bff59433a0
commit 40f42c44c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368638

View file

@ -1,6 +1,6 @@
# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
# $FreeBSD$
# $MCom: ports/trunk/devel/pydbus-common/Makefile 19685 2014-05-25 13:11:28Z kwm $
# $MCom: ports/trunk/devel/pydbus-common/Makefile 19804 2014-08-13 14:55:11Z kwm $
PORTNAME= dbus
PORTVERSION= 1.1.1
@ -26,7 +26,7 @@ CONFIGURE_ARGS= --docdir=${DOCSDIR} \
INSTALL_TARGET= install-strip
.if ${SLAVE_PORT} == no
USE_PYTHON_BUILD= 2
USES+= python:2,build
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
@ -70,10 +70,10 @@ LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS+= pydbus-common>=0:${PORTSDIR}/devel/pydbus-common
USE_LDCONFIG= yes
.if ${SLAVE_PORT} == python2
USE_PYTHON= 2
USES+= python:2
.endif
.if ${SLAVE_PORT} == python3
USE_PYTHON= 3
USES+= python:3
.endif
post-install: