Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/nml/, games-util/nml/files/
Date: Thu, 18 Apr 2019 21:36:38
Message-Id: 1555623384.1969f40f80d6e01ece691d69403762d4a6de3963.chewi@gentoo
1 commit: 1969f40f80d6e01ece691d69403762d4a6de3963
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Thu Apr 18 20:32:35 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 18 21:36:24 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1969f40f
7
8 games-util/nml: add patch for >=dev-python/pillow-6.0.0
9
10 Patch submitted upstream: https://github.com/OpenTTD/nml/pull/29
11
12 Package-Manager: Portage-2.3.63, Repoman-2.3.12
13 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
14 Closes: https://github.com/gentoo/gentoo/pull/11734
15 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
16
17 games-util/nml/files/nml-0.4.5-pillow6.patch | 31 ++++++++++++++++++++++++++++
18 games-util/nml/nml-0.4.5-r1.ebuild | 30 +++++++++++++++++++++++++++
19 2 files changed, 61 insertions(+)
20
21 diff --git a/games-util/nml/files/nml-0.4.5-pillow6.patch b/games-util/nml/files/nml-0.4.5-pillow6.patch
22 new file mode 100644
23 index 00000000000..5b04aef0d95
24 --- /dev/null
25 +++ b/games-util/nml/files/nml-0.4.5-pillow6.patch
26 @@ -0,0 +1,31 @@
27 +From fc7517a66fa6c0424d176a8a1d44659273a04a1d Mon Sep 17 00:00:00 2001
28 +From: Conrad Kostecki <conrad@××××××××.com>
29 +Date: Thu, 18 Apr 2019 22:14:49 +0200
30 +Subject: [PATCH] Add compatibility with >=pillow-6.0.0
31 +
32 +Changed VERSION to PILLOW_VERSION,
33 +as it got removed with >=pillow-6.0.0.
34 +
35 +Signed-off-by: Conrad Kostecki <conrad@××××××××.com>
36 +---
37 + nml/version_info.py | 4 ++--
38 + 1 file changed, 2 insertions(+), 2 deletions(-)
39 +
40 +diff --git a/nml/version_info.py b/nml/version_info.py
41 +index d7faec0..32aa3b1 100644
42 +--- a/nml/version_info.py
43 ++++ b/nml/version_info.py
44 +@@ -139,11 +139,11 @@ def get_lib_versions():
45 + #PIL
46 + try:
47 + from PIL import Image
48 +- versions["PIL"] = Image.VERSION
49 ++ versions["PIL"] = Image.PILLOW_VERSION
50 + except ImportError:
51 + try:
52 + import Image
53 +- versions["PIL"] = Image.VERSION
54 ++ versions["PIL"] = Image.PILLOW_VERSION
55 + except ImportError:
56 + versions["PIL"] = "Not found!"
57 +
58
59 diff --git a/games-util/nml/nml-0.4.5-r1.ebuild b/games-util/nml/nml-0.4.5-r1.ebuild
60 new file mode 100644
61 index 00000000000..6f8e7f6ea8d
62 --- /dev/null
63 +++ b/games-util/nml/nml-0.4.5-r1.ebuild
64 @@ -0,0 +1,30 @@
65 +# Copyright 1999-2019 Gentoo Authors
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +EAPI=7
69 +PYTHON_COMPAT=( python3_{5,6,7} )
70 +inherit distutils-r1
71 +
72 +DESCRIPTION="Compiler of NML files into grf/nfo files"
73 +HOMEPAGE="https://dev.openttdcoop.org/projects/nml"
74 +SRC_URI="http://bundles.openttdcoop.org/nml/releases/${PV}/${P}.tar.gz"
75 +
76 +LICENSE="GPL-2+"
77 +SLOT="0"
78 +KEYWORDS="~amd64 ~arm ~x86"
79 +
80 +RDEPEND="dev-python/pillow[zlib,${PYTHON_USEDEP}]
81 + dev-python/ply[${PYTHON_USEDEP}]"
82 +DEPEND="${RDEPEND}
83 + dev-python/setuptools[${PYTHON_USEDEP}]"
84 +
85 +DOCS=( docs/{changelog,readme}.txt )
86 +PATCHES=(
87 + "${FILESDIR}"/${PN}-0.4.4-pillow3.patch
88 + "${FILESDIR}"/${PN}-0.4.5-pillow6.patch
89 +)
90 +
91 +src_install() {
92 + distutils-r1_src_install
93 + doman docs/nmlc.1
94 +}