Gentoo Archives: gentoo-commits

From: "Tiziano Müller" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/dev-zero:master commit in: app-office/qreator/files/, app-office/qreator/
Date: Sat, 28 Sep 2013 20:06:24
Message-Id: 1380398751.5b8c93837d8312b2c065c02a952c1997c24f30a1.dev-zero@gentoo
1 commit: 5b8c93837d8312b2c065c02a952c1997c24f30a1
2 Author: Tiziano Müller <tm <AT> dev-zero <DOT> ch>
3 AuthorDate: Sat Sep 28 20:05:51 2013 +0000
4 Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 28 20:05:51 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=5b8c9383
7
8 Initial commit, ebuild written by me.
9
10 ---
11 app-office/qreator/Manifest | 4 ++
12 app-office/qreator/core | Bin 0 -> 51220480 bytes
13 .../qreator/files/13.05.3-python-imaging.patch | 19 ++++++
14 app-office/qreator/qreator-13.05.3.ebuild | 72 +++++++++++++++++++++
15 4 files changed, 95 insertions(+)
16
17 diff --git a/app-office/qreator/Manifest b/app-office/qreator/Manifest
18 new file mode 100644
19 index 0000000..146d9be
20 --- /dev/null
21 +++ b/app-office/qreator/Manifest
22 @@ -0,0 +1,4 @@
23 +AUX 13.05.3-python-imaging.patch 418 SHA256 37349d1a249ca5904efb056526e76e2d4940a99e887c616d7469c354e46f63b6 SHA512 b421d5614053cd8b3162cb08d56f9c2eef4ff0c7309eca9901af8b15c47966ff4bcd60b8fa7b5293cdc463e37c27898835b2229fee1e3e7e1bc8f674c4c9f970 WHIRLPOOL 5a18f26e0149a652621c73739f90114390f7e4c70030e234529eef18c3262d9646833a41d592e0543fb3fa6e081d9ccfd931978ba693351ae6d33822fafd9f04
24 +DIST qreator-13.05.3.tar.gz 253137 SHA256 8d82d85ee570ba8d635ceadab683c725a61f2e0ad2b2baa4e6083750c0aa5daf SHA512 7ffd3acbd7003164efa4bd4cc570ec279114c58aa8ed267ed31001868eeea410942cf4e3800e47a1a466f69e0f495807fdd8d22a8cff9e436f30fa4bad5a2723 WHIRLPOOL ada1ce91c84e65e1c64e41fe7662c87b3673a8e9978f3750be0e4a1cbf953f12a5ca3cd45a6f1926316b4b47efb8597b4ae41852ee3ea4e95248323ae15e308a
25 +EBUILD qreator-13.05.3.ebuild 2067 SHA256 a8f2d5b82872af0a5ffd956e50432e364db88c53402a0427d50971ac3c2f3f97 SHA512 7496a540cf90665ae101407bf8c8da1d42d3657372fe47cf34e8e903e4a02db3d0a8560385d1a2c647340b52091deb9788c1139af5be1590b117ad8a5f7dfb9f WHIRLPOOL 602d6649c0a2c4c2dda5a4b1b408d4140c1acbe85d9c095c715f0028d5c8a43d3c24865ef829e8f599504fc0de3848da16ce5206bade44f38e85351fc6e57b18
26 +MISC core 51220480 SHA256 b2735f1a3c567089203f280d193101a747d30082546bd1ceac7619d8e7e8fc17 SHA512 30a173c8e5673bbb01494392f4f2f8a352f641de1acd2b296b82aac75dbe1355a2b566cd24f9b81ff1b56acfa5a7367404010f52565a4e5d8c4ede2e1809cf9e WHIRLPOOL 9ffb08a1bc4d93a988478a273c4915d2853669aad835a8713fdef654221a9370a65bb4830b5e49a0075ff504be96a430016f7211dcf20b98ee683bc1e90ff575
27
28 diff --git a/app-office/qreator/core b/app-office/qreator/core
29 new file mode 100644
30 index 0000000..5c2828e
31 Binary files /dev/null and b/app-office/qreator/core differ
32
33 diff --git a/app-office/qreator/files/13.05.3-python-imaging.patch b/app-office/qreator/files/13.05.3-python-imaging.patch
34 new file mode 100644
35 index 0000000..42a875a
36 --- /dev/null
37 +++ b/app-office/qreator/files/13.05.3-python-imaging.patch
38 @@ -0,0 +1,19 @@
39 +diff --git a/qreator/QRCode.py b/qreator/QRCode.py
40 +index 84c508a..7419d79 100644
41 +--- a/qreator/QRCode.py
42 ++++ b/qreator/QRCode.py
43 +@@ -20,8 +20,12 @@ try:
44 + except ImportError:
45 + print "You need to install the python-qrencode package"
46 + sys.exit(1)
47 +-import Image
48 +-import ImageOps
49 ++
50 ++try:
51 ++ from PIL import Image, ImageOps
52 ++except ImportError:
53 ++ import Image
54 ++ import ImageOps
55 + import cairo
56 + import array
57 +
58
59 diff --git a/app-office/qreator/qreator-13.05.3.ebuild b/app-office/qreator/qreator-13.05.3.ebuild
60 new file mode 100644
61 index 0000000..4b5560e
62 --- /dev/null
63 +++ b/app-office/qreator/qreator-13.05.3.ebuild
64 @@ -0,0 +1,72 @@
65 +# Copyright 1999-2013 Gentoo Foundation
66 +# Distributed under the terms of the GNU General Public License v2
67 +# $Header: $
68 +
69 +EAPI=5
70 +
71 +PYTHON_COMPAT=( python2_7 )
72 +DISTUTILS_SINGLE_IMPL=1
73 +PLOCALES="ar ast az bem bn bs ca cs da de el en_AU en_GB eo es et eu fi fo fr gl gu he hi hr hu hy id is it ja km kn lv mr ms my nb nl pl pt_BR pt ro ru sc sl sr@latin sr sv te tl tr ug uk uz zh_CN zh_HK zh_TW"
74 +
75 +inherit gnome2 l10n distutils-r1
76 +
77 +DESCRIPTION="Easily create your own QR codes."
78 +HOMEPAGE="https://launchpad.net/qreator"
79 +SRC_URI="https://launchpad.net/qreator/trunk/${PV}/+download/${P}.tar.gz"
80 +
81 +LICENSE="GPL-3"
82 +SLOT="0"
83 +KEYWORDS="~amd64"
84 +IUSE="location url vcard wifi"
85 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
86 +
87 +RDEPEND="${PYTHON_DEPS}
88 + dev-libs/gobject-introspection
89 + dev-python/pyxdg[$PYTHON_USEDEP]
90 + media-gfx/qrencode-python[$PYTHON_USEDEP]
91 + dev-python/pygobject:3[$PYTHON_USEDEP]
92 + dev-python/pycairo[$PYTHON_USEDEP]
93 + virtual/python-imaging[$PYTHON_USEDEP]
94 + sys-apps/dbus
95 + x11-libs/gdk-pixbuf[introspection]
96 + x11-libs/gtk+:3[introspection]
97 + location? ( app-misc/geoclue[hostip]
98 + media-libs/clutter[introspection]
99 + media-libs/libchamplain[introspection]
100 + media-libs/clutter-gtk[introspection] )
101 + url? ( dev-python/requests[$PYTHON_USEDEP] )
102 + vcard? ( dev-python/vobject[$PYTHON_USEDEP] )
103 + wifi? ( net-misc/networkmanager[introspection] )"
104 +DEPEND="${RDEPEND}
105 + dev-python/python-distutils-extra[$PYTHON_USEDEP]
106 + dev-libs/glib:2"
107 +
108 +PATCHES=( "${FILESDIR}/${PV}-python-imaging.patch" )
109 +
110 +python_prepare_all() {
111 + l10n_find_plocales_changes po "" ".po"
112 + rm_po() {
113 + rm po/$1.po || die
114 + }
115 + l10n_for_each_disabled_locale_do rm_po
116 +
117 + # we will never need support for the Ubuntu software center
118 + rm qreator/qrcodes/QRCodeSoftwareCenterApp* || die
119 +
120 + distutils-r1_python_prepare_all
121 +}
122 +
123 +python_configure_all() {
124 + if ! use location ; then
125 + rm qreator/qrcodes/QRCodeLocation* || die
126 + fi
127 + if ! use url ; then
128 + rm qreator/qrcodes/QRCodeURL* || die
129 + fi
130 + if ! use vcard ; then
131 + rm qreator/qrcodes/QRCodeVCard* || die
132 + fi
133 + if ! use wifi ; then
134 + rm qreator/qrcodes/QRCodeWifi* || die
135 + fi
136 +}