pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libpeas libpeas: enable python3 support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac83bee5c00c
branches:  trunk
changeset: 457530:ac83bee5c00c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Aug 28 08:03:18 2021 +0000

description:
libpeas: enable python3 support.

Bump PKGREVISION.

diffstat:

 devel/libpeas/Makefile |  19 +++++++++++++++----
 devel/libpeas/PLIST    |   5 ++++-
 2 files changed, 19 insertions(+), 5 deletions(-)

diffs (77 lines):

diff -r 2fc4acd60069 -r ac83bee5c00c devel/libpeas/Makefile
--- a/devel/libpeas/Makefile    Sat Aug 28 07:23:02 2021 +0000
+++ b/devel/libpeas/Makefile    Sat Aug 28 08:03:18 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.49 2021/04/12 13:31:13 nia Exp $
+# $NetBSD: Makefile,v 1.50 2021/08/28 08:03:18 wiz Exp $
 
 DISTNAME=      libpeas-1.26.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel gnome
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/libpeas/${PKGVERSION_NOREV:R}/}
 EXTRACT_SUFX=  .tar.xz
@@ -11,14 +11,17 @@
 COMMENT=       GObject-based plugins engine
 LICENSE=       gnu-lgpl-v2.1
 
+DEPENDS+=      ${PYPKGPREFIX}-gobject3-[0-9]*:../../devel/py-gobject3
+
 USE_TOOLS+=    msgfmt pkg-config
 
+MESON_ARGS+=   -Dpython3=true
 # XXX: revisit at later date if something needs this
 MESON_ARGS+=   -Dpython2=false
-MESON_ARGS+=   -Dpython3=false
 MESON_ARGS+=   -Dlua51=false
 
-PYTHON_FOR_BUILD_ONLY= tool
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+PYTHON_FOR_BUILD_ONLY=         yes
 
 PKGCONFIG_OVERRIDE+=   output/meson-private/libpeas-gtk-1.0.pc
 PKGCONFIG_OVERRIDE+=   output/meson-private/libpeas-1.0.pc
@@ -27,6 +30,12 @@
 
 MAKE_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/output/libpeas:${WRKSRC}/output/libpeas-gtk:${WRKSRC}/output/tests/libpeas/introspection
 
+SUBST_CLASSES+=                python
+SUBST_STAGE.python=    pre-configure
+SUBST_FILES.python+=   meson.build
+SUBST_SED.python+=     -e "s/python3-embed/python-${PYVERSSUFFIX}-embed/"
+SUBST_MESSAGE.python=  Fix path for python configure tool.
+
 BUILDLINK_API_DEPENDS.glib2+=  glib2>=2.38.0
 .include "../../devel/glib2/buildlink3.mk"
 BUILDLINK_API_DEPENDS.gobject-introspection+=  gobject-introspection>=1.39.0
@@ -34,4 +43,6 @@
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../x11/gtk3/buildlink3.mk"
 .include "../../devel/meson/build.mk"
+.include "../../devel/py-gobject3-common/buildlink3.mk"
+.include "../../lang/python/pyversion.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2fc4acd60069 -r ac83bee5c00c devel/libpeas/PLIST
--- a/devel/libpeas/PLIST       Sat Aug 28 07:23:02 2021 +0000
+++ b/devel/libpeas/PLIST       Sat Aug 28 08:03:18 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2020/03/10 22:30:30 wiz Exp $
+@comment $NetBSD: PLIST,v 1.10 2021/08/28 08:03:18 wiz Exp $
 bin/peas-demo
 include/libpeas-1.0/libpeas-gtk/peas-gtk-autocleanups.h
 include/libpeas-1.0/libpeas-gtk/peas-gtk-configurable.h
@@ -21,11 +21,14 @@
 lib/libpeas-1.0.so
 lib/libpeas-1.0.so.0
 lib/libpeas-1.0.so.0.2600.0
+lib/libpeas-1.0/loaders/libpython3loader.so
 lib/libpeas-gtk-1.0.so
 lib/libpeas-gtk-1.0.so.0
 lib/libpeas-gtk-1.0.so.0.2600.0
 lib/peas-demo/plugins/helloworld/helloworld.plugin
 lib/peas-demo/plugins/helloworld/libhelloworld.so
+lib/peas-demo/plugins/pythonhello/pythonhello.plugin
+lib/peas-demo/plugins/pythonhello/pythonhello.py
 lib/peas-demo/plugins/secondtime/libsecondtime.so
 lib/peas-demo/plugins/secondtime/secondtime.plugin
 lib/pkgconfig/libpeas-1.0.pc



Home | Main Index | Thread Index | Old Index