summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-08-07 12:51:44 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-08-07 12:51:44 +0000
commit73702228ee0bb5c919ee31db7224759e47d1ef0a (patch)
tree5022d205e520183b1eb78ae87daf2f314303adde /media-video/cinepaint
parentStable on ppc. (diff)
downloadgentoo-2-73702228ee0bb5c919ee31db7224759e47d1ef0a.tar.gz
gentoo-2-73702228ee0bb5c919ee31db7224759e47d1ef0a.tar.bz2
gentoo-2-73702228ee0bb5c919ee31db7224759e47d1ef0a.zip
Don't apply a patch to use /usr/include/lcms path, just append a -I flag if the file is there (nothing needed for newer version of media-libs/lcms that don't install in /lcms path).
(Portage version: 2.0.51.22)
Diffstat (limited to 'media-video/cinepaint')
-rw-r--r--media-video/cinepaint/ChangeLog8
-rw-r--r--media-video/cinepaint/cinepaint-0.19.0.ebuild15
-rw-r--r--media-video/cinepaint/files/cinepaint-lcms.patch92
3 files changed, 11 insertions, 104 deletions
diff --git a/media-video/cinepaint/ChangeLog b/media-video/cinepaint/ChangeLog
index b1c97ae6087e..b6ea3f7095fa 100644
--- a/media-video/cinepaint/ChangeLog
+++ b/media-video/cinepaint/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/cinepaint
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/cinepaint/ChangeLog,v 1.7 2005/04/19 09:03:42 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/cinepaint/ChangeLog,v 1.8 2005/08/07 12:51:44 flameeyes Exp $
+
+ 07 Aug 2005; Diego Pettenò <flameeyes@gentoo.org>
+ -files/cinepaint-lcms.patch, cinepaint-0.19.0.ebuild:
+ Don't apply a patch to use /usr/include/lcms path, just append a -I flag if
+ the file is there (nothing needed for newer version of media-libs/lcms that
+ don't install in /lcms path).
19 Apr 2005; Bryan Østergaard <kloeri@gentoo.org> metadata.xml:
Remove retired developer from metadata.xml.
diff --git a/media-video/cinepaint/cinepaint-0.19.0.ebuild b/media-video/cinepaint/cinepaint-0.19.0.ebuild
index c0ebff45150d..b49e4b673db4 100644
--- a/media-video/cinepaint/cinepaint-0.19.0.ebuild
+++ b/media-video/cinepaint/cinepaint-0.19.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/cinepaint/cinepaint-0.19.0.ebuild,v 1.1 2005/03/18 20:06:07 chriswhite Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/cinepaint/cinepaint-0.19.0.ebuild,v 1.2 2005/08/07 12:51:44 flameeyes Exp $
inherit eutils versionator
@@ -21,17 +21,10 @@ DEPEND="=x11-libs/gtk+-1*
media-libs/tiff
media-libs/jpeg"
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- # lcms is <lcms/lcms.h> not <lcms.h>
- # fix that in configure detection
- # and in source
- epatch ${FILESDIR}/${PN}-lcms.patch
-}
-
src_compile(){
+ [[ -f /usr/include/lcms/lcms.h ]] && \
+ append-flags -I/usr/include/lcms
+
econf --with-openexr-prefix=/usr || die "econf failed"
emake || die "emake failed"
}
diff --git a/media-video/cinepaint/files/cinepaint-lcms.patch b/media-video/cinepaint/files/cinepaint-lcms.patch
deleted file mode 100644
index bb3ee314b755..000000000000
--- a/media-video/cinepaint/files/cinepaint-lcms.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-diff -ur cinepaint-0.19-0_old/app/cms.h cinepaint-0.19-0/app/cms.h
---- cinepaint-0.19-0_old/app/cms.h 2004-11-23 20:58:15.000000000 +0900
-+++ cinepaint-0.19-0/app/cms.h 2005-03-19 03:48:07.864524744 +0900
-@@ -20,7 +20,7 @@
- #ifndef __CMS_H__
- #define __CMS_H__
-
--#include <lcms.h>
-+#include <lcms/lcms.h>
- #include <gtk/gtk.h>
-
- #include "canvas.h"
-diff -ur cinepaint-0.19-0_old/app/depth/commands.c cinepaint-0.19-0/app/depth/commands.c
---- cinepaint-0.19-0_old/app/depth/commands.c 2004-12-04 05:25:34.000000000 +0900
-+++ cinepaint-0.19-0/app/depth/commands.c 2005-03-19 03:48:40.364583984 +0900
-@@ -16,7 +16,7 @@
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
--#include <lcms.h>
-+#include <lcms/lcms.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-diff -ur cinepaint-0.19-0_old/app/look_profile.c cinepaint-0.19-0/app/look_profile.c
---- cinepaint-0.19-0_old/app/look_profile.c 2004-11-23 20:58:14.000000000 +0900
-+++ cinepaint-0.19-0/app/look_profile.c 2005-03-19 03:48:23.599132720 +0900
-@@ -1,5 +1,5 @@
- #include <gtk/gtk.h>
--#include <lcms.h>
-+#include <lcms/lcms.h>
-
- #include "../lib/version.h"
- #include "actionarea.h"
-cinepaint-0.19-0だけに発見: cinepaint-configure.patch
-diff -ur cinepaint-0.19-0_old/configure cinepaint-0.19-0/configure
---- cinepaint-0.19-0_old/configure 2005-01-02 03:40:51.000000000 +0900
-+++ cinepaint-0.19-0/configure 2005-03-19 03:44:25.962259016 +0900
-@@ -21898,7 +21898,7 @@
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
--#include <lcms.h>
-+#include <lcms/lcms.h>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-@@ -21941,7 +21941,7 @@
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
--#include <lcms.h>
-+#include <lcms/lcms.h>
- _ACEOF
- if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
-cinepaint-0.19-0だけに発見: libtool
-diff -ur cinepaint-0.19-0_old/plug-ins/tiff/info.c cinepaint-0.19-0/plug-ins/tiff/info.c
---- cinepaint-0.19-0_old/plug-ins/tiff/info.c 2004-12-31 20:58:29.000000000 +0900
-+++ cinepaint-0.19-0/plug-ins/tiff/info.c 2005-03-19 03:49:23.415039320 +0900
-@@ -37,7 +37,7 @@
- #include "tiff_plug_in.h"
- #include "info.h"
-
--#include <lcms.h>
-+#include <lcms/lcms.h>
-
- #ifndef DEBUG
- /*#define DEBUG*/
-diff -ur cinepaint-0.19-0_old/plug-ins/tiff/tiff_plug_in.h cinepaint-0.19-0/plug-ins/tiff/tiff_plug_in.h
---- cinepaint-0.19-0_old/plug-ins/tiff/tiff_plug_in.h 2004-11-23 21:17:14.000000000 +0900
-+++ cinepaint-0.19-0/plug-ins/tiff/tiff_plug_in.h 2005-03-19 03:49:37.939831216 +0900
-@@ -79,7 +79,7 @@
- #include <gtk/gtk.h>
- #endif
- #endif
--#include <lcms.h>
-+#include <lcms/lcms.h>
- #if GIMP_MAJOR_VERSION == 0 && GIMP_MINOR_VERSION == 15
- #include "libgimp/gimpcms.h"
- #endif
---- cinepaint-0.19-0_old/plug-ins/jpeg/jpeg.c 2005-03-19 04:01:43.243568288 +0900
-+++ cinepaint-0.19-0/plug-ins/jpeg/jpeg.c 2005-03-19 04:02:19.068122128 +0900
-@@ -33,7 +33,7 @@
- #include "lib/plugin_main.h"
-
- #include <stdio.h>
--#include "lcms.h"
-+#include <lcms/lcms.h>
- #include "iccjpeg.h"
-
-