* [meta-oe][PATCH v2] imsettings: add recipe
@ 2015-01-06 5:53 Bian Naimeng
2015-01-07 10:16 ` Martin Jansa
0 siblings, 1 reply; 2+ messages in thread
From: Bian Naimeng @ 2015-01-06 5:53 UTC (permalink / raw)
To: openembedded-devel
IMSettings is a framework that delivers Input Method settings and
applies the changes so they take effect immediately without
any need to restart applications or the desktop.
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
.../imsettings/gtk-is-required-by-notify.patch | 18 ++++++++++++++
...CAL_AMFLAGS-isnot-supported-by-autoreconf.patch | 20 ++++++++++++++++
.../imsettings/imsettings_1.6.7.bb | 28 ++++++++++++++++++++++
3 files changed, 66 insertions(+)
create mode 100644 meta-oe/recipes-extended/imsettings/imsettings/gtk-is-required-by-notify.patch
create mode 100644 meta-oe/recipes-extended/imsettings/imsettings/multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch
create mode 100644 meta-oe/recipes-extended/imsettings/imsettings_1.6.7.bb
diff --git a/meta-oe/recipes-extended/imsettings/imsettings/gtk-is-required-by-notify.patch b/meta-oe/recipes-extended/imsettings/imsettings/gtk-is-required-by-notify.patch
new file mode 100644
index 0000000..d42358d
--- /dev/null
+++ b/meta-oe/recipes-extended/imsettings/imsettings/gtk-is-required-by-notify.patch
@@ -0,0 +1,18 @@
+gtk+ is required by linnotify. So make sure gtk be linked before libnotify
+
+Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
+
+diff -Nurp imsettings-1.6.7.orig/configure.ac imsettings-1.6.7/configure.ac
+--- imsettings-1.6.7.orig/configure.ac 2013-11-26 16:09:09.000000000 +0800
++++ imsettings-1.6.7/configure.ac 2014-12-30 11:27:44.370003209 +0800
+@@ -93,8 +93,8 @@ PKG_CHECK_MODULES(LIBNOTIFY, libnotify,
+ has_old_libnotify=yes
+ PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
+ AC_DEFINE(HAS_OLD_LIBNOTIFY,, [Using older libnotify])
+- IMDAEMON_CFLAGS="$GTK_CFLAGS $LIBNOTIFY_OLD_CFLAGS"
+- IMDAEMON_LIBS="$GTK_LIBS $LIBNOTIFY_OLD_LIBS"],[
++ IMDAEMON_CFLAGS="$LIBNOTIFY_OLD_CFLAGS $GTK_CFLAGS"
++ IMDAEMON_LIBS="$LIBNOTIFY_OLD_LIBS $GTK_LIBS"],[
+ has_old_libnotify=no
+ IMDAEMON_CFLAGS="$LIBNOTIFY_CFLAGS"
+ IMDAEMON_LIBS="$LIBNOTIFY_LIBS"])
diff --git a/meta-oe/recipes-extended/imsettings/imsettings/multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch b/meta-oe/recipes-extended/imsettings/imsettings/multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch
new file mode 100644
index 0000000..1327c85
--- /dev/null
+++ b/meta-oe/recipes-extended/imsettings/imsettings/multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch
@@ -0,0 +1,20 @@
+multi-line ACLOCAL_AMFLAGS isn't supported by autoreconf.
+It will cause configure error as follow.
+
+ aclocal: error: non-option arguments are not accepted: '\'.
+
+Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
+
+--- imsettings-1.6.7.orig/Makefile.am 2013-02-08 10:33:59.000000000 +0800
++++ imsettings-1.6.7/Makefile.am 2014-12-25 11:48:27.078022744 +0800
+@@ -1,9 +1,7 @@
+ NULL =
+ SUBDIRS = data imsettings imsettings-daemon backends utils po tests docs
+
+-ACLOCAL_AMFLAGS = \
+- -I m4macros \
+- $(NULL)
++ACLOCAL_AMFLAGS = -I m4macros $(NULL)
+
+ CONFIGURE_DEPENDENCIES = \
+ requires \
diff --git a/meta-oe/recipes-extended/imsettings/imsettings_1.6.7.bb b/meta-oe/recipes-extended/imsettings/imsettings_1.6.7.bb
new file mode 100644
index 0000000..056bfdb
--- /dev/null
+++ b/meta-oe/recipes-extended/imsettings/imsettings_1.6.7.bb
@@ -0,0 +1,28 @@
+SUMMARY = "Delivery framework for general Input Method configuration"
+DESCRIPTION = "IMSettings is a framework that delivers Input Method \
+settings and applies the changes so they take effect \
+immediately without any need to restart applications \
+or the desktop. \
+This package contains the core DBus services and some utilities."
+HOMEPAGE = "http://code.google.com/p/imsettings/"
+SECTION = "Applications/System"
+
+inherit autotools gtk-doc
+
+SRC_URI = "https://bitbucket.org/tagoh/imsettings/downloads/${BPN}-${PV}.tar.bz2 \
+ file://multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch \
+ file://gtk-is-required-by-notify.patch"
+
+SRC_URI[md5sum] = "81ceddbbb443c101d7993a60c5ce6223"
+SRC_URI[sha256sum] = "0d40099e93eb82bd35c29322df374297ae3286b5879b21f5056c8d4b5b7577dd"
+
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
+
+EXTRA_OECONF = "--with-xinputsh=50-xinput.sh \
+ --disable-static \
+ "
+
+DEPENDS = "gtk+ gconf libnotify dbus-glib libgxim"
+
+FILES_${PN} += "${datadir}/dbus-1/*"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-oe][PATCH v2] imsettings: add recipe
2015-01-06 5:53 [meta-oe][PATCH v2] imsettings: add recipe Bian Naimeng
@ 2015-01-07 10:16 ` Martin Jansa
0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2015-01-07 10:16 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 5423 bytes --]
On Tue, Jan 06, 2015 at 01:53:46PM +0800, Bian Naimeng wrote:
> IMSettings is a framework that delivers Input Method settings and
> applies the changes so they take effect immediately without
> any need to restart applications or the desktop.
>
> Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> ---
> .../imsettings/gtk-is-required-by-notify.patch | 18 ++++++++++++++
> ...CAL_AMFLAGS-isnot-supported-by-autoreconf.patch | 20 ++++++++++++++++
> .../imsettings/imsettings_1.6.7.bb | 28 ++++++++++++++++++++++
> 3 files changed, 66 insertions(+)
> create mode 100644 meta-oe/recipes-extended/imsettings/imsettings/gtk-is-required-by-notify.patch
> create mode 100644 meta-oe/recipes-extended/imsettings/imsettings/multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch
> create mode 100644 meta-oe/recipes-extended/imsettings/imsettings_1.6.7.bb
>
> diff --git a/meta-oe/recipes-extended/imsettings/imsettings/gtk-is-required-by-notify.patch b/meta-oe/recipes-extended/imsettings/imsettings/gtk-is-required-by-notify.patch
> new file mode 100644
> index 0000000..d42358d
> --- /dev/null
> +++ b/meta-oe/recipes-extended/imsettings/imsettings/gtk-is-required-by-notify.patch
> @@ -0,0 +1,18 @@
> +gtk+ is required by linnotify. So make sure gtk be linked before libnotify
> +
> +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> +
> +diff -Nurp imsettings-1.6.7.orig/configure.ac imsettings-1.6.7/configure.ac
> +--- imsettings-1.6.7.orig/configure.ac 2013-11-26 16:09:09.000000000 +0800
> ++++ imsettings-1.6.7/configure.ac 2014-12-30 11:27:44.370003209 +0800
> +@@ -93,8 +93,8 @@ PKG_CHECK_MODULES(LIBNOTIFY, libnotify,
> + has_old_libnotify=yes
> + PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
> + AC_DEFINE(HAS_OLD_LIBNOTIFY,, [Using older libnotify])
> +- IMDAEMON_CFLAGS="$GTK_CFLAGS $LIBNOTIFY_OLD_CFLAGS"
> +- IMDAEMON_LIBS="$GTK_LIBS $LIBNOTIFY_OLD_LIBS"],[
> ++ IMDAEMON_CFLAGS="$LIBNOTIFY_OLD_CFLAGS $GTK_CFLAGS"
> ++ IMDAEMON_LIBS="$LIBNOTIFY_OLD_LIBS $GTK_LIBS"],[
> + has_old_libnotify=no
> + IMDAEMON_CFLAGS="$LIBNOTIFY_CFLAGS"
> + IMDAEMON_LIBS="$LIBNOTIFY_LIBS"])
> diff --git a/meta-oe/recipes-extended/imsettings/imsettings/multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch b/meta-oe/recipes-extended/imsettings/imsettings/multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch
> new file mode 100644
> index 0000000..1327c85
> --- /dev/null
> +++ b/meta-oe/recipes-extended/imsettings/imsettings/multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch
> @@ -0,0 +1,20 @@
> +multi-line ACLOCAL_AMFLAGS isn't supported by autoreconf.
> +It will cause configure error as follow.
> +
> + aclocal: error: non-option arguments are not accepted: '\'.
> +
> +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> +
> +--- imsettings-1.6.7.orig/Makefile.am 2013-02-08 10:33:59.000000000 +0800
> ++++ imsettings-1.6.7/Makefile.am 2014-12-25 11:48:27.078022744 +0800
> +@@ -1,9 +1,7 @@
> + NULL =
> + SUBDIRS = data imsettings imsettings-daemon backends utils po tests docs
> +
> +-ACLOCAL_AMFLAGS = \
> +- -I m4macros \
> +- $(NULL)
> ++ACLOCAL_AMFLAGS = -I m4macros $(NULL)
> +
> + CONFIGURE_DEPENDENCIES = \
> + requires \
> diff --git a/meta-oe/recipes-extended/imsettings/imsettings_1.6.7.bb b/meta-oe/recipes-extended/imsettings/imsettings_1.6.7.bb
> new file mode 100644
> index 0000000..056bfdb
> --- /dev/null
> +++ b/meta-oe/recipes-extended/imsettings/imsettings_1.6.7.bb
> @@ -0,0 +1,28 @@
> +SUMMARY = "Delivery framework for general Input Method configuration"
> +DESCRIPTION = "IMSettings is a framework that delivers Input Method \
> +settings and applies the changes so they take effect \
> +immediately without any need to restart applications \
> +or the desktop. \
> +This package contains the core DBus services and some utilities."
> +HOMEPAGE = "http://code.google.com/p/imsettings/"
> +SECTION = "Applications/System"
> +
> +inherit autotools gtk-doc
> +
> +SRC_URI = "https://bitbucket.org/tagoh/imsettings/downloads/${BPN}-${PV}.tar.bz2 \
> + file://multi-line-ACLOCAL_AMFLAGS-isnot-supported-by-autoreconf.patch \
> + file://gtk-is-required-by-notify.patch"
> +
> +SRC_URI[md5sum] = "81ceddbbb443c101d7993a60c5ce6223"
> +SRC_URI[sha256sum] = "0d40099e93eb82bd35c29322df374297ae3286b5879b21f5056c8d4b5b7577dd"
> +
> +LICENSE = "LGPLv2+"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
> +
> +EXTRA_OECONF = "--with-xinputsh=50-xinput.sh \
> + --disable-static \
> + "
> +
> +DEPENDS = "gtk+ gconf libnotify dbus-glib libgxim"
new QA warnings:
imsettings-1.6.7: imsettings requires /bin/bash, but no providers in its RDEPENDS [file-rdeps]
imsettings-1.6.7: imsettings rdepends on xfconf, but it isn't a build dependency? [build-deps]
and there is issue with libgxim->ruby dependency discussed in separate
thread, that needs to be resolved before this is merged.
> +
> +FILES_${PN} += "${datadir}/dbus-1/*"
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-07 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-06 5:53 [meta-oe][PATCH v2] imsettings: add recipe Bian Naimeng
2015-01-07 10:16 ` Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.