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-gfx/videorbits/files/, media-gfx/videorbits/
Date: Sun, 24 Jan 2016 23:38:22
Message-Id: 1453678675.7595febb854183eb9331903d6d443db0f4e57a06.soap@gentoo
1 commit: 7595febb854183eb9331903d6d443db0f4e57a06
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 24 23:37:07 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 24 23:37:55 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7595febb
7
8 media-gfx/videorbits: Version bump to 2.205
9
10 Gentoo-Bug: 570302
11 * EAPI=6
12 * Make patch -p1 compatible
13 * Add missing sci-libs/fftw:2.1 dependency
14 * Add missing media-libs/netpbm dependency
15 * Fix -Werror=format-security errors
16 * Fix QA implicit declarations
17
18 Package-Manager: portage-2.2.27
19
20 media-gfx/videorbits/Manifest | 1 +
21 .../files/videorbits-2.201-libpng15.patch | 8 ++---
22 .../files/videorbits-2.205-fix-buildsystem.patch | 19 +++++++++++
23 ...videorbits-2.205-qa-implicit-declarations.patch | 23 ++++++++++++++
24 media-gfx/videorbits/videorbits-2.205.ebuild | 37 ++++++++++++++++++++++
25 5 files changed, 84 insertions(+), 4 deletions(-)
26
27 diff --git a/media-gfx/videorbits/Manifest b/media-gfx/videorbits/Manifest
28 index f8a756d..8a291d2 100644
29 --- a/media-gfx/videorbits/Manifest
30 +++ b/media-gfx/videorbits/Manifest
31 @@ -1 +1,2 @@
32 DIST videorbits-2.201.tgz 648187 SHA256 2d3b7dd906e2e20e2082b5106b92d279d662a8877ec780cac0913c877642d1bb SHA512 eeb233487ac33702ff58f9434ff1850aac5ede9ecfebe4b1d313f07451c1cbb911ba6adca013136639bc0d01480acd71e5cffddcbf48af5aef58d40f48d6655a WHIRLPOOL f15367d62b123162231c6de69847f286f40d6806809083ea8040cc5f7ce0499afcd0c7174e79915b9eb87e297f0ca9904e392fa840ff5ebad4685d4f754b258b
33 +DIST videorbits-2.205.tgz 672377 SHA256 cdd5e54cbc888f93f7f75729f301fa7552f6023a0dc641b2845ad09f5307c48d SHA512 faad5a7ab98167d67b7748b4b9aca1ced0e802ed85cba55ba9966d08c48045daa8fef8d387c576dcfa50ace8c4962bb0043bb83e3ba741844ede67d331e4fbf8 WHIRLPOOL b13e95b2e7cc2e56017ea8eafdc45359476f0753b551ec73ad50ee0ead38450b3eb3f987630f1d1193afaad6a157ed99e67bc029619aed8e72985b6d6eab3035
34
35 diff --git a/media-gfx/videorbits/files/videorbits-2.201-libpng15.patch b/media-gfx/videorbits/files/videorbits-2.201-libpng15.patch
36 index e384738..f87132b 100644
37 --- a/media-gfx/videorbits/files/videorbits-2.201-libpng15.patch
38 +++ b/media-gfx/videorbits/files/videorbits-2.201-libpng15.patch
39 @@ -1,5 +1,5 @@
40 ---- src/simple_png_read.c
41 -+++ src/simple_png_read.c
42 +--- videorbits-2.205/src/simple_png_read.c
43 ++++ videorbits-2.205/src/simple_png_read.c
44 @@ -92,7 +92,7 @@
45 return -1;
46 }
47 @@ -18,8 +18,8 @@
48 fprintf(stderr, "simple_png_read_header: error\n");
49 png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
50 fclose(fp);
51 ---- src/simple_png_write.c
52 -+++ src/simple_png_write.c
53 +--- videorbits-2.205/src/simple_png_write.c
54 ++++ videorbits-2.205/src/simple_png_write.c
55 @@ -18,6 +18,7 @@
56 #include <stdio.h>
57 #include <stdlib.h>
58
59 diff --git a/media-gfx/videorbits/files/videorbits-2.205-fix-buildsystem.patch b/media-gfx/videorbits/files/videorbits-2.205-fix-buildsystem.patch
60 new file mode 100644
61 index 0000000..8d23592
62 --- /dev/null
63 +++ b/media-gfx/videorbits/files/videorbits-2.205-fix-buildsystem.patch
64 @@ -0,0 +1,19 @@
65 +Fix installation paths.
66 +
67 +--- videorbits-2.205/images/Makefile.am
68 ++++ videorbits-2.205/images/Makefile.am
69 +@@ -1,4 +1,4 @@
70 +-imagesdir = $(prefix)/images
71 +-images_DATA= v04.pgm v06.pgm
72 ++images_dir = $(datadir)/videorbits/images
73 ++images__DATA= v04.pgm v06.pgm
74 +
75 +
76 +--- videorbits-2.205/lookuptables/Makefile.am
77 ++++ videorbits-2.205/lookuptables/Makefile.am
78 +@@ -1,3 +1,3 @@
79 +-lookuptablesdir = $(prefix)/lookuptables
80 +-lookuptables_DATA=powLookup22.txt powLookup47.txt Kodak_DCS260_response_function
81 ++lookuptables_dir = $(datadir)/videorbits/lookuptables
82 ++lookuptables__DATA=powLookup22.txt powLookup47.txt Kodak_DCS260_response_function
83 +
84
85 diff --git a/media-gfx/videorbits/files/videorbits-2.205-qa-implicit-declarations.patch b/media-gfx/videorbits/files/videorbits-2.205-qa-implicit-declarations.patch
86 new file mode 100644
87 index 0000000..1e46ccf
88 --- /dev/null
89 +++ b/media-gfx/videorbits/files/videorbits-2.205-qa-implicit-declarations.patch
90 @@ -0,0 +1,23 @@
91 +Fix implicit declarations caused by missing headers and
92 +failures caused by -Werror=format-security checks
93 +
94 +--- videorbits-2.205/src/pchirp2nocrop.c
95 ++++ videorbits-2.205/src/pchirp2nocrop.c
96 +@@ -1,5 +1,6 @@
97 + #include <stdlib.h>
98 + #include <math.h>
99 ++#include <string.h>
100 + #include "PNMImageOffsetable.h"
101 + #include "mat_util.h"
102 + #include "boundingbox.h"
103 +--- videorbits-2.205/src/par.c
104 ++++ videorbits-2.205/src/par.c
105 +@@ -111,7 +111,7 @@
106 +
107 + /* - - Write file-type number - - */
108 + sprintf(magic_number, "P%d\n", data_type);
109 +- fprintf(file_ptr, magic_number);
110 ++ fprintf(file_ptr, "%s", magic_number);
111 +
112 + /* - - put comments - - */ /* !!!!!! break up long comments */
113 + fprintf(file_ptr, "# %s\n", comments);
114
115 diff --git a/media-gfx/videorbits/videorbits-2.205.ebuild b/media-gfx/videorbits/videorbits-2.205.ebuild
116 new file mode 100644
117 index 0000000..3be55d7
118 --- /dev/null
119 +++ b/media-gfx/videorbits/videorbits-2.205.ebuild
120 @@ -0,0 +1,37 @@
121 +# Copyright 1999-2016 Gentoo Foundation
122 +# Distributed under the terms of the GNU General Public License v2
123 +# $Id$
124 +
125 +EAPI=6
126 +
127 +inherit autotools
128 +
129 +DESCRIPTION="a collection of programs for creating high dynamic range images"
130 +HOMEPAGE="http://comparametric.sourceforge.net/"
131 +SRC_URI="mirror://sourceforge/comparametric/${P}.tgz"
132 +
133 +LICENSE="GPL-2"
134 +SLOT="0"
135 +KEYWORDS="~amd64 ~ppc ~x86"
136 +IUSE=""
137 +
138 +RDEPEND="x11-libs/libX11
139 + sys-libs/zlib
140 + media-libs/libpng:0=
141 + virtual/jpeg:0
142 + sci-libs/fftw:2.1
143 + media-libs/netpbm"
144 +DEPEND="${RDEPEND}"
145 +
146 +PATCHES=(
147 + "${FILESDIR}/${PN}-2.201-libpng15.patch"
148 + "${FILESDIR}/${P}-qa-implicit-declarations.patch"
149 + "${FILESDIR}/${P}-fix-buildsystem.patch"
150 +)
151 +DOCS=( AUTHORS README README.MORE )
152 +
153 +src_prepare() {
154 + default
155 + mv configure.{in,ac} || die
156 + eautoreconf
157 +}