commit:     d786e71e19cac05e56ed0393f287b45df4686ba8
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 21 17:33:18 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Sep 21 17:33:18 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=d786e71e

sci-libs/cgnstools: Add subslot operators

Package-Manager: portage-2.2.20.1
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild 
b/sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild
index 7abf975..4382192 100644
--- a/sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild
+++ b/sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild
@@ -17,20 +17,25 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="hdf5 tcl tk X"
 
-DEPEND="hdf5? ( sci-libs/cgnslib[hdf5] )
+DEPEND="
+       hdf5? ( sci-libs/cgnslib[hdf5] )
        !hdf5? ( sci-libs/cgnslib[-hdf5] )
-       tcl? ( dev-lang/tcl )
-       tk? ( dev-lang/tk )"
+       tcl? ( dev-lang/tcl:0= )
+       tk? ( dev-lang/tk:0= )"
 
 RDEPEND="${DEPEND}"
 
 S=${WORKDIR}/${PN}
 
+PATCHES=(
+       "${FILESDIR}"/${P}.patch
+       "${FILESDIR}"/${P}_cgns_to_vtk2D.patch
+       "${FILESDIR}"/${P}_gcc4.4.patch
+       "${FILESDIR}"/${P}_tcltk.patch
+)
+
 src_prepare() {
-       epatch "${FILESDIR}"/${P}.patch
-       epatch "${FILESDIR}"/${P}_cgns_to_vtk2D.patch
-       epatch "${FILESDIR}"/${P}_gcc4.4.patch
-       epatch "${FILESDIR}"/${P}_tcltk.patch
+       epatch "${PATCHES[@]}"
 }
 
 src_configure() {

Reply via email to