Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/jasper/, media-libs/jasper/files/
Date: Fri, 14 Oct 2016 21:30:46
Message-Id: 1476480553.ece2cf67ac87c152c955189229cd3a2b2206e0a9.soap@gentoo
1 commit: ece2cf67ac87c152c955189229cd3a2b2206e0a9
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 14 20:46:01 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 14 21:29:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ece2cf67
7
8 media-libs/jasper: Version bump to 1.900.3
9
10 Gentoo-bug: 513240
11 * EAPI=6
12 * Import latest Fedora patchset
13
14 Package-Manager: portage-2.3.2
15
16 media-libs/jasper/Manifest | 2 +
17 .../jasper-1.900.3-remove-stdbool-checks.patch | 47 ++++++++++++++++++
18 media-libs/jasper/jasper-1.900.3.ebuild | 58 ++++++++++++++++++++++
19 3 files changed, 107 insertions(+)
20
21 diff --git a/media-libs/jasper/Manifest b/media-libs/jasper/Manifest
22 index a9004f7..91508c5 100644
23 --- a/media-libs/jasper/Manifest
24 +++ b/media-libs/jasper/Manifest
25 @@ -1,2 +1,4 @@
26 DIST jasper-1.900.1-fixes-20120611.patch.bz2 26303 SHA256 8727c94843f141c311be54eed97eca18f96542f52b991df6f7d4f005bad2ec59 SHA512 36ec1735a89008fa6be16698f78ca5ec52d4ef34f10653ba3bf081c665c4e2d747cdbd7bfc0d56859ad4dc0fac166cf08248336d25d3ba8e7feb57e65d5c5ef6 WHIRLPOOL 341639dc208c44eefb18d14b16bc74591989e4ec0bf6426bee1ed161f1c997a23dad487ac821f2bf8e1ae16ae74d6174dce39a913b44b4e24628a7a1510395a7
27 DIST jasper-1.900.1.zip 1415752 SHA256 6b905a9c2aca2e275544212666eefc4eb44d95d0a57e4305457b407fe63f9494 SHA512 e3a3c803de848b50482f5bd693b1945197c6999285226c45b671855734d7bb2611fbe6f28cd8ba9c56a4ea59417795eba42d72516c9fec93b8fbaa21b8210cb6 WHIRLPOOL cd53901537bb8d32706e82326bf01f7f960af5172e2da738d1fcc9c5a4087829210a177d3df96617cf289e5db8ec97e06aa6cd60ada3b887db65418b90e9a86b
28 +DIST jasper-1.900.3.tar.gz 786626 SHA256 9ca78f4ae646cc1a8e0116fc440caa87beef87f4dc45de31a25b4cfab4e7a9da SHA512 de872ab53dde6dfd2dd99d04f776815a61f564cf656c33c9ebe068fd6043b2d5ab65f3efcb3e3a432269f68454fcdde3b947a700bbb93dbdfa343398adb17c36 WHIRLPOOL d0b825a9768d3de4483fe5e47643f219fafe8de7b37930ca1af868a3b3e42f66ae6a147c0cebd171d298b2c6f43f65232e7a561f4f17cda58a9860dc6d8d6671
29 +DIST jasper-1.900.3_p20161014-patches.tar.bz2 8918 SHA256 5e3cd08283c57c6f1988c08a56a1be9ad851fde502bac36852c7ba933808407f SHA512 0d1fb92ada3db806dde65f354ea82de26673a52dabbdd8483a9c38ec7ce6fef4f7fa3aafd4e7df1b6e9ffd760ae54eef5612623585e557955c04b553c20a57a3 WHIRLPOOL 7a3991041b6e2c8f82501b5e3ae139611f22df6e5d7bfd883ab0f55ac9f987666503df17fcc4a58ad1a536bc708d80a54f35fbd19526c88393b857187d91ef17
30
31 diff --git a/media-libs/jasper/files/jasper-1.900.3-remove-stdbool-checks.patch b/media-libs/jasper/files/jasper-1.900.3-remove-stdbool-checks.patch
32 new file mode 100644
33 index 00000000..08764ec
34 --- /dev/null
35 +++ b/media-libs/jasper/files/jasper-1.900.3-remove-stdbool-checks.patch
36 @@ -0,0 +1,47 @@
37 +Remove undefining of true/false macros, this is not 1998.
38 +See also: https://bugs.gentoo.org/show_bug.cgi?id=513240
39 +
40 +--- a/src/libjasper/include/jasper/jas_types.h
41 ++++ b/src/libjasper/include/jasper/jas_types.h
42 +@@ -93,8 +93,6 @@
43 + #endif
44 +
45 + #if defined(HAVE_STDLIB_H)
46 +-#undef false
47 +-#undef true
48 + #include <stdlib.h>
49 + #endif
50 + #if defined(HAVE_STDDEF_H)
51 +@@ -104,32 +102,11 @@
52 + #include <sys/types.h>
53 + #endif
54 +
55 +-#ifndef __cplusplus
56 +-#if defined(HAVE_STDBOOL_H)
57 + /*
58 + * The C language implementation does correctly provide the standard header
59 + * file "stdbool.h".
60 + */
61 + #include <stdbool.h>
62 +-#else
63 +-
64 +-/*
65 +- * The C language implementation does not provide the standard header file
66 +- * "stdbool.h" as required by ISO/IEC 9899:1999. Try to compensate for this
67 +- * braindamage below.
68 +- */
69 +-#if !defined(bool)
70 +-#define bool int
71 +-#endif
72 +-#if !defined(true)
73 +-#define true 1
74 +-#endif
75 +-#if !defined(false)
76 +-#define false 0
77 +-#endif
78 +-#endif
79 +-
80 +-#endif
81 +
82 + #if defined(HAVE_STDINT_H)
83 + /*
84
85 diff --git a/media-libs/jasper/jasper-1.900.3.ebuild b/media-libs/jasper/jasper-1.900.3.ebuild
86 new file mode 100644
87 index 00000000..db4a6f3
88 --- /dev/null
89 +++ b/media-libs/jasper/jasper-1.900.3.ebuild
90 @@ -0,0 +1,58 @@
91 +# Copyright 1999-2016 Gentoo Foundation
92 +# Distributed under the terms of the GNU General Public License v2
93 +# $Id$
94 +
95 +EAPI=6
96 +
97 +inherit autotools multilib-minimal
98 +
99 +DESCRIPTION="Implementation of the codec specified in the JPEG-2000 Part-1 standard"
100 +HOMEPAGE="http://www.ece.uvic.ca/~mdadams/jasper/"
101 +SRC_URI="
102 + https://github.com/mdadams/${PN}/archive/version-${PV}.tar.gz -> ${P}.tar.gz
103 + https://dev.gentoo.org/~soap/distfiles/${PN}-1.900.3_p20161014-patches.tar.bz2"
104 +
105 +LICENSE="JasPer2.0"
106 +SLOT="0/1"
107 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
108 +IUSE="jpeg opengl static-libs"
109 +
110 +RDEPEND="
111 + jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
112 + opengl? (
113 + >=virtual/opengl-7.0-r1:0[${MULTILIB_USEDEP}]
114 + >=media-libs/freeglut-2.8.1:0[${MULTILIB_USEDEP}]
115 + virtual/glu
116 + )"
117 +DEPEND="${RDEPEND}
118 + app-arch/unzip"
119 +
120 +S="${WORKDIR}/${PN}-version-${PV}"
121 +PATCHES=(
122 + "${WORKDIR}/${PN}-1.900.3-libjasper-stepsizes-overflow.patch"
123 + "${WORKDIR}/${PN}-1.900.3-CVE-2008-3520.patch"
124 + "${WORKDIR}/${PN}-1.900.3-CVE-2011-4516-CVE-2011-4517-CERT-VU-887409.patch"
125 + "${WORKDIR}/${PN}-1.900.3-Coverity-NULL_RETURNS.patch"
126 + "${WORKDIR}/${PN}-1.900.3-Coverity-RESOURCE_LEAK.patch"
127 + "${FILESDIR}/${PN}-1.900.3-remove-stdbool-checks.patch"
128 +)
129 +
130 +src_prepare() {
131 + default
132 + eautoreconf
133 +}
134 +
135 +multilib_src_configure() {
136 + ECONF_SOURCE="${S}" econf \
137 + $(use_enable jpeg libjpeg) \
138 + $(use_enable opengl) \
139 + $(use_enable static-libs static)
140 +}
141 +
142 +multilib_src_install_all() {
143 + einstalldocs
144 + dodoc -r doc/.
145 +
146 + # package provides .pc files
147 + find "${D}" -name '*.la' -delete || die
148 +}