summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-02-11 20:21:57 +0100
committerDavid Seifert <soap@gentoo.org>2017-02-11 20:47:03 +0100
commitef664cf5291561a96a3da9b42e3cd41940ff2f4f (patch)
tree64a372795bb413d75d8aad9fe12f9e3e0483cbe5 /dev-lang/gdl
parentapp-text/cuneiform: Use sub-slot operators for imagemagick (diff)
downloadgentoo-ef664cf5291561a96a3da9b42e3cd41940ff2f4f.tar.gz
gentoo-ef664cf5291561a96a3da9b42e3cd41940ff2f4f.tar.bz2
gentoo-ef664cf5291561a96a3da9b42e3cd41940ff2f4f.zip
dev-lang/gdl: Use sub-slot operators for imagemagick
Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3907
Diffstat (limited to 'dev-lang/gdl')
-rw-r--r--dev-lang/gdl/gdl-0.9.6-r2.ebuild (renamed from dev-lang/gdl/gdl-0.9.6-r1.ebuild)33
1 files changed, 18 insertions, 15 deletions
diff --git a/dev-lang/gdl/gdl-0.9.6-r1.ebuild b/dev-lang/gdl/gdl-0.9.6-r2.ebuild
index fc6add89adfa..1dd13833fa42 100644
--- a/dev-lang/gdl/gdl-0.9.6-r1.ebuild
+++ b/dev-lang/gdl/gdl-0.9.6-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -16,7 +16,7 @@ SRC_URI="mirror://sourceforge/gnudatalanguage/${P}v2.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+eigen fftw grib gshhs hdf hdf5 imagemagick netcdf openmp
+IUSE="+eigen fftw graphicsmagick grib gshhs hdf hdf5 +imagemagick netcdf openmp
png proj postscript python static-libs udunits wxwidgets"
RDEPEND="
@@ -33,10 +33,8 @@ RDEPEND="
hdf? ( sci-libs/hdf:0= )
hdf5? ( sci-libs/hdf5:0= )
imagemagick? (
- || (
- media-gfx/graphicsmagick[cxx]
- media-gfx/imagemagick[cxx]
- )
+ !graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
+ graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
)
netcdf? ( sci-libs/netcdf )
proj? ( sci-libs/proj )
@@ -47,7 +45,6 @@ RDEPEND="
)
udunits? ( sci-libs/udunits )
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )"
-
DEPEND="${RDEPEND}
dev-java/antlr:0[java(+),script(+)]
virtual/pkgconfig
@@ -69,9 +66,11 @@ PATCHES=(
)
pkg_pretend() {
- use openmp && [[ $(tc-getCXX)$ == *g++* ]] && \
- [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp && \
- die "You are using gcc but without OpenMP capabilities that you requested"
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_prepare() {
@@ -82,10 +81,12 @@ src_prepare() {
# https://sourceforge.net/tracker/?func=detail&atid=618685&aid=3465878&group_id=97659
rm -r src/antlr || die
einfo "Regenerating grammar"
- pushd src > /dev/null
+ pushd src >/dev/null || die
local i
- for i in *.g; do antlr ${i} || die ; done
- popd > /dev/null
+ for i in *.g; do
+ antlr ${i} || die
+ done
+ popd >/dev/null || die
# gentoo: avoid install files in datadir directory
# and manually install them in src_install
@@ -114,8 +115,9 @@ src_configure() {
-DUDUNITS="$(usex udunits)"
-DWXWIDGETS="$(usex wxwidgets)"
)
+
if use imagemagick; then
- if has_version media-gfx/graphicsmagick[cxx]; then
+ if use graphicsmagick; then
mycmakeargs+=( -DGRAPHICSMAGICK=ON -DMAGICK=OFF )
else
mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=ON )
@@ -123,6 +125,7 @@ src_configure() {
else
mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=OFF )
fi
+
configuration() {
mycmakeargs+=( $@ )
cmake-utils_src_configure
@@ -152,6 +155,6 @@ src_install() {
dodoc PYTHON.txt
fi
#dodoc AUTHORS README
- echo "GDL_PATH=\"+${EROOT%/}/usr/share/gnudatalanguage\"" > 50gdl
+ echo "GDL_PATH=\"+${EPREFIX}/usr/share/gnudatalanguage\"" > 50gdl || die
doenvd 50gdl
}