Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 413703 | Differences between
and this patch

Collapse All | Expand All

(-)grib_api-1.9.16.ebuild (-16 / +18 lines)
Lines 15-23 Link Here
15
LICENSE="LGPL-3"
15
LICENSE="LGPL-3"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
17
KEYWORDS="~amd64 ~x86"
18
IUSE="doc examples fortran jpeg2k netcdf openmp png python static-libs"
18
IUSE="doc examples fortran jasper jpeg2k netcdf openmp png python static-libs"
19
19
20
DEPEND="jpeg2k? ( || ( media-libs/jasper media-libs/openjpeg ) )
20
DEPEND="
21
	jpeg2k? (
22
		jasper? ( media-libs/jasper )
23
		!jasper? ( media-libs/openjpeg )
24
	)
21
	netcdf? ( sci-libs/netcdf )
25
	netcdf? ( sci-libs/netcdf )
22
	png? ( media-libs/libpng )
26
	png? ( media-libs/libpng )
23
	python? ( dev-python/numpy )"
27
	python? ( dev-python/numpy )"
Lines 28-59 Link Here
28
src_prepare() {
32
src_prepare() {
29
	epatch \
33
	epatch \
30
		"${FILESDIR}"/${PN}-1.9.9-ieeefloat.patch \
34
		"${FILESDIR}"/${PN}-1.9.9-ieeefloat.patch \
31
		"${FILESDIR}"/${PN}-1.9.16-autotools.patch
35
		"${FILESDIR}"/${PN}-1.9.16-autotools.patch \
36
		"${FILESDIR}"/${PN}-1.9.16-jpeg2k.patch
32
	eautoreconf
37
	eautoreconf
33
}
38
}
34
39
35
src_configure() {
40
src_configure() {
36
	local myconf
37
	if use jpeg2k; then
38
		myconf="--enable-jpeg"
39
		if hasv media-libs/jasper; then
40
			myconf="${myconf} --with-jasper=system --without-openjpeg"
41
		elif hasv media-libs/openjpeg; then
42
			myconf="${myconf} --without-jasper --with-openjpeg=system"
43
		fi
44
	else
45
		myconf="--disable-jpeg --without-jasper --without-openjpeg"
46
	fi
47
48
	# perl sources disappear from tar ball
41
	# perl sources disappear from tar ball
49
	econf \
42
	econf \
50
		--without-perl \
43
		--without-perl \
44
		$(use_enable jpeg2k jpeg) \
45
		$(
46
			use jasper && \
47
				echo --with-jasper=system --without-openjpeg || \
48
				echo --with-openjpeg=system --without-jasper
49
		) \
51
		$(use_enable fortran) \
50
		$(use_enable fortran) \
52
		$(use_enable openmp omp-packing) \
51
		$(use_enable openmp omp-packing) \
53
		$(use_enable python) \
52
		$(use_enable python) \
54
		$(use_enable python numpy) \
53
		$(use_enable python numpy) \
55
		$(use_enable static-libs static) \
54
		$(use_enable static-libs static) \
56
		$(use_with netcdf netcdf "${EPREFIX}"/usr) \
55
		$(
56
			use netcdf && echo --with-netcdf="${EPREFIX}"/usr || \
57
				echo --with-netcdf=none
58
		) \
57
		$(use_with png png-support) \
59
		$(use_with png png-support) \
58
		${myconf}
60
		${myconf}
59
}
61
}
(-)metadata.xml (+2 lines)
Lines 9-12 Link Here
9
  FM-92 GRIB edition 1 and edition 2 messages. A useful set of command
9
  FM-92 GRIB edition 1 and edition 2 messages. A useful set of command
10
  line tools is also provided to give quick access to grib messages.
10
  line tools is also provided to give quick access to grib messages.
11
</longdescription>
11
</longdescription>
12
<use><flag name="jasper">Use <pkg>media-libs/jasper</pkg> instead of
13
<pkg>media-libs/openjpeg</pkg> for JPEG 2000 support</flag></use>
12
</pkgmetadata>
14
</pkgmetadata>

Return to bug 413703