Add patch to fix compilation with gcc4.
authorMark Loeser <halcy0n@gentoo.org>
Sat, 19 Nov 2005 05:10:01 +0000 (05:10 +0000)
committerMark Loeser <halcy0n@gentoo.org>
Sat, 19 Nov 2005 05:10:01 +0000 (05:10 +0000)
Package-Manager: portage-2.0.53_rc7

media-gfx/hugin/ChangeLog
media-gfx/hugin/Manifest
media-gfx/hugin/files/hugin-0.5_rc2-gcc4.patch [new file with mode: 0644]
media-gfx/hugin/hugin-0.5_rc2.ebuild

index f5fe30c8420807aae7da2aec686109cfb865481c..c503458d73de1995824578668662d70a528a9581 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for media-gfx/hugin
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/hugin/ChangeLog,v 1.6 2005/10/16 02:23:49 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/hugin/ChangeLog,v 1.7 2005/11/19 05:10:01 halcy0n Exp $
+
+  19 Nov 2005; Mark Loeser <halcy0n@gentoo.org>
+  +files/hugin-0.5_rc2-gcc4.patch, hugin-0.5_rc2.ebuild:
+  Add patch to fix compilation with gcc4.
 
 *hugin-0.5_rc1-r2 (16 Oct 2005)
 
index 8d71e37ad288e220846225ebf717f751847d1e93..f20dae4e809feb75aa8f88d193f6c7b421827bdc 100644 (file)
@@ -1,16 +1,17 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 1ed8119f144d77d0ce8ac4d981b4f5d8 ChangeLog 1179
+MD5 e2ea169a87e1e2719c0f669cc66d7e12 ChangeLog 1327
 MD5 549db5b9b4146eb8aff8a35d39eabf1e files/digest-hugin-0.5_rc1-r2 67
 MD5 fca5e4ab4e2444d69d18b311f6a5591f files/digest-hugin-0.5_rc2 67
+MD5 12a2513bc1428c9adcadbd78ee32ecdd files/hugin-0.5_rc2-gcc4.patch 1701
 MD5 497db1fa2082827dd88807dffec1fe22 hugin-0.5_rc1-r2.ebuild 1483
-MD5 a55ec4c60a26b13c55062ed165600b90 hugin-0.5_rc2.ebuild 1485
+MD5 38c122d86a314a131edbdf69926ffbde hugin-0.5_rc2.ebuild 1542
 MD5 958a93f482686868d880a8b448d0899d metadata.xml 324
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFDUbnHCRZPokWLroQRAqy6AJ9DeMrzVl1qKf4kLCK2CW9v8n1tUwCfe46q
-eWBIgpOu716KfXIUyzqunAc=
-=NC0I
+iD8DBQFDfrO0CRZPokWLroQRAnlBAKDWJcgInQW7kd44tFctkjZpgs5GQwCfdETd
+ffDjbDdTSxAoRv5SJ4MuM2g=
+=D19l
 -----END PGP SIGNATURE-----
diff --git a/media-gfx/hugin/files/hugin-0.5_rc2-gcc4.patch b/media-gfx/hugin/files/hugin-0.5_rc2-gcc4.patch
new file mode 100644 (file)
index 0000000..0499699
--- /dev/null
@@ -0,0 +1,34 @@
+===================================================================
+RCS file: /cvsroot/hugin/hugin/src/include/PT/RemappedPanoImage.h,v
+retrieving revision 1.8
+retrieving revision 1.9
+diff -u -r1.8 -r1.9
+--- hugin/hugin/src/include/PT/RemappedPanoImage.h     2005/05/11 18:13:12     1.8
++++ hugin/hugin/src/include/PT/RemappedPanoImage.h     2005/11/16 18:50:05     1.9
+@@ -6,7 +6,7 @@
+  *
+  *  @author Pablo d'Angelo <pablo.dangelo@web.de>
+  *
+- *  $Id: hugin-0.5_rc2-gcc4.patch,v 1.1 2005/11/19 05:10:01 halcy0n Exp $
++ *  $Id: hugin-0.5_rc2-gcc4.patch,v 1.1 2005/11/19 05:10:01 halcy0n Exp $
+  *
+  *  This is free software; you can redistribute it and/or
+  *  modify it under the terms of the GNU General Public
+@@ -436,8 +436,7 @@
+ 
+         if (imgOpts.docrop) {
+             vigra::BImage alpha(srcImgSize,255);
+-
+-            if (pano.getLens(pano.getImage(imgNr)).getProjection() == Lens::CIRCULAR_FISHEYE) {
++            if (pano.getLens(img.getLensNr()).getProjection() == Lens::CIRCULAR_FISHEYE) {
+                 FDiff2D m( (imgOpts.cropRect.left() + imgOpts.cropRect.width()/2.0) * scale,
+                            (imgOpts.cropRect.top() + imgOpts.cropRect.height()/2.0) * scale);
+ 
+@@ -494,7 +493,6 @@
+             vigra::BImage alpha(srcImgSize);
+             vigra::copyImage(vigra::make_triple(alphaImg.first, alphaImg.first + srcImgSize, alphaImg.second),
+                              vigra::destImage(alpha));
+-
+             if (pano.getLens(img.getLensNr()).getProjection() == Lens::CIRCULAR_FISHEYE) {
+                 FDiff2D m( (imgOpts.cropRect.left() + imgOpts.cropRect.width()/2.0) * scale,
+                            (imgOpts.cropRect.top() + imgOpts.cropRect.height()/2.0) * scale);
index 77ced715c8dc181a8b686ee37143df8716626460..31bb30ef759600767f0c4bf0017ae17669168c74 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/hugin/hugin-0.5_rc2.ebuild,v 1.1 2005/10/01 20:11:13 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/hugin/hugin-0.5_rc2.ebuild,v 1.2 2005/11/19 05:10:01 halcy0n Exp $
 
-inherit wxwidgets
+inherit wxwidgets eutils
 
 DESCRIPTION="GUI for the creation & processing of panoramic images"
 HOMEPAGE="http://hugin.sf.net"
@@ -26,6 +26,9 @@ S=${WORKDIR}/${MY_P}
 src_unpack() {
        unpack ${A}
 
+       cd "${S}"
+       epatch "${FILESDIR}"/${P}-gcc4.patch
+
        sed -i -e 's/autopanog\.exe/autopanog/' "${S}"/src/include/hugin/config_defaults.h
 }