Fri May 20 22:07:41 2016 UTC ()
Import libdbusmenu-tools-12.10.2 as devel/libdbusmenu-tools.

A small little library that was created by pulling out some comon code out of
indicator-applet. It passes a menu structure across DBus so that a program can
create a menu simply without worrying about how it is displayed on the other
side of the bus.

This package provides development tools.


(youri)
diff -r0 -r1.1 pkgsrc/devel/libdbusmenu-tools/DESCR
diff -r0 -r1.1 pkgsrc/devel/libdbusmenu-tools/Makefile
diff -r0 -r1.1 pkgsrc/devel/libdbusmenu-tools/PLIST
diff -r0 -r1.1 pkgsrc/devel/libdbusmenu-tools/distinfo
diff -r0 -r1.1 pkgsrc/devel/libdbusmenu-tools/patches/patch-tools_dbusmenu-dumper.c
diff -r0 -r1.1 pkgsrc/devel/libdbusmenu-tools/patches/patch-tools_testapp_main.c

File Added: pkgsrc/devel/libdbusmenu-tools/DESCR
A small little library that was created by pulling out some comon code out of
indicator-applet. It passes a menu structure across DBus so that a program can
create a menu simply without worrying about how it is displayed on the other
side of the bus.

This package provides development tools.

File Added: pkgsrc/devel/libdbusmenu-tools/Makefile
# $NetBSD: Makefile,v 1.1 2016/05/20 22:07:41 youri Exp $

.include "../../meta-pkgs/libdbusmenu/Makefile.common"

PKGNAME=	${DISTNAME:S/-/-tools-/}
COMMENT=	Tools for development with libdbusemenu

DEPENDS+=	${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat

CONFIGURE_ARGS+=	--disable-gtk
CONFIGURE_ARGS+=	--enable-dumper
CONFIGURE_ARGS+=	--disable-introspection
CONFIGURE_ARGS+=	--disable-vala
CONFIGURE_ARGS+=	--enable-tests

post-configure:
	${LN} -sf ${BUILDLINK_DIR}/lib/libdbusmenu-glib.la \
		${WRKSRC}/libdbusmenu-glib/

BUILD_DIRS=	tools

REPLACE_PYTHON+=	tools/dbusmenu-bench

.include "../../devel/libdbusmenu-glib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../lang/vala/buildlink3.mk"
.include "../../textproc/json-glib/buildlink3.mk"
BUILDLINK_API_DEPENDS.libX11+=	libX11>=1.3
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/devel/libdbusmenu-tools/PLIST
@comment $NetBSD: PLIST,v 1.1 2016/05/20 22:07:41 youri Exp $
libexec/dbusmenu-bench
libexec/dbusmenu-dumper
libexec/dbusmenu-testapp
share/doc/libdbusmenu/README.dbusmenu-bench

File Added: pkgsrc/devel/libdbusmenu-tools/distinfo
$NetBSD: distinfo,v 1.1 2016/05/20 22:07:41 youri Exp $

SHA1 (libdbusmenu-12.10.2.tar.gz) = 067b77564f90633aa58494e54b99d733a21f3142
RMD160 (libdbusmenu-12.10.2.tar.gz) = bf424925750549d44d6fc2563caf37e73f21db3d
SHA512 (libdbusmenu-12.10.2.tar.gz) = cf2e50dc3adbf35d0a4ccdd62a3efd9fae2d079b8d06e6522b70f077f89ac2cf72188e380f476e38d184b69549e90b801bf1e32174fa94bbe612dd52aec94496
Size (libdbusmenu-12.10.2.tar.gz) = 735730 bytes
SHA1 (patch-tools_dbusmenu-dumper.c) = 8cd35d4a127e5a889c7e785834ed8bb5a6e4ac58
SHA1 (patch-tools_testapp_main.c) = dc479b3f4d9584ab8976fb59c5b8630d7bd9d217

File Added: pkgsrc/devel/libdbusmenu-tools/patches/patch-tools_dbusmenu-dumper.c
$NetBSD: patch-tools_dbusmenu-dumper.c,v 1.1 2016/05/20 22:07:41 youri Exp $

Remove deprecated function.

--- tools/dbusmenu-dumper.c.orig	2012-10-03 15:54:22.000000000 +0000
+++ tools/dbusmenu-dumper.c
@@ -388,7 +388,6 @@ static GOptionEntry general_options[] = 
 int
 main (int argc, char ** argv)
 {
-	g_type_init();
 	GError * error = NULL;
 	GOptionContext * context;
 

File Added: pkgsrc/devel/libdbusmenu-tools/patches/patch-tools_testapp_main.c
$NetBSD: patch-tools_testapp_main.c,v 1.1 2016/05/20 22:07:41 youri Exp $

Remove deprecated function.

--- tools/testapp/main.c.orig	2012-10-03 15:54:22.000000000 +0000
+++ tools/testapp/main.c
@@ -135,8 +135,6 @@ name_lost (GDBusConnection * connection,
 
 int main (int argc, char ** argv)
 {
-	g_type_init();
-
 	if (argc != 2) {
 		g_warning(USAGE);
 		return 1;