Browse Source

Libpano13: fix Gentoo bug 615854

undefined
Adrien Sohier 2 years ago
parent
commit
07548f17ef
3 changed files with 60 additions and 0 deletions
  1. +3
    -0
      media-libs/libpano13/Manifest
  2. +14
    -0
      media-libs/libpano13/files/inline_bug_615854.patch
  3. +43
    -0
      media-libs/libpano13/libpano13-2.9.19-r1.ebuild

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

@@ -0,0 +1,3 @@
AUX inline_bug_615854.patch 536 SHA256 866d42ae11da73036930f6dfbceda8ddf2fa02509510b02f5836c4f010057158 SHA512 9cb4c94885b07a5da13771366f09c17fd201d25987cc3de12c9bb642282fe4b456b7abba84d13b6174b84d4f1dba95016a4ece459403f90b7dad47941b28a08a WHIRLPOOL 10ac5d5939d75425c97601129c2952a30a29d59a846cf2faaa14b01ff4adbcdf368ad4ad4cfc4df760ba4dae5bf7335be644904845db05b6bd47496e651ad8ae
DIST libpano13-2.9.19.tar.gz 3527845 SHA256 037357383978341dea8f572a5d2a0876c5ab0a83dffda431bd393357e91d95a8 SHA512 f9f147426d44d8babac09cb1a1b5111f88b9c2fc079f33df80133492bcf24cbd1edd771e6bec7bed4b0256bf15c700139c0a83119d3adf296ae5c567e006d868 WHIRLPOOL d114ddcc46eb920c1d603665d4d22ed18aa8c92f03c4e02ec2db526ae1236b6aeaa8ff3e6827b4fcb0c6361dbcf290afac5f63d051105eb43427b567d6cbccab
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 @@
diff -ur a/rgbe.h b/rgbe.h
--- a/rgbe.h 2014-02-17 23:04:42.000000000 +0100
+++ b/rgbe.h 2017-12-23 11:33:44.944170647 +0100
@@ -62,8 +62,8 @@
size_t num_scanlines);
-INLINE void float2rgbe(unsigned char rgbe[4], float red, float green, float blue);
-INLINE void rgbe2float(float *red, float *green, float *blue, unsigned char rgbe[4]);
+void float2rgbe(unsigned char rgbe[4], float red, float green, float blue);
+void rgbe2float(float *red, float *green, float *blue, unsigned char rgbe[4]);
#ifdef __cplusplus
}

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

@@ -0,0 +1,43 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

inherit versionator java-pkg-opt-2 eutils

DESCRIPTION="Helmut Dersch's panorama toolbox library"
HOMEPAGE="http://panotools.sourceforge.net/"
SRC_URI="mirror://sourceforge/panotools/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0/3"
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="java static-libs"

DEPEND="media-libs/libpng:0=
media-libs/tiff:0
sys-libs/zlib
virtual/jpeg:0
java? ( >=virtual/jdk-1.3 )"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"

src_prepare() {
epatch "${FILESDIR}/inline_bug_615854.patch"
}

src_configure() {
LIBS="-lm" econf \
$(use_with java java ${JAVA_HOME}) \
$(use_enable static-libs static)
}

src_install() {
emake DESTDIR="${D}" install
dodoc README README.linux AUTHORS NEWS doc/*.txt

if ! use static-libs ; then
prune_libtool_files
fi
}

Loading…
Cancel
Save