* [gentoo-commits] gentoo-x86 commit in media-gfx/tachyon: tachyon-0.98.9.ebuild
@ 2010-03-07 22:32 Alexey Shvetsov (alexxy)
0 siblings, 0 replies; only message in thread
From: Alexey Shvetsov (alexxy) @ 2010-03-07 22:32 UTC (permalink / raw
To: gentoo-commits
alexxy 10/03/07 22:32:01
Modified: tachyon-0.98.9.ebuild
Log:
[media-gfx/tachyon] Update ebuild per bug #293969. thanks to Christopher Schwan
(Portage version: 2.2_rc65/cvs/Linux x86_64)
Revision Changes Path
1.2 media-gfx/tachyon/tachyon-0.98.9.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9.ebuild?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9.ebuild?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9.ebuild?r1=1.1&r2=1.2
Index: tachyon-0.98.9.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tachyon-0.98.9.ebuild 23 Feb 2010 17:44:00 -0000 1.1
+++ tachyon-0.98.9.ebuild 7 Mar 2010 22:32:01 -0000 1.2
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9.ebuild,v 1.1 2010/02/23 17:44:00 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9.ebuild,v 1.2 2010/03/07 22:32:01 alexxy Exp $
EAPI=2
@@ -10,18 +10,18 @@
HOMEPAGE="http://jedi.ks.uiuc.edu/~johns/raytracer/"
SRC_URI="http://jedi.ks.uiuc.edu/~johns/raytracer/files/${PV}/${P}.tar.gz"
-LICENSE="as-is"
+LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples jpeg mpi opengl png threads"
-RESTRICT="mirror"
-
-DEPEND="jpeg? ( media-libs/jpeg )
+CDEPEND="jpeg? ( media-libs/jpeg )
mpi? ( virtual/mpi )
opengl? ( virtual/opengl )
png? ( media-libs/libpng )"
-RDEPEND="${DEPEND}"
+DEPEND="${CDEPEND}
+ dev-util/pkgconfig"
+RDEPEND="${CDEPEND}"
S="${WORKDIR}/${PN}/unix"
@@ -38,8 +38,7 @@
if use opengl ; then
TACHYON_MAKE_TARGET=linux-thr-ogl
if use mpi ; then
- eerror "tachyon does not support MPI with OpenGL and threads"
- die
+ die "tachyon does not support MPI with OpenGL and threads"
fi
elif use mpi ; then
TACHYON_MAKE_TARGET=linux-mpi-thr
@@ -52,7 +51,7 @@
if use opengl ; then
# TODO: Support target: linux-lam-64-ogl
- eerror "OpenGL is only available with USE=threads!"
+ die "OpenGL is only available with USE=threads!"
elif use mpi ; then
TACHYON_MAKE_TARGET=linux-mpi
else
@@ -63,7 +62,7 @@
fi
if [[ -z "${TACHYON_MAKE_TARGET}" ]]; then
- eerror "No target found, check use flags" && die
+ die "No target found, check use flags"
else
einfo "Using target: ${TACHYON_MAKE_TARGET}"
fi
@@ -80,8 +79,8 @@
if use png ; then
sed -i \
-e "s:USEPNG=:USEPNG=-DUSEPNG:g" \
- -e "s:PNGINC=:PNGINC=$(libpng-config --cflags):g" \
- -e "s:PNGLIB=:PNGLIB=$(libpng-config --ldflags):g" Make-config \
+ -e "s:PNGINC=:PNGINC=$(pkg-config libpng --cflags):g" \
+ -e "s:PNGLIB=:PNGLIB=$(pkg-config libpng --libs):g" Make-config \
|| die "sed failed"
fi
@@ -98,25 +97,25 @@
}
src_compile() {
- emake "${TACHYON_MAKE_TARGET}" || die "emake failed"
+ emake ${TACHYON_MAKE_TARGET} || die "emake failed"
}
src_install() {
cd ..
- dodoc Changes README
+ dodoc Changes README || die "dodoc failed"
if use doc ; then
- dohtml docs/tachyon/*
+ dohtml docs/tachyon/* || die "dohtml failed"
fi
- cd "compile/${TACHYON_MAKE_TARGET}"
+ cd compile/${TACHYON_MAKE_TARGET}
- dobin tachyon
- dolib libtachyon.a
+ dobin tachyon || die "dobin failed"
+ dolib libtachyon.a || die "dolib failed"
if use examples; then
cd "${S}/../scenes"
insinto "/usr/share/${PN}/examples"
- doins *
+ doins * || die "doins failed"
fi
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-07 22:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-07 22:32 [gentoo-commits] gentoo-x86 commit in media-gfx/tachyon: tachyon-0.98.9.ebuild Alexey Shvetsov (alexxy)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox