diff options
Diffstat (limited to 'devel/pygobject3-common')
-rw-r--r-- | devel/pygobject3-common/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devel/pygobject3-common/Makefile b/devel/pygobject3-common/Makefile index 8fc60e4bf..a8b9ca0c2 100644 --- a/devel/pygobject3-common/Makefile +++ b/devel/pygobject3-common/Makefile @@ -23,6 +23,7 @@ SLAVE_PORT?= no USES= gmake libtool pathfix pkgconfig tar:xz GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip # this port doesn't work with py-gobject < 2.28.6_2, clungle below CONFLICTS= py*-gtk-0* py*-gobject-2.*.[0-6] py*-gobject-2.*.[7-9] \ @@ -33,7 +34,7 @@ PLIST_SUB= ARCH=${ARCH} UNAME_R=${UNAME_R} VERSION=${PORTVERSION} \ .if ${SLAVE_PORT} == no BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo -USE_PYTHON_BUILD= 2 +USES+= python:build USE_GNOME= glib20:build introspection:build NO_BUILD= yes @@ -49,20 +50,19 @@ LIB_DEPENDS+= libffi.so:${PORTSDIR}/devel/libffi RUN_DEPENDS+= pygobject3-common>=0:${PORTSDIR}/devel/pygobject3-common .if ${SLAVE_PORT} == python2 -USE_PYTHON= 2 +USES+= python:2 BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo .endif .if ${SLAVE_PORT} == python3 -USE_PYTHON= 3 +USES+= python:3 BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/py3cairo.pc:${PORTSDIR}/graphics/py3-cairo RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/py3cairo.pc:${PORTSDIR}/graphics/py3-cairo PLIST_SUB+= PYTVER=${PYTHON_VER:S/.//} .endif post-install: - @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gi/*.so @${RM} -rf ${STAGEDIR}${PREFIX}/include/pygobject-3.0 \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/pygobject-3.0.pc .endif |