public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Peter Alfredsen (loki_val)" <loki_val@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/vigra: ChangeLog vigra-1.6.0.ebuild
Date: Sun, 17 May 2009 13:26:46 +0000	[thread overview]
Message-ID: <E1M5gO6-0006W3-Cf@stork.gentoo.org> (raw)

loki_val    09/05/17 13:26:46

  Modified:             ChangeLog vigra-1.6.0.ebuild
  Log:
  Fix tests with gcc-4.4. Tests need all use-flags enabled to succeed. Use EAPI=2.
  (Portage version: 2.2_rc28/cvs/Linux x86_64)

Revision  Changes    Path
1.19                 media-libs/vigra/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/vigra/ChangeLog?rev=1.19&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/vigra/ChangeLog?rev=1.19&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/vigra/ChangeLog?r1=1.18&r2=1.19

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-libs/vigra/ChangeLog,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- ChangeLog	28 Sep 2008 20:10:05 -0000	1.18
+++ ChangeLog	17 May 2009 13:26:46 -0000	1.19
@@ -1,6 +1,11 @@
 # ChangeLog for media-libs/vigra
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/vigra/ChangeLog,v 1.18 2008/09/28 20:10:05 vapier Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/vigra/ChangeLog,v 1.19 2009/05/17 13:26:46 loki_val Exp $
+
+  17 May 2009; Peter Alfredsen <loki_val@gentoo.org> vigra-1.6.0.ebuild,
+  +files/vigra-1.6.0-gcc44.patch:
+  Fix tests with gcc-4.4. Tests need all use-flags enabled to succeed. Use
+  EAPI=2.
 
   28 Sep 2008; Mike Frysinger <vapier@gentoo.org> vigra-1.6.0.ebuild:
   Add ~ppc64 love.



1.3                  media-libs/vigra/vigra-1.6.0.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/vigra/vigra-1.6.0.ebuild?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/vigra/vigra-1.6.0.ebuild?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/vigra/vigra-1.6.0.ebuild?r1=1.2&r2=1.3

Index: vigra-1.6.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-libs/vigra/vigra-1.6.0.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vigra-1.6.0.ebuild	28 Sep 2008 20:10:05 -0000	1.2
+++ vigra-1.6.0.ebuild	17 May 2009 13:26:46 -0000	1.3
@@ -1,8 +1,10 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/vigra/vigra-1.6.0.ebuild,v 1.2 2008/09/28 20:10:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/vigra/vigra-1.6.0.ebuild,v 1.3 2009/05/17 13:26:46 loki_val Exp $
 
-inherit multilib
+EAPI=2
+
+inherit eutils multilib
 
 DESCRIPTION="C++ computer vision library with emphasize on customizable algorithms and data structures"
 HOMEPAGE="http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/"
@@ -11,7 +13,7 @@
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="doc fftw jpeg png tiff zlib"
+IUSE="doc fftw jpeg png tiff zlib test"
 
 RDEPEND="png? ( media-libs/libpng )
 	tiff? ( media-libs/tiff )
@@ -24,17 +26,46 @@
 
 MY_DOCDIR="usr/share/doc/${PF}"
 
-src_compile() {
+pkg_setup() {
+	local flag
+	export usefail=""
+	if use test
+	then
+		for flag in png tiff jpeg fftw
+		do
+			use $flag || usefail="$usefail $flag"
+		done
+
+		if [[ -n "$usefail" ]]
+		then
+			elog "USE=test enabled but the following use-flags are disabled:"
+			elog "${usefail# }"
+			elog "Tests will be skipped, please enable the other use-flags."
+		fi
+	fi
+}
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}-gcc44.patch"
+}
+
+src_configure() {
 	./configure \
-		--prefix="/usr/" \
 		--docdir="${D}/${MY_DOCDIR}" \
+		--prefix=/usr \
 		$(use_with png) \
 		$(use_with tiff) \
 		$(use_with jpeg) \
 		$(use_with zlib) \
 		$(use_with fftw) \
-	|| die "configure failed"
-	emake || die "emake failed"
+		|| die "configure failed"
+}
+
+src_test() {
+	if [[ -z "${usefail}" ]]
+	then
+		default
+	fi
 }
 
 src_install() {






             reply	other threads:[~2009-05-17 13:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-17 13:26 Peter Alfredsen (loki_val) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-05-19 20:13 [gentoo-commits] gentoo-x86 commit in media-libs/vigra: ChangeLog vigra-1.6.0.ebuild Brent Baude (ranger)
2009-05-21 19:55 Brent Baude (ranger)
2009-05-24 18:41 Markus Meier (maekke)
2009-06-02 16:48 Raul Porcel (armin76)
2010-03-09 13:01 Samuli Suominen (ssuominen)
2011-10-23 16:10 Raul Porcel (armin76)
2011-10-23 16:18 Tomas Chvatal (scarabeus)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1M5gO6-0006W3-Cf@stork.gentoo.org \
    --to=loki_val@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox