diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-05-07 15:33:32 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-05-07 15:33:32 +0000 |
commit | 1b6185b81dcb1fce7beefd607c66f073ce660003 (patch) | |
tree | 626e5b244a742202cad7a6b3f1daae0977533883 /dev-lang | |
parent | Linux patch 3.19.7 (diff) | |
download | gentoo-2-1b6185b81dcb1fce7beefd607c66f073ce660003.tar.gz gentoo-2-1b6185b81dcb1fce7beefd607c66f073ce660003.tar.bz2 gentoo-2-1b6185b81dcb1fce7beefd607c66f073ce660003.zip |
Version Bump; fix compatibility with latest plplot, bug #547380; fix python support bug #530774
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/gdl/ChangeLog | 11 | ||||
-rw-r--r-- | dev-lang/gdl/files/0.9.4-plplot.patch | 18 | ||||
-rw-r--r-- | dev-lang/gdl/files/0.9.4-python2.patch | 17 | ||||
-rw-r--r-- | dev-lang/gdl/files/0.9.5-antlr.patch | 91 | ||||
-rw-r--r-- | dev-lang/gdl/files/0.9.5-png.patch | 15 | ||||
-rw-r--r-- | dev-lang/gdl/files/0.9.5-proj4.patch | 41 | ||||
-rw-r--r-- | dev-lang/gdl/files/0.9.5-testsuite.patch | 15 | ||||
-rw-r--r-- | dev-lang/gdl/gdl-0.9.4.ebuild | 43 | ||||
-rw-r--r-- | dev-lang/gdl/gdl-0.9.5.ebuild | 157 | ||||
-rw-r--r-- | dev-lang/gdl/metadata.xml | 21 |
10 files changed, 399 insertions, 30 deletions
diff --git a/dev-lang/gdl/ChangeLog b/dev-lang/gdl/ChangeLog index 5e9702bc5371..a24c6f4f8691 100644 --- a/dev-lang/gdl/ChangeLog +++ b/dev-lang/gdl/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-lang/gdl # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v 1.47 2015/04/08 08:22:09 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v 1.48 2015/05/07 15:33:32 jlec Exp $ + +*gdl-0.9.5 (07 May 2015) + + 07 May 2015; Justin Lecher <jlec@gentoo.org> +files/0.9.4-plplot.patch, + +files/0.9.4-python2.patch, +files/0.9.5-antlr.patch, +files/0.9.5-png.patch, + +files/0.9.5-proj4.patch, +files/0.9.5-testsuite.patch, +gdl-0.9.5.ebuild, + gdl-0.9.4.ebuild, metadata.xml: + Version Bump; fix compatibility with latest plplot, bug #547380; fix python + support bug #530774 08 Apr 2015; Michał Górny <mgorny@gentoo.org> gdl-0.9.4.ebuild: Drop old Python implementations diff --git a/dev-lang/gdl/files/0.9.4-plplot.patch b/dev-lang/gdl/files/0.9.4-plplot.patch new file mode 100644 index 000000000000..fac18ec5e699 --- /dev/null +++ b/dev-lang/gdl/files/0.9.4-plplot.patch @@ -0,0 +1,18 @@ + CMakeModules/FindPlplot.cmake | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeModules/FindPlplot.cmake b/CMakeModules/FindPlplot.cmake +index a503f8c..cdaeb24 100644 +--- a/CMakeModules/FindPlplot.cmake ++++ b/CMakeModules/FindPlplot.cmake +@@ -9,8 +9,8 @@ + # + + +-find_library(PLPLOT_LIBRARY NAMES plplotd) +-find_library(PLPLOTCXX_LIBRARY NAMES plplotcxxd) ++find_library(PLPLOT_LIBRARY NAMES plplotd plplot) ++find_library(PLPLOTCXX_LIBRARY NAMES plplotcxxd plplotcxx) + set(PLPLOT_LIBRARIES ${PLPLOT_LIBRARY} ${PLPLOTCXX_LIBRARY}) + find_path(PLPLOT_INCLUDE_DIR NAMES plplot/plplot.h) + include(FindPackageHandleStandardArgs) diff --git a/dev-lang/gdl/files/0.9.4-python2.patch b/dev-lang/gdl/files/0.9.4-python2.patch new file mode 100644 index 000000000000..8dc92324a581 --- /dev/null +++ b/dev-lang/gdl/files/0.9.4-python2.patch @@ -0,0 +1,17 @@ + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1fda8ee..e2170b2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -615,8 +615,8 @@ if(PYTHON OR PYTHON_MODULE) + else() + set(PythonLibs_FIND_VERSION 2) + endif() +- find_package(PythonLibs) + include(FindPythonInterp) ++ find_package(PythonLibs) + endif() + set(USE_PYTHON ${PYTHONLIBS_FOUND}) + if(PYTHONLIBS_FOUND) diff --git a/dev-lang/gdl/files/0.9.5-antlr.patch b/dev-lang/gdl/files/0.9.5-antlr.patch new file mode 100644 index 000000000000..f5b627ab444e --- /dev/null +++ b/dev-lang/gdl/files/0.9.5-antlr.patch @@ -0,0 +1,91 @@ + CMakeLists.txt | 14 +++++++++++--- + CMakeModules/FindANTLR.cmake | 11 +++++++++++ + src/CMakeLists.txt | 18 +++++++++++------- + 3 files changed, 33 insertions(+), 10 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 407e39a..c4b3278 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -111,6 +111,8 @@ set(SZIPDIR "" CACHE PATH "GDL: Specify the SZip directory tree") + + set(GDL_DATA_DIR "/share/gnudatalanguage" CACHE PATH "GDL: data directory relative to CMAKE_INSTALL_PREFIX") + ++set(BUNDLED_ANTLR OFF CACHE BOOL "Use bundled ANTLR grammar ?") ++set(ANTLRDIR "" CACHE PATH "Specify the system ANTLR directory tree") + + # check for 64-bit OS + if(${CMAKE_SIZEOF_VOID_P} EQUAL 8) +@@ -174,9 +176,15 @@ check_library_exists(m nexttoward "" HAVE_NEXTTOWARD) + # mpi + check_include_file(mpi.h HAVE_MPI_H) + +-# SA: whithout it compilation of antlr fails if there's a conflicting +-# version of antlr in system-wide directories +-include_directories(src) ++if(BUNDLED_ANTLR) ++ # SA: whithout it compilation of antlr fails if there's a conflicting ++ # version of antlr in system-wide directories ++ include_directories(src) ++else(BUNDLED_ANTLR) ++ find_package(ANTLR QUIET) ++ set(LIBRARIES ${LIBRARIES} ${ANTLR_LIBRARIES}) ++ include_directories(${ANTLR_INCLUDE_DIR}) ++endif(BUNDLED_ANTLR) + + if(WIN32 AND NOT CYGWIN) + # For Win32 find Pdcureses instead of (N)Curses +diff --git a/CMakeModules/FindANTLR.cmake b/CMakeModules/FindANTLR.cmake +new file mode 100644 +index 0000000..b61cc5b +--- /dev/null ++++ b/CMakeModules/FindANTLR.cmake +@@ -0,0 +1,11 @@ ++ ++ ++find_library(ANTLR_LIBRARIES NAMES antlr) ++find_path(ANTLR_INCLUDE_DIR NAMES antlr/ANTLRUtil.hpp) ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(ANTLR DEFAULT_MSG ANTLR_LIBRARIES ANTLR_INCLUDE_DIR) ++ ++mark_as_advanced( ++ANTLR_LIBRARIES ++ANTLR_INCLUDE_DIR ++) +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 1f7ffec..776a1fd 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -262,9 +262,8 @@ widget.cpp + widget.hpp + ) + +-add_subdirectory(antlr) + +-include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/antlr ${CMAKE_BINARY_DIR}) ++include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}) + link_directories(${LINK_DIRECTORIES}) + + if(PYTHON_MODULE) #libgdl +@@ -275,11 +274,16 @@ else(PYTHON_MODULE) #gdl + add_executable(gdl ${SOURCES}) + endif(PYTHON_MODULE) + +-add_dependencies(gdl antlr) # be sure that antlr is built before gdl +-target_link_libraries(gdl antlr) # link antlr against gdl +-if (MINGW) +-target_link_libraries(gdl ws2_32) +-endif (MINGW) ++if(BUNDLED_ANTLR) ++ add_subdirectory(antlr) ++ include_directories(${CMAKE_SOURCE_DIR}/src/antlr) ++ add_dependencies(gdl antlr) # be sure that antlr is built before gdl ++ target_link_libraries(gdl antlr) # link antlr against gdl ++ if (MINGW) ++ target_link_libraries(gdl ws2_32) ++ endif (MINGW) ++endif(BUNDLED_ANTLR) ++ + target_link_libraries(gdl ${LIBRARIES}) + add_definitions(-DHAVE_CONFIG_H) + diff --git a/dev-lang/gdl/files/0.9.5-png.patch b/dev-lang/gdl/files/0.9.5-png.patch new file mode 100644 index 000000000000..1140fcc9ac75 --- /dev/null +++ b/dev-lang/gdl/files/0.9.5-png.patch @@ -0,0 +1,15 @@ + CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 407e39a..f24a087 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -270,7 +270,6 @@ if(PNGLIB) + set(USE_PNGLIB ${PNG_FOUND}) + if(PNG_FOUND) + set(LIBRARIES ${LIBRARIES} ${PNG_LIBRARIES}) +- set(LINK_DIRECTORIES ${LINK_DIRECTORIES} ${PNG_LIBRARY_DIRS}) + include_directories(${PNG_INCLUDE_DIRS}) + else(PNG_FOUND) + message(FATAL_ERROR "libpng is required but was not found.\n" diff --git a/dev-lang/gdl/files/0.9.5-proj4.patch b/dev-lang/gdl/files/0.9.5-proj4.patch new file mode 100644 index 000000000000..4b2ebcca0a02 --- /dev/null +++ b/dev-lang/gdl/files/0.9.5-proj4.patch @@ -0,0 +1,41 @@ + CMakeLists.txt | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c4b3278..f9ed49d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -637,17 +637,17 @@ if(LIBPROJ4) + if(LIBPROJ4_FOUND) + set(CMAKE_REQUIRED_LIBRARIES ${LIBPROJ4_LIBRARIES} ${GSL_LIBRARIES} m) + +- check_library_exists("${LIBPROJ4_LIBRARIES}" pj_init "" USE_LIBPROJ4_NEW) +- if(USE_LIBPROJ4_NEW) ++ check_library_exists("${LIBPROJ4_LIBRARIES}" pj_init "" USE_LIBPROJ4) ++ if(USE_LIBPROJ4) + # check_library_exists("${LIBPROJ4_LIBRARIES}" proj_init "" USE_LIBPROJ4) + # if(USE_LIBPROJ4) + + # define USE_LIB_PROJ4 in any case + set(USE_LIBPROJ4 1) + +- else(USE_LIBPROJ4_NEW) +- check_library_exists("${LIBPROJ4_LIBRARIES}" proj_init "" USE_LIBPROJ4) +- if(NOT USE_LIBPROJ4) ++ else(USE_LIBPROJ4) ++ check_library_exists("${LIBPROJ4_LIBRARIES}" proj_init "" USE_LIBPROJ4_NEW) ++ if(NOT USE_LIBPROJ4_NEW) + # else(USE_LIBPROJ4) + # check_library_exists("${LIBPROJ4_LIBRARIES}" pj_init "" USE_LIBPROJ4_NEW) + # if(NOT USE_LIBPROJ4_NEW) +@@ -656,8 +656,8 @@ if(LIBPROJ4) + "Use -DLIBPROJ4DIR=DIR to specify the Libproj4 directory tree.\n" + "Use -DLIBPRJ4=OFF to not use it.") + +- endif(NOT USE_LIBPROJ4) +- endif(USE_LIBPROJ4_NEW) ++ endif(NOT USE_LIBPROJ4_NEW) ++ endif(USE_LIBPROJ4) + # endif(NOT USE_LIBPROJ4_NEW) + # endif(USE_LIBPROJ4) + diff --git a/dev-lang/gdl/files/0.9.5-testsuite.patch b/dev-lang/gdl/files/0.9.5-testsuite.patch new file mode 100644 index 000000000000..0ba7083ed818 --- /dev/null +++ b/dev-lang/gdl/files/0.9.5-testsuite.patch @@ -0,0 +1,15 @@ + testsuite/CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/testsuite/CMakeLists.txt b/testsuite/CMakeLists.txt +index 31506e4..287f352 100644 +--- a/testsuite/CMakeLists.txt ++++ b/testsuite/CMakeLists.txt +@@ -47,7 +47,6 @@ file(WRITE ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c "${LAUNCH}") + add_executable(launchtest EXCLUDE_FROM_ALL ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c) + add_library(test_ce SHARED EXCLUDE_FROM_ALL libtest_ce.cpp) + add_custom_target(check COMMAND ${CMAKE_BUILD_TOOL} test DEPENDS launchtest test_ce gdl) +-get_target_property(LAUNCHTESTLOCATION launchtest LOCATION) + execute_process( + COMMAND "fgrep" ".pro" "${BASE_SOURCE}/testsuite/Makefile.am" + COMMAND "awk" "{printf(\"%s;\",$1)}" diff --git a/dev-lang/gdl/gdl-0.9.4.ebuild b/dev-lang/gdl/gdl-0.9.4.ebuild index 7b3f5b4dd342..a4af4471b4c9 100644 --- a/dev-lang/gdl/gdl-0.9.4.ebuild +++ b/dev-lang/gdl/gdl-0.9.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9.4.ebuild,v 1.3 2015/04/08 08:22:09 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9.4.ebuild,v 1.4 2015/05/07 15:33:32 jlec Exp $ EAPI=5 @@ -9,7 +9,7 @@ PYTHON_COMPAT=( python2_7 ) inherit cmake-utils eutils python-r1 wxwidgets toolchain-funcs virtualx -DESCRIPTION="Interactive Data Language compatible incremental compiler" +DESCRIPTION="GNU Data Language" HOMEPAGE="http://gnudatalanguage.sourceforge.net/" SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz" @@ -21,7 +21,7 @@ IUSE="+eigen fftw grib gshhs hdf hdf5 imagemagick netcdf openmp RDEPEND=" sci-libs/gsl:0= - sci-libs/plplot:0= + sci-libs/plplot:0=[-dynamic] sys-libs/ncurses:5= sys-libs/readline:0= sys-libs/zlib:0= @@ -31,13 +31,19 @@ RDEPEND=" gshhs? ( sci-geosciences/gshhs-data sci-geosciences/gshhs:0= ) hdf? ( sci-libs/hdf:0= ) hdf5? ( sci-libs/hdf5:0= ) - imagemagick? ( || ( + imagemagick? ( + || ( media-gfx/graphicsmagick[cxx] - media-gfx/imagemagick[cxx] ) ) + media-gfx/imagemagick[cxx] + ) + ) netcdf? ( sci-libs/netcdf ) proj? ( sci-libs/proj ) postscript? ( dev-libs/pslib ) - python? ( dev-python/numpy[${PYTHON_USEDEP}] ) + python? ( + ${PYTHON_DEPS} + dev-python/numpy[${PYTHON_USEDEP}] + ) udunits? ( sci-libs/udunits ) wxwidgets? ( x11-libs/wxGTK:2.8[X,-odbc] )" @@ -49,14 +55,16 @@ DEPEND="${RDEPEND} REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" PATCHES=( - "${FILESDIR}"/0.9.2-antlr.patch - "${FILESDIR}"/0.9.2-include.patch - "${FILESDIR}"/0.9.2-proj4.patch - "${FILESDIR}"/0.9.2-semaphore.patch - "${FILESDIR}"/0.9.3-plwidth.patch - "${FILESDIR}"/0.9.4-gsl.patch - "${FILESDIR}"/0.9.4-python.patch - "${FILESDIR}"/0.9.4-reorder.patch + "${FILESDIR}"/0.9.2-antlr.patch + "${FILESDIR}"/0.9.2-include.patch + "${FILESDIR}"/0.9.2-proj4.patch + "${FILESDIR}"/0.9.2-semaphore.patch + "${FILESDIR}"/0.9.3-plwidth.patch + "${FILESDIR}"/0.9.4-gsl.patch + "${FILESDIR}"/0.9.4-python.patch + "${FILESDIR}"/0.9.4-reorder.patch + "${FILESDIR}"/0.9.4-plplot.patch + "${FILESDIR}"/0.9.4-python2.patch ) pkg_setup() { @@ -117,7 +125,7 @@ src_configure() { mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=ON ) fi else - mycmakeargs+=( "-DGRAPHICSMAGICK=OFF -DMAGICK=OFF" ) + mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=OFF ) fi configuration() { mycmakeargs+=( $@ ) @@ -141,9 +149,8 @@ src_install() { cmake-utils_src_install if use python; then installation() { - python_export PYTHON_SITEDIR - exeinto "${PYTHON_SITEDIR#${EPREFIX}}" - newexe src/libgdl.so GDL.so + mv src/libgdl.so GDL.so || die + python_domodule GDL.so } python_foreach_impl run_in_build_dir installation dodoc PYTHON.txt diff --git a/dev-lang/gdl/gdl-0.9.5.ebuild b/dev-lang/gdl/gdl-0.9.5.ebuild new file mode 100644 index 000000000000..b3c68c9bb4cc --- /dev/null +++ b/dev-lang/gdl/gdl-0.9.5.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9.5.ebuild,v 1.1 2015/05/07 15:33:32 jlec Exp $ + +EAPI=5 + +WX_GTK_VER="2.8" +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils python-r1 wxwidgets toolchain-funcs virtualx + +DESCRIPTION="GNU Data Language" +HOMEPAGE="http://gnudatalanguage.sourceforge.net/" +SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+eigen fftw grib gshhs hdf hdf5 imagemagick netcdf openmp + png proj postscript python static-libs udunits wxwidgets" + +RDEPEND=" + sci-libs/gsl:0= + sci-libs/plplot:0=[-dynamic] + sys-libs/ncurses:5= + sys-libs/readline:0= + sys-libs/zlib:0= + x11-libs/libX11:0= + fftw? ( sci-libs/fftw:3.0= ) + grib? ( sci-libs/grib_api:0= ) + gshhs? ( sci-geosciences/gshhs-data sci-geosciences/gshhs:0= ) + hdf? ( sci-libs/hdf:0= ) + hdf5? ( sci-libs/hdf5:0= ) + imagemagick? ( + || ( + media-gfx/graphicsmagick[cxx] + media-gfx/imagemagick[cxx] + ) + ) + netcdf? ( sci-libs/netcdf ) + proj? ( sci-libs/proj ) + postscript? ( dev-libs/pslib ) + python? ( + ${PYTHON_DEPS} + dev-python/numpy[${PYTHON_USEDEP}] + ) + udunits? ( sci-libs/udunits ) + wxwidgets? ( x11-libs/wxGTK:2.8[X,-odbc] )" + +DEPEND="${RDEPEND} + >=dev-java/antlr-2.7.7-r5:0[cxx,java,script] + virtual/pkgconfig + eigen? ( dev-cpp/eigen:3 )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +PATCHES=( + "${FILESDIR}"/0.9.5-antlr.patch + "${FILESDIR}"/0.9.2-include.patch + "${FILESDIR}"/0.9.4-plplot.patch + #"${FILESDIR}"/0.9.5-testsuite.patch + "${FILESDIR}"/0.9.5-png.patch +) + +pkg_setup() { + use openmp && [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp && \ + die "You have openmp enabled but your current g++ does not support it" +} + +src_prepare() { + cmake-utils_src_prepare + + use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx + + # make sure antlr includes are from system and rebuild the sources with it + # 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 + local i + for i in *.g; do antlr ${i} || die ; done + popd > /dev/null + + # gentoo: use proj instead of libproj4 (libproj4 last update: 2004) + sed -i \ + -e 's:proj4:proj:' \ + -e 's:lib_proj\.h:proj_api\.h:g' \ + CMakeModules/FindLibproj4.cmake src/math_utl.hpp || die + + # gentoo: avoid install files in datadir directory + sed -i \ + -e '/AUTHORS/d' \ + CMakeLists.txt || die +} + +src_configure() { + # MPI is still very buggy + # x11=off does not compile + local mycmakeargs=( + -DMPICH=OFF + -DBUNDLED_ANTLR=OFF + -DX11=ON + $(cmake-utils_use fftw) + $(cmake-utils_use eigen EIGEN3) + $(cmake-utils_use grib) + $(cmake-utils_use gshhs) + $(cmake-utils_use hdf) + $(cmake-utils_use hdf5) + $(cmake-utils_use netcdf) + $(cmake-utils_use openmp) + $(cmake-utils_use png PNGLIB) + $(cmake-utils_use proj LIBPROJ4) + $(cmake-utils_use postscript PSLIB) + $(cmake-utils_use udunits) + $(cmake-utils_use wxwidgets) + ) + if use imagemagick; then + if has_version media-gfx/graphicsmagick[cxx]; then + mycmakeargs+=( -DGRAPHICSMAGICK=ON -DMAGICK=OFF ) + else + mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=ON ) + fi + else + mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=OFF ) + fi + configuration() { + mycmakeargs+=( $@ ) + cmake-utils_src_configure + } + configuration -DPYTHON_MODULE=OFF -DPYTHON=OFF + use python && python_foreach_impl configuration -DPYTHON_MODULE=ON -DPYTHON=ON +} + +src_compile() { + cmake-utils_src_compile + use python && python_foreach_impl cmake-utils_src_make +} + +src_test() { + # there is check target instead of the ctest to define some LDPATH + Xemake -C "${BUILD_DIR}" check +} + +src_install() { + cmake-utils_src_install + if use python; then + installation() { + mv src/libgdl.so GDL.so || die + python_domodule GDL.so + } + python_foreach_impl run_in_build_dir installation + dodoc PYTHON.txt + fi + + echo "GDL_PATH=\"+${EROOT%/}/usr/share/gnudatalanguage\"" > 50gdl + doenvd 50gdl +} diff --git a/dev-lang/gdl/metadata.xml b/dev-lang/gdl/metadata.xml index fc025047c585..81b730a5dd40 100644 --- a/dev-lang/gdl/metadata.xml +++ b/dev-lang/gdl/metadata.xml @@ -1,19 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>sci</herd> -<longdescription lang="en"> + <herd>sci</herd> + <longdescription lang="en"> A free IDL (Interactive Data Language) compatible incremental compiler (ie. runs IDL programs). IDL is a registered trademark of ITT Visual Information Solutions. </longdescription> -<use> - <flag name='eigen'>Build matrix manipulation with <pkg>dev-cpp/eigen</pkg></flag> - <flag name='hdf'>Add support for the Hierarchical Data Format v.4</flag> - <flag name='gshhs'>Add support for projection adn continent maps with <pkg>sci-geosciences/gshhs-data</pkg></flag> - - <flag name='grib'>Add support for the meteorological GRIB format with <pkg>sci-libs/grib_api</pkg></flag> - <flag name="proj">Add support for <pkg>sci-libs/proj</pkg> (geographic projections)</flag> - <flag name='udunits'>Add support for manipulating units of physical quantities</flag> -</use> + <use> + <flag name="eigen">Build matrix manipulation with <pkg>dev-cpp/eigen</pkg></flag> + <flag name="hdf">Add support for the Hierarchical Data Format v.4</flag> + <flag name="gshhs">Add support for projection adn continent maps with <pkg>sci-geosciences/gshhs-data</pkg></flag> + <flag name="grib">Add support for the meteorological GRIB format with <pkg>sci-libs/grib_api</pkg></flag> + <flag name="proj">Add support for <pkg>sci-libs/proj</pkg> (geographic projections)</flag> + <flag name="udunits">Add support for manipulating units of physical quantities</flag> + </use> </pkgmetadata> |