Patchwork vala: Add vala package as a devtool (version 0.12.1)

login
register
mail settings
Submitter Florin Sarbu
Date April 11, 2012, 4:13 p.m.
Message ID <1334160821-11771-1-git-send-email-florin.sarbu@windriver.com>
Download mbox | patch
Permalink /patch/25615/
State New
Headers show

Comments

Martin Jansa - April 11, 2012, 11:43 a.m.
On Wed, Apr 11, 2012 at 07:13:41PM +0300, Florin Sarbu wrote:
> Added the vala package from meta-oe to support future systemd integration.

When you're adding it from meta-oe, why not in current version with
needed patch to build e.g. midori?

../meta-openembedded/meta-oe/recipes-devtools/vala/vala-0.14.2
../meta-openembedded/meta-oe/recipes-devtools/vala/vala-0.14.2/0001-git-version-gen-don-t-append-dirty-if-we-re-not-in-g.patch
../meta-openembedded/meta-oe/recipes-devtools/vala/vala_0.14.2.bb
../meta-openembedded/meta-oe/recipes-devtools/vala/vala.inc

Cheers,

> 
> Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com>
> ---
>  meta/recipes-devtools/vala/vala.inc       |   25 +++++++++++++++++++++++++
>  meta/recipes-devtools/vala/vala_0.12.1.bb |    7 +++++++
>  2 files changed, 32 insertions(+), 0 deletions(-)
>  create mode 100644 meta/recipes-devtools/vala/vala.inc
>  create mode 100644 meta/recipes-devtools/vala/vala_0.12.1.bb
> 
> diff --git a/meta/recipes-devtools/vala/vala.inc b/meta/recipes-devtools/vala/vala.inc
> new file mode 100644
> index 0000000..0815c66
> --- /dev/null
> +++ b/meta/recipes-devtools/vala/vala.inc
> @@ -0,0 +1,25 @@
> +DESCRIPTION = "Vala is a C#-like language dedicated to ease GObject programming. \
> +Vala compiles to plain C and has no runtime environment nor penalities whatsoever."
> +SECTION = "devel"
> +DEPENDS = "glib-2.0 dbus"
> +BBCLASSEXTEND = "native"
> +DEPENDS_virtclass-native = "glib-2.0-native dbus-native"
> +HOMEPAGE = "http://vala-project.org"
> +LICENSE = "LGPLv2.1"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
> +INC_PR = "r0"
> +
> +#
> +# WARNING: This source release has specifically been built for OpenEmbedded.
> +# Don't update to any upstream release without consulting the recipe maintainer.
> +#
> +
> +SRC_URI = "\
> +  http://downloads.freesmartphone.org/sources/vala-${PV}.tar.bz2;name=archive \
> +"
> +
> +inherit autotools
> +
> +EXTRA_OECONF = "--disable-vapigen"
> +
> +FILES_${PN}-doc += "${datadir}/devhelp"
> diff --git a/meta/recipes-devtools/vala/vala_0.12.1.bb b/meta/recipes-devtools/vala/vala_0.12.1.bb
> new file mode 100644
> index 0000000..1049ed6
> --- /dev/null
> +++ b/meta/recipes-devtools/vala/vala_0.12.1.bb
> @@ -0,0 +1,7 @@
> +require vala.inc
> +SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/vala/0.12/vala-${PV}.tar.bz2"
> +
> +FILES_${PN} += "${datadir}/vala-0.12/vapi"
> +
> +SRC_URI[md5sum] = "bf35262cc611de447147d01cbac33767"
> +SRC_URI[sha256sum] = "d9a2be21bb8ab88eab838e7f3a4d0aaa2a1fddf35615dca32bef6a0051f58ea8"
> -- 
> 1.7.9.1
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Florin Sarbu - April 11, 2012, 4:13 p.m.
Added the vala package from meta-oe to support future systemd integration.

Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com>
---
 meta/recipes-devtools/vala/vala.inc       |   25 +++++++++++++++++++++++++
 meta/recipes-devtools/vala/vala_0.12.1.bb |    7 +++++++
 2 files changed, 32 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-devtools/vala/vala.inc
 create mode 100644 meta/recipes-devtools/vala/vala_0.12.1.bb
Paul Eggleton - April 11, 2012, 11:43 p.m.
On Wednesday 11 April 2012 13:43:20 Martin Jansa wrote:
> On Wed, Apr 11, 2012 at 07:13:41PM +0300, Florin Sarbu wrote:
> > Added the vala package from meta-oe to support future systemd integration.
> 
> When you're adding it from meta-oe, why not in current version with
> needed patch to build e.g. midori?

IMO, we shouldn't be adding something as esoteric as Vala to OE-Core unless it 
is absolutely needed. AFAICT the only part of systemd needing vala is the GUI 
which given this dependency would be better placed elsewhere.

At the moment in the stabilisation period we're not in a position to do 
systemd integration in OE-Core, however AIUI the first step along that road as 
discussed recently at the BSP/Collab Summit will be to split out the systemd 
parts of meta-oe into a separate layer.

Cheers,
Paul

Patch

diff --git a/meta/recipes-devtools/vala/vala.inc b/meta/recipes-devtools/vala/vala.inc
new file mode 100644
index 0000000..0815c66
--- /dev/null
+++ b/meta/recipes-devtools/vala/vala.inc
@@ -0,0 +1,25 @@ 
+DESCRIPTION = "Vala is a C#-like language dedicated to ease GObject programming. \
+Vala compiles to plain C and has no runtime environment nor penalities whatsoever."
+SECTION = "devel"
+DEPENDS = "glib-2.0 dbus"
+BBCLASSEXTEND = "native"
+DEPENDS_virtclass-native = "glib-2.0-native dbus-native"
+HOMEPAGE = "http://vala-project.org"
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
+INC_PR = "r0"
+
+#
+# WARNING: This source release has specifically been built for OpenEmbedded.
+# Don't update to any upstream release without consulting the recipe maintainer.
+#
+
+SRC_URI = "\
+  http://downloads.freesmartphone.org/sources/vala-${PV}.tar.bz2;name=archive \
+"
+
+inherit autotools
+
+EXTRA_OECONF = "--disable-vapigen"
+
+FILES_${PN}-doc += "${datadir}/devhelp"
diff --git a/meta/recipes-devtools/vala/vala_0.12.1.bb b/meta/recipes-devtools/vala/vala_0.12.1.bb
new file mode 100644
index 0000000..1049ed6
--- /dev/null
+++ b/meta/recipes-devtools/vala/vala_0.12.1.bb
@@ -0,0 +1,7 @@ 
+require vala.inc
+SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/vala/0.12/vala-${PV}.tar.bz2"
+
+FILES_${PN} += "${datadir}/vala-0.12/vapi"
+
+SRC_URI[md5sum] = "bf35262cc611de447147d01cbac33767"
+SRC_URI[sha256sum] = "d9a2be21bb8ab88eab838e7f3a4d0aaa2a1fddf35615dca32bef6a0051f58ea8"