From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package/python-pillow: new package
Date: Fri, 23 Oct 2015 10:22:51 +0200 [thread overview]
Message-ID: <20151023102251.4766d6fc@free-electrons.com> (raw)
In-Reply-To: <1445549143-10983-1-git-send-email-angelo.compagnucci@gmail.com>
Dear Angelo Compagnucci,
On Thu, 22 Oct 2015 23:25:43 +0200, Angelo Compagnucci wrote:
> +config BR2_PACKAGE_PYTHON_PILLOW_JPEG
> + bool "JPEG support"
> + select BR2_PACKAGE_JPEG
> + help
> + This option provides JPEG functionality.
> +
> +config BR2_PACKAGE_PYTHON_PILLOW_ZLIB
> + bool "compressed PNGs support"
> + select BR2_PACKAGE_ZLIB
> + help
> + This option provides access to compressed PNGs.
> +
> +config BR2_PACKAGE_PYTHON_PILLOW_TIFF
> + bool "compressed TIFF support"
> + select BR2_PACKAGE_TIFF
> + help
> + This option provides compressed TIFF functionality.
> +
> +config BR2_PACKAGE_PYTHON_PILLOW_FREETYPE
> + bool "freetype support"
> + select BR2_PACKAGE_FREETYPE
> + help
> + This option provides type related services.
> +
> +config BR2_PACKAGE_PYTHON_PILLOW_WEBP
> + bool "WebP format support"
> + select BR2_PACKAGE_WEBP
> + help
> + This option provides the WebP format.
> +
> +config BR2_PACKAGE_PYTHON_PILLOW_JPEG2000
> + bool "JPEG 2000 support"
> + select BR2_PACKAGE_OPENJPEG
> + help
> + This option provides JPEG 2000 functionality.
If you declare options here...
> diff --git a/package/python-pillow/python-pillow.mk b/package/python-pillow/python-pillow.mk
> new file mode 100644
> index 0000000..ccf8440
> --- /dev/null
> +++ b/package/python-pillow/python-pillow.mk
> @@ -0,0 +1,18 @@
> +################################################################################
> +#
> +# python-pillow
> +#
> +################################################################################
> +
> +PYTHON_PILLOW_VERSION = 3.0.0
> +PYTHON_PILLOW_SITE = $(call github,python-pillow,Pillow,$(PYTHON_PILLOW_VERSION))
> +PYTHON_PILLOW_SETUP_TYPE = distutils
> +PYTHON_PILLOW_DEPENDENCIES = python-setuptools \
> + $(if $(BR2_PACKAGE_JPEG),jpeg) \
> + $(if $(BR2_PACKAGE_ZLIB),zlib) \
> + $(if $(BR2_PACKAGE_TIFF),tiff) \
> + $(if $(BR2_PACKAGE_FREETYPE),freetype) \
> + $(if $(BR2_PACKAGE_WEBP),webp) \
> + $(if $(BR2_PACKAGE_OPENJPEG),openjpeg)
It would be good to use them here.
However, I believe you shouldn't declare any of those options. Just
remove them from the Config.in, and use "implicit optional
dependencies": i.e python-pillow will have jpeg support if the jpeg
package is enabled.
Also, why do you need "python-setuptools" ? It is a bit strange to
declare distutils as the <pkg>_SETUP_TYPE, and then having to depend on
python-setuptools. Can you clarify ?
Finally, we now want to have hash files, even for github sourced
packages, so please add one.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-10-23 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 21:25 [Buildroot] [PATCH v2] package/python-pillow: new package Angelo Compagnucci
2015-10-23 8:22 ` Thomas Petazzoni [this message]
2015-10-23 10:37 ` Angelo Compagnucci
2015-10-28 21:20 ` Arnout Vandecappelle
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=20151023102251.4766d6fc@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