-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="hdf"
-RDEPEND="sci-libs/hdf
- virtual/jpeg"
+RDEPEND="hdf? ( sci-libs/hdf )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
src_prepare() {
- epatch "${FILESDIR}/${PN}-automake.patch"
+ epatch "${FILESDIR}/${PN}-"{automake,with_hdf}".patch"
eautoreconf
}
+
+src_configure() {
+ econf $(use_with hdf)
+}