commit:     4e716ed8da37c97742a65cc17d8446640f37b4dc
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 12:06:34 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 12:26:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e716ed8

media-gfx/autopano-sift-C: Switch to cmake.eclass, fix build

Thanks-to: Mr.Chauv <mr.chauv <AT> mailbox.org>
Closes: https://bugs.gentoo.org/759514
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../autopano-sift-C/autopano-sift-C-2.5.1.ebuild   | 11 ++++++----
 .../autopano-sift-C-2.5.1-include-order.patch      | 24 ++++++++++++++++++++++
 2 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/media-gfx/autopano-sift-C/autopano-sift-C-2.5.1.ebuild 
b/media-gfx/autopano-sift-C/autopano-sift-C-2.5.1.ebuild
index b9fffc443b2..aa638775851 100644
--- a/media-gfx/autopano-sift-C/autopano-sift-C-2.5.1.ebuild
+++ b/media-gfx/autopano-sift-C/autopano-sift-C-2.5.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit cmake-utils
+inherit cmake
 
 DESCRIPTION="SIFT algorithm for automatic panorama creation in C"
 HOMEPAGE="http://hugin.sourceforge.net/ 
http://user.cs.tu-berlin.de/~nowozin/autopano-sift/";
@@ -25,4 +25,7 @@ RDEPEND="${DEPEND}
        !media-gfx/autopano-sift
 "
 
-PATCHES=( "${FILESDIR}"/${P}-lm.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-lm.patch
+       "${FILESDIR}"/${P}-include-order.patch # bug 759514
+)

diff --git 
a/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-include-order.patch 
b/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-include-order.patch
new file mode 100644
index 00000000000..becab6d4aeb
--- /dev/null
+++ b/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-include-order.patch
@@ -0,0 +1,24 @@
+Subject: [PATCH] adjust to include order deoendency
+
+---
+ autopano-sift-C-2.5.1/KeypointXML.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/autopano-sift-C-2.5.1/KeypointXML.c 
b/autopano-sift-C-2.5.1/KeypointXML.c
+index 9da70a8..30c35e1 100644
+--- a/KeypointXML.c
++++ b/KeypointXML.c
+@@ -13,10 +13,9 @@
+  * (C) Copyright 2004 -- Sebastian Nowozin ([email protected])
+  */
+ 
+-#include "AutoPanoSift.h"
+-
+ #include <libxml/xmlreader.h>
+ #include <libxml/xmlwriter.h>
++#include "AutoPanoSift.h"
+ 
+ KeypointXMLList* KeypointXMLReader_ReadComplete (char* filename)
+ {
+-- 
+2.26.2

Reply via email to