From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 3/3] package/gtksharp: new package
Date: Sat, 14 Feb 2015 08:44:12 +0100 [thread overview]
Message-ID: <20150214084412.77869323@free-electrons.com> (raw)
In-Reply-To: <1423748972-17471-4-git-send-email-angelo.compagnucci@gmail.com>
Dear Angelo Compagnucci,
On Thu, 12 Feb 2015 14:49:32 +0100, Angelo Compagnucci wrote:
> diff --git a/package/gtksharp/Config.in b/package/gtksharp/Config.in
> new file mode 100644
> index 0000000..8f3af2e
> --- /dev/null
> +++ b/package/gtksharp/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_GTKSHARP
> + bool "gtk#"
> + depends on BR2_PACKAGE_MONO
Not needed, since this Config.in file is already only included if Mono
is enabled, as per your change in package/Config.in.
> + select BR2_PACKAGE_LIBGTK3
You can't just select libgtk3, you also need to inherit all its
dependencies. However, I am not sure in such situation if we really
want to "select" libgtk3 or to "depend" on it. The reason is that by
using "select", the user may not necessarily go to the libgtk3 option
to select the display backend. And by default, the display backend is
the Broadway backend, which most likely isn't what the user wants.
So for this case, I would personally lean towards using "depends on
BR2_PACKAGE_LIBGTK3", especially since it's quite obvious for the user
who wants gtk# that the gtk library should be installed.
> + select BR2_TARGET_TZ_INFO
More details about why tz information are needed would be useful. In
any case, this should be:
select BR2_TARGET_TZ_INFO if BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
because the BR2_TARGET_TZ_INFO option is not available for Musl toolchains.
> + help
> + Gtk# is a .NET language binding for the GTK+ toolkit.
> +
> + http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.99/
In the Config.in help text, we want the main web site of the project,
not the download URL. So most likely, this should instead be:
http://www.mono-project.com/docs/gui/gtksharp/
> diff --git a/package/gtksharp/gtksharp.mk b/package/gtksharp/gtksharp.mk
> new file mode 100644
> index 0000000..948db19
> --- /dev/null
> +++ b/package/gtksharp/gtksharp.mk
> @@ -0,0 +1,15 @@
> +#############################################################
> +#
> +# gtksharp
> +#
> +#############################################################
80 # signs are the convention.
> +
> +GTKSHARP_VERSION = 2.99.3
> +GTKSHARP_SITE = http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.99/
Please use the GTKSHARP_VERSION_MAJOR thing used in several other packages:
GTKSHARP_VERSION_MAJOR = 2.99
GTKSHAP_VERSION = $(GTKSHARP_VERSION_MAJOR).3
GTKSHARP_SITE = ......./gtk-sharp/$(GTKSHARP_VERSION_MAJOR)/
> +GTKSHARP_SOURCE = gtk-sharp-$(GTKSHARP_VERSION).tar.xz
> +GTKSHARP_LICENSE = LGPLv2
> +GTKSHARP_LICENSE_FILES = COPYING
> +GTKSHARP_INSTALL_STAGING = YES
> +GTKSHARP_DEPENDENCIES += mono libgtk3
Minor detail: the += sign is not needed here, you could just do '='.
Other than that looks good. Really, the only thing a bit weird about
this series is the time zone related thing.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-02-14 7:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 13:49 [Buildroot] [PATCH v4 0/3] Adding GTK# package Angelo Compagnucci
2015-02-12 13:49 ` [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation Angelo Compagnucci
2015-02-14 6:58 ` Thomas Petazzoni
2015-02-14 8:53 ` Angelo Compagnucci
2015-02-14 9:17 ` Thomas Petazzoni
2015-02-14 9:19 ` Angelo Compagnucci
2015-02-14 9:24 ` Thomas Petazzoni
2015-02-12 13:49 ` [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC Angelo Compagnucci
2015-02-14 7:36 ` Thomas Petazzoni
2015-02-14 8:09 ` Angelo Compagnucci
2015-02-15 14:13 ` Yann E. MORIN
2015-02-21 22:47 ` Thomas Petazzoni
2015-02-12 13:49 ` [Buildroot] [PATCH v4 3/3] package/gtksharp: new package Angelo Compagnucci
2015-02-14 7:44 ` Thomas Petazzoni [this message]
2015-02-14 8:28 ` Angelo Compagnucci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150214084412.77869323@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox