From b62381b18b4bf2e919cbfbae11ebcad391e38e77 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 16 Dec 2022 03:35:12 +0000 Subject: gentoo auto-resync : 16:12:2022 - 03:35:12 --- dev-lang/gdl/Manifest | 4 +- dev-lang/gdl/gdl-1.0.0_rc3-r1.ebuild | 153 ----------------------------------- dev-lang/gdl/gdl-1.0.0_rc3-r3.ebuild | 153 +++++++++++++++++++++++++++++++++++ dev-lang/gdl/gdl-1.0.1-r1.ebuild | 146 +++++++++++++++++++++++++++++++++ dev-lang/gdl/gdl-1.0.1.ebuild | 146 --------------------------------- 5 files changed, 301 insertions(+), 301 deletions(-) delete mode 100644 dev-lang/gdl/gdl-1.0.0_rc3-r1.ebuild create mode 100644 dev-lang/gdl/gdl-1.0.0_rc3-r3.ebuild create mode 100644 dev-lang/gdl/gdl-1.0.1-r1.ebuild delete mode 100644 dev-lang/gdl/gdl-1.0.1.ebuild (limited to 'dev-lang/gdl') diff --git a/dev-lang/gdl/Manifest b/dev-lang/gdl/Manifest index b601bb6f8dca..6b0c826a315c 100644 --- a/dev-lang/gdl/Manifest +++ b/dev-lang/gdl/Manifest @@ -2,6 +2,6 @@ AUX gdl-1.0.0_rc3-cmake.patch 3673 BLAKE2B 81ede9a3b1fc6147ab528f49efabb140ff505 AUX gdl-1.0.1-cmake.patch 4639 BLAKE2B 53e8093ab8f3d33fdd4db3441060400c02418e1543c5a975129ba6097e25861823f51f0e923b989a8e94fa6780fe065eae4e8a753abac3b580c22a132bf11af5 SHA512 f6df405084ecfe0a8ac96431ac8a28501e68cb6d3d6619f86825f70910df14d47b0d2da8901d0436a4dfd1c7625beabdc297cfa898346d3f6cd65d2f4f6d4dfa DIST gdl-1.0.0_rc3.tar.gz 32650313 BLAKE2B cdecfe0646e2271e2389e0a04f8da1e8de4534faf743f233169bccf326198025eff7fd7a7b62ed8bd05fa4a0222c6fd30f9469e3edf0f5b2991ef3ef545e616b SHA512 3fde22c7e709b9cdc72a23d2317c043037379c7903418211a699c7e5caa2ed17e78e32e6d2f9b4aa89200e729fc21555821140dfdd58a5a636a858e2841f6335 DIST gdl-1.0.1.tar.gz 32775655 BLAKE2B 3428f33300403c98ae1f8f88cfa0e2346abe53d53b9f00c82ee5bf7f09f1f2f7d3021fa81173221ddd41ec29c94c2757cd1dc39b6e4d919c29d70af2e5045e6a SHA512 9d15f114d26d03c34dce6177a5d5115e81c128ec21752c01d171f8427e6cb21b9d0b69a44e29891b5e8fc2bd4d0b89d1a8dcd189f362a13c6e59182528b5842d -EBUILD gdl-1.0.0_rc3-r1.ebuild 3731 BLAKE2B bbd9b0863553472971487e121d6511dd621c06b6890269cb1a1377cff52c379f10518b6b4cc9b1831d9b308f94e35e9bd0a6a7468724b2fff8a7125f79655d49 SHA512 d4dc3fe08a415218b9b5f911c82b5c9cb401647d68f8900ec22c7cc5ca1740a64d35aaf2b0f99134f8b1ff6a237defc546471221d528b8dc2c09f19361c810f3 -EBUILD gdl-1.0.1.ebuild 3306 BLAKE2B b5752c1ed278e9b362d4d46886947c9ffff9b35d93a3708a5e5ef8810f2e65c60b98ae52de9b6124c054e7dc6c05f613cc2f2de8936f9304f8f6195696a2c678 SHA512 317406911aa2edcaac085d4e38f39ba5696b720faecfcd89087e22fa24779567017a709b591979a34ca9071d34ad977dc8e379b806abf91152ac0410a568baf7 +EBUILD gdl-1.0.0_rc3-r3.ebuild 3728 BLAKE2B b58fac48832dae953cda5f5b322636929e400ac2fb3997d1630bf6212544833106eed4e09c9bd768dea8b81bd166923bf8939d89bda13f9e0528166af92db017 SHA512 18eb3e81cf4ed57fd7bba2806bffc848f2b70b10a8283f8a2390f230447db109982088c93142afebd86dc4120942cbb5e700088d6b7fe1b37c6d8f02e5418e90 +EBUILD gdl-1.0.1-r1.ebuild 3303 BLAKE2B a700aaa393fedefe1bf0080d954f9f41c55b3e99e9fbe31064fa1b781a611840c272f67ff3b3152c2bbc1085d7c103314536e359c891515a097f0af04ca4be2b SHA512 a975a25ded7dfd2983c059ce05c4dcd3287c0203761037c5d9b6ef48c442bae5d48c2a9235ff4466d106591fc1a76753260ed8472d81476f18a69e2dc5d98f94 MISC metadata.xml 1229 BLAKE2B 63a2756fcb9cb9b2f59502a692e2c5c6852a765c9c97f4ac5e23e9630d516150fa9fa1890c1a0821794a3057323ede1c17405285428496dbed85d89c8995618d SHA512 d70b1c5187d7452c3a8e0f93803b01afada76bbde14966dbf9334a38a97eb3fbd8df41746fa300954e17f2845031517ddafebb5fec54c1a9bf13a88e47fa8285 diff --git a/dev-lang/gdl/gdl-1.0.0_rc3-r1.ebuild b/dev-lang/gdl/gdl-1.0.0_rc3-r1.ebuild deleted file mode 100644 index 3ddd3c10fb22..000000000000 --- a/dev-lang/gdl/gdl-1.0.0_rc3-r1.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -WX_GTK_VER="3.0-gtk3" -PYTHON_COMPAT=( python3_{7..9} ) - -# gdl's build system is a travesty, and actually calls -# itself in the testsuite, which is something that ninja -# obviously doesn't support. -CMAKE_MAKEFILE_GENERATOR=emake - -inherit cmake python-r1 toolchain-funcs virtualx wxwidgets - -DESCRIPTION="GNU Data Language" -HOMEPAGE="https://github.com/gnudatalanguage/gdl" -SRC_URI="https://github.com/gnudatalanguage/gdl/archive/v$(ver_cut 1-3)-rc.$(ver_cut 5).tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="+eigen fftw glpk graphicsmagick gshhs hdf hdf5 +imagemagick netcdf - openmp png proj postscript python tiff udunits wxwidgets" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - dev-cpp/antlr-cpp:2= - dev-libs/expat - sci-libs/gsl:0= - sci-libs/plplot:0=[X,cxx,-dynamic] - sys-libs/ncurses:0= - sys-libs/readline:0= - sys-libs/zlib - x11-libs/libX11 - fftw? ( sci-libs/fftw:3.0= ) - glpk? ( sci-mathematics/glpk:= ) - gshhs? ( - sci-geosciences/gshhs-data - sci-geosciences/gshhs:0= - ) - hdf? ( sci-libs/hdf:0= ) - hdf5? ( sci-libs/hdf5:0= ) - imagemagick? ( - !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) - graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) - ) - netcdf? ( sci-libs/netcdf:= ) - proj? ( sci-libs/proj:= ) - postscript? ( dev-libs/pslib ) - python? ( - ${PYTHON_DEPS} - dev-python/numpy[${PYTHON_USEDEP}] - ) - tiff? ( - media-libs/tiff - sci-libs/libgeotiff - ) - udunits? ( sci-libs/udunits ) - wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )" -DEPEND="${RDEPEND} - eigen? ( dev-cpp/eigen:3 )" -BDEPEND=" - dev-util/intltool - virtual/pkgconfig - python? ( app-admin/chrpath )" - -S="${WORKDIR}/${PN}-$(ver_cut 1-3)-rc.$(ver_cut 5)" - -PATCHES=( "${FILESDIR}"/${PN}-1.0.0_rc3-cmake.patch ) - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_prepare() { - use wxwidgets && setup-wxwidgets unicode - use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx - - # remove bundled antlr - rm -r src/antlr || die - - # gentoo: avoid install files in datadir directory - # and manually install them in src_install - sed -e '/AUTHORS/d' -i CMakeLists.txt || die - cmake_src_prepare -} - -src_configure() { - # MPI is still very buggy - # x11=off does not compile - local mycmakeargs=( - -DMPI=OFF - -DREADLINE=ON - -DX11=ON - -DEXPAT=ON - -DEIGEN3=$(usex eigen) - -DFFTW=$(usex fftw) - -DGRIB=OFF - -DGLPK=$(usex glpk) - -DHDF=$(usex hdf) - -DHDF5=$(usex hdf5) - -DLIBPROJ4=$(usex proj) - -DNETCDF=$(usex netcdf) - -DOPENMP=$(usex openmp) - -DPNGLIB=$(usex png) - -DUDUNITS2=$(usex udunits) - -DWXWIDGETS=$(usex wxwidgets) - -DGRAPHICSMAGICK=$(usex imagemagick $(usex graphicsmagick)) - -DMAGICK=$(usex imagemagick $(usex !graphicsmagick)) - -DTIFF=$(usex tiff) - -DGEOTIFF=$(usex tiff) - -DSHAPELIB=OFF - -DPLPLOTDIR="${EPREFIX}"/usr/$(get_libdir) - ) - - configuration() { - mycmakeargs+=( "$@" ) - cmake_src_configure - } - configuration -DPYTHON_MODULE=OFF -DPYTHON=OFF - use python && python_foreach_impl configuration -DPYTHON_MODULE=ON -DPYTHON=ON -} - -src_compile() { - cmake_src_compile - use python && python_foreach_impl cmake_src_compile -} - -src_test() { - # there is check target instead of the ctest to define some LDPATH - virtx cmake_build check -} - -src_install() { - cmake_src_install - if use python; then - installation() { - chrpath -d src/GDL.so || die - python_domodule src/GDL.so - } - python_foreach_impl run_in_build_dir installation - dodoc PYTHON.txt - fi - - newenvd - 50gdl <<-_EOF_ - GDL_PATH="+${EPREFIX}/usr/share/gnudatalanguage" - _EOF_ -} diff --git a/dev-lang/gdl/gdl-1.0.0_rc3-r3.ebuild b/dev-lang/gdl/gdl-1.0.0_rc3-r3.ebuild new file mode 100644 index 000000000000..1ff72195bd1c --- /dev/null +++ b/dev-lang/gdl/gdl-1.0.0_rc3-r3.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +WX_GTK_VER="3.0-gtk3" +PYTHON_COMPAT=( python3_{7..9} ) + +# gdl's build system is a travesty, and actually calls +# itself in the testsuite, which is something that ninja +# obviously doesn't support. +CMAKE_MAKEFILE_GENERATOR=emake + +inherit cmake python-r1 toolchain-funcs virtualx wxwidgets + +DESCRIPTION="GNU Data Language" +HOMEPAGE="https://github.com/gnudatalanguage/gdl" +SRC_URI="https://github.com/gnudatalanguage/gdl/archive/v$(ver_cut 1-3)-rc.$(ver_cut 5).tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+eigen fftw glpk graphicsmagick gshhs hdf hdf5 +imagemagick netcdf + openmp png proj postscript python tiff udunits wxwidgets" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-cpp/antlr-cpp:2= + dev-libs/expat + sci-libs/gsl:= + sci-libs/plplot:=[X,cxx,-dynamic] + sys-libs/ncurses:= + sys-libs/readline:= + sys-libs/zlib + x11-libs/libX11 + fftw? ( sci-libs/fftw:3.0= ) + glpk? ( sci-mathematics/glpk:= ) + gshhs? ( + sci-geosciences/gshhs-data + sci-geosciences/gshhs:= + ) + hdf? ( sci-libs/hdf:= ) + hdf5? ( sci-libs/hdf5:= ) + imagemagick? ( + !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) + graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) + ) + netcdf? ( sci-libs/netcdf:= ) + proj? ( sci-libs/proj:= ) + postscript? ( dev-libs/pslib ) + python? ( + ${PYTHON_DEPS} + dev-python/numpy[${PYTHON_USEDEP}] + ) + tiff? ( + media-libs/tiff:= + sci-libs/libgeotiff:= + ) + udunits? ( sci-libs/udunits ) + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )" +DEPEND="${RDEPEND} + eigen? ( dev-cpp/eigen:3 )" +BDEPEND=" + dev-util/intltool + virtual/pkgconfig + python? ( app-admin/chrpath )" + +S="${WORKDIR}/${PN}-$(ver_cut 1-3)-rc.$(ver_cut 5)" + +PATCHES=( "${FILESDIR}"/${PN}-1.0.0_rc3-cmake.patch ) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + use wxwidgets && setup-wxwidgets unicode + use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx + + # remove bundled antlr + rm -r src/antlr || die + + # gentoo: avoid install files in datadir directory + # and manually install them in src_install + sed -e '/AUTHORS/d' -i CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + # MPI is still very buggy + # x11=off does not compile + local mycmakeargs=( + -DMPI=OFF + -DREADLINE=ON + -DX11=ON + -DEXPAT=ON + -DEIGEN3=$(usex eigen) + -DFFTW=$(usex fftw) + -DGRIB=OFF + -DGLPK=$(usex glpk) + -DHDF=$(usex hdf) + -DHDF5=$(usex hdf5) + -DLIBPROJ4=$(usex proj) + -DNETCDF=$(usex netcdf) + -DOPENMP=$(usex openmp) + -DPNGLIB=$(usex png) + -DUDUNITS2=$(usex udunits) + -DWXWIDGETS=$(usex wxwidgets) + -DGRAPHICSMAGICK=$(usex imagemagick $(usex graphicsmagick)) + -DMAGICK=$(usex imagemagick $(usex !graphicsmagick)) + -DTIFF=$(usex tiff) + -DGEOTIFF=$(usex tiff) + -DSHAPELIB=OFF + -DPLPLOTDIR="${EPREFIX}"/usr/$(get_libdir) + ) + + configuration() { + mycmakeargs+=( "$@" ) + cmake_src_configure + } + configuration -DPYTHON_MODULE=OFF -DPYTHON=OFF + use python && python_foreach_impl configuration -DPYTHON_MODULE=ON -DPYTHON=ON +} + +src_compile() { + cmake_src_compile + use python && python_foreach_impl cmake_src_compile +} + +src_test() { + # there is check target instead of the ctest to define some LDPATH + virtx cmake_build check +} + +src_install() { + cmake_src_install + if use python; then + installation() { + chrpath -d src/GDL.so || die + python_domodule src/GDL.so + } + python_foreach_impl run_in_build_dir installation + dodoc PYTHON.txt + fi + + newenvd - 50gdl <<-_EOF_ + GDL_PATH="+${EPREFIX}/usr/share/gnudatalanguage" + _EOF_ +} diff --git a/dev-lang/gdl/gdl-1.0.1-r1.ebuild b/dev-lang/gdl/gdl-1.0.1-r1.ebuild new file mode 100644 index 000000000000..07455093cffe --- /dev/null +++ b/dev-lang/gdl/gdl-1.0.1-r1.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +WX_GTK_VER="3.0-gtk3" +PYTHON_COMPAT=( python3_{8..11} ) + +inherit cmake python-single-r1 toolchain-funcs virtualx wxwidgets + +DESCRIPTION="GNU Data Language" +HOMEPAGE="https://github.com/gnudatalanguage/gdl" +SRC_URI="https://github.com/gnudatalanguage/gdl/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE=" + +eigen fftw glpk graphicsmagick gshhs hdf hdf5 +imagemagick netcdf + openmp png proj postscript python shapelib tiff udunits wxwidgets +" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-cpp/antlr-cpp:2= + dev-libs/expat + net-libs/libtirpc:= + sci-libs/gsl:= + sci-libs/plplot:=[X,cxx,-dynamic,wxwidgets?] + sys-libs/ncurses:= + sys-libs/readline:= + sys-libs/zlib + x11-libs/libX11 + fftw? ( sci-libs/fftw:3.0= ) + glpk? ( sci-mathematics/glpk:= ) + gshhs? ( + sci-geosciences/gshhs-data + sci-geosciences/gshhs:= + ) + hdf? ( sci-libs/hdf:= ) + hdf5? ( sci-libs/hdf5:= ) + imagemagick? ( + !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) + graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) + ) + netcdf? ( sci-libs/netcdf:= ) + proj? ( sci-libs/proj:= ) + postscript? ( dev-libs/pslib ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ') + ) + shapelib? ( sci-libs/shapelib:= ) + tiff? ( + media-libs/tiff:= + sci-libs/libgeotiff:= + ) + udunits? ( sci-libs/udunits ) + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) +" +DEPEND="${RDEPEND} + eigen? ( dev-cpp/eigen:3 ) +" +BDEPEND=" + dev-util/intltool + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${PN}-1.0.1-cmake.patch ) +DOCS=( AUTHORS HACKING NEWS PYTHON.txt README README.md ) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + use python && python-single-r1_pkg_setup +} + +src_prepare() { + use wxwidgets && setup-wxwidgets unicode + use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx + + # remove bundled antlr + rm -r src/antlr || die + + # gentoo: avoid install files in datadir directory + # and manually install them in src_install + sed -e '/AUTHORS/d' -i CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + # MPI is still very buggy + # x11=off does not compile + local mycmakeargs=( + -DMPI=OFF + -DREADLINE=ON + -DX11=ON + -DEXPAT=ON + -DEIGEN3=$(usex eigen) + -DFFTW=$(usex fftw) + -DGRIB=OFF + -DGLPK=$(usex glpk) + -DHDF=$(usex hdf) + -DHDF5=$(usex hdf5) + -DLIBPROJ=$(usex proj) + -DNETCDF=$(usex netcdf) + -DOPENMP=$(usex openmp) + -DPNGLIB=$(usex png) + -DUDUNITS2=$(usex udunits) + -DWXWIDGETS=$(usex wxwidgets) + -DGRAPHICSMAGICK=$(usex imagemagick $(usex graphicsmagick)) + -DMAGICK=$(usex imagemagick $(usex !graphicsmagick)) + -DTIFF=$(usex tiff) + -DGEOTIFF=$(usex tiff) + -DPYTHON_MODULE=$(usex python) + -DPYTHON=$(usex python) + -DSHAPELIB=$(usex shapelib) + ) + + if use python; then + # automatically selection ignores EPYTHON + mycmakeargs+=( + -DPYTHONVERSION="${EPYTHON#python}" + ) + fi + + cmake_src_configure +} + +src_test() { + virtx cmake_src_test +} + +src_install() { + cmake_src_install + + newenvd - 50gdl <<-_EOF_ + GDL_PATH="+${EPREFIX}/usr/share/gnudatalanguage" + _EOF_ +} diff --git a/dev-lang/gdl/gdl-1.0.1.ebuild b/dev-lang/gdl/gdl-1.0.1.ebuild deleted file mode 100644 index e6c87cb4a0cc..000000000000 --- a/dev-lang/gdl/gdl-1.0.1.ebuild +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -WX_GTK_VER="3.0-gtk3" -PYTHON_COMPAT=( python3_{8..11} ) - -inherit cmake python-single-r1 toolchain-funcs virtualx wxwidgets - -DESCRIPTION="GNU Data Language" -HOMEPAGE="https://github.com/gnudatalanguage/gdl" -SRC_URI="https://github.com/gnudatalanguage/gdl/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE=" - +eigen fftw glpk graphicsmagick gshhs hdf hdf5 +imagemagick netcdf - openmp png proj postscript python shapelib tiff udunits wxwidgets -" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - dev-cpp/antlr-cpp:2= - dev-libs/expat - net-libs/libtirpc:= - sci-libs/gsl:0= - sci-libs/plplot:0=[X,cxx,-dynamic,wxwidgets?] - sys-libs/ncurses:0= - sys-libs/readline:0= - sys-libs/zlib - x11-libs/libX11 - fftw? ( sci-libs/fftw:3.0= ) - glpk? ( sci-mathematics/glpk:= ) - gshhs? ( - sci-geosciences/gshhs-data - sci-geosciences/gshhs:0= - ) - hdf? ( sci-libs/hdf:0= ) - hdf5? ( sci-libs/hdf5:0= ) - imagemagick? ( - !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) - graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) - ) - netcdf? ( sci-libs/netcdf:= ) - proj? ( sci-libs/proj:= ) - postscript? ( dev-libs/pslib ) - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-python/numpy[${PYTHON_USEDEP}] - ') - ) - shapelib? ( sci-libs/shapelib:= ) - tiff? ( - media-libs/tiff - sci-libs/libgeotiff - ) - udunits? ( sci-libs/udunits ) - wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) -" -DEPEND="${RDEPEND} - eigen? ( dev-cpp/eigen:3 ) -" -BDEPEND=" - dev-util/intltool - virtual/pkgconfig -" - -PATCHES=( "${FILESDIR}"/${PN}-1.0.1-cmake.patch ) -DOCS=( AUTHORS HACKING NEWS PYTHON.txt README README.md ) - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp - use python && python-single-r1_pkg_setup -} - -src_prepare() { - use wxwidgets && setup-wxwidgets unicode - use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx - - # remove bundled antlr - rm -r src/antlr || die - - # gentoo: avoid install files in datadir directory - # and manually install them in src_install - sed -e '/AUTHORS/d' -i CMakeLists.txt || die - - cmake_src_prepare -} - -src_configure() { - # MPI is still very buggy - # x11=off does not compile - local mycmakeargs=( - -DMPI=OFF - -DREADLINE=ON - -DX11=ON - -DEXPAT=ON - -DEIGEN3=$(usex eigen) - -DFFTW=$(usex fftw) - -DGRIB=OFF - -DGLPK=$(usex glpk) - -DHDF=$(usex hdf) - -DHDF5=$(usex hdf5) - -DLIBPROJ=$(usex proj) - -DNETCDF=$(usex netcdf) - -DOPENMP=$(usex openmp) - -DPNGLIB=$(usex png) - -DUDUNITS2=$(usex udunits) - -DWXWIDGETS=$(usex wxwidgets) - -DGRAPHICSMAGICK=$(usex imagemagick $(usex graphicsmagick)) - -DMAGICK=$(usex imagemagick $(usex !graphicsmagick)) - -DTIFF=$(usex tiff) - -DGEOTIFF=$(usex tiff) - -DPYTHON_MODULE=$(usex python) - -DPYTHON=$(usex python) - -DSHAPELIB=$(usex shapelib) - ) - - if use python; then - # automatically selection ignores EPYTHON - mycmakeargs+=( - -DPYTHONVERSION="${EPYTHON#python}" - ) - fi - - cmake_src_configure -} - -src_test() { - virtx cmake_src_test -} - -src_install() { - cmake_src_install - - newenvd - 50gdl <<-_EOF_ - GDL_PATH="+${EPREFIX}/usr/share/gnudatalanguage" - _EOF_ -} -- cgit v1.2.3