Browse Source

Libpano13: fix Gentoo bug 615854

Elisa 1 year ago
parent
commit
07548f17ef

+ 3 - 0
media-libs/libpano13/Manifest View File

@@ -0,0 +1,3 @@
1
+AUX inline_bug_615854.patch 536 SHA256 866d42ae11da73036930f6dfbceda8ddf2fa02509510b02f5836c4f010057158 SHA512 9cb4c94885b07a5da13771366f09c17fd201d25987cc3de12c9bb642282fe4b456b7abba84d13b6174b84d4f1dba95016a4ece459403f90b7dad47941b28a08a WHIRLPOOL 10ac5d5939d75425c97601129c2952a30a29d59a846cf2faaa14b01ff4adbcdf368ad4ad4cfc4df760ba4dae5bf7335be644904845db05b6bd47496e651ad8ae
2
+DIST libpano13-2.9.19.tar.gz 3527845 SHA256 037357383978341dea8f572a5d2a0876c5ab0a83dffda431bd393357e91d95a8 SHA512 f9f147426d44d8babac09cb1a1b5111f88b9c2fc079f33df80133492bcf24cbd1edd771e6bec7bed4b0256bf15c700139c0a83119d3adf296ae5c567e006d868 WHIRLPOOL d114ddcc46eb920c1d603665d4d22ed18aa8c92f03c4e02ec2db526ae1236b6aeaa8ff3e6827b4fcb0c6361dbcf290afac5f63d051105eb43427b567d6cbccab
3
+EBUILD libpano13-2.9.19-r1.ebuild 960 SHA256 02fafd2597d7cc4c9c485cc5b1358b2d88fa42efa4626297ce438ace5d9c2d5c SHA512 d91ba59af08d7bcc303e01d83e508dff572f9c2cde98579491b07ae3f89fbe96f2a4f9f5986cbd0e052431052e9d1040cba9612e12dd57fcb68c5bd90f76b8d8 WHIRLPOOL 8f30f7111361599f00ad16311f174b9b9a4de332a3c4875f195146999d3e83087423ec712c19881d4fc22d8cef06c3345b52cb25a8adcbb819968a2d0ba21585

+ 14 - 0
media-libs/libpano13/files/inline_bug_615854.patch View File

@@ -0,0 +1,14 @@
1
+diff -ur a/rgbe.h b/rgbe.h
2
+--- a/rgbe.h	2014-02-17 23:04:42.000000000 +0100
3
++++ b/rgbe.h	2017-12-23 11:33:44.944170647 +0100
4
+@@ -62,8 +62,8 @@
5
+             size_t num_scanlines);
6
+ 
7
+ 
8
+-INLINE void float2rgbe(unsigned char rgbe[4], float red, float green, float blue);
9
+-INLINE void rgbe2float(float *red, float *green, float *blue, unsigned char rgbe[4]);
10
++void float2rgbe(unsigned char rgbe[4], float red, float green, float blue);
11
++void rgbe2float(float *red, float *green, float *blue, unsigned char rgbe[4]);
12
+ 
13
+ #ifdef __cplusplus
14
+ }

+ 43 - 0
media-libs/libpano13/libpano13-2.9.19-r1.ebuild View File

@@ -0,0 +1,43 @@
1
+# Copyright 1999-2014 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+
4
+EAPI="5"
5
+
6
+inherit versionator java-pkg-opt-2 eutils
7
+
8
+DESCRIPTION="Helmut Dersch's panorama toolbox library"
9
+HOMEPAGE="http://panotools.sourceforge.net/"
10
+SRC_URI="mirror://sourceforge/panotools/${P}.tar.gz"
11
+
12
+LICENSE="GPL-2"
13
+SLOT="0/3"
14
+KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
15
+IUSE="java static-libs"
16
+
17
+DEPEND="media-libs/libpng:0=
18
+	media-libs/tiff:0
19
+	sys-libs/zlib
20
+	virtual/jpeg:0
21
+	java? ( >=virtual/jdk-1.3 )"
22
+RDEPEND="${DEPEND}"
23
+
24
+S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
25
+
26
+src_prepare() {
27
+	epatch "${FILESDIR}/inline_bug_615854.patch"
28
+}
29
+
30
+src_configure() {
31
+	LIBS="-lm" econf \
32
+		$(use_with java java ${JAVA_HOME}) \
33
+		$(use_enable static-libs static)
34
+}
35
+
36
+src_install() {
37
+	emake DESTDIR="${D}" install
38
+	dodoc README README.linux AUTHORS NEWS doc/*.txt
39
+
40
+	if ! use static-libs ; then
41
+		prune_libtool_files
42
+	fi
43
+}