diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/mathgl |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/mathgl')
-rw-r--r-- | sci-libs/mathgl/Manifest | 6 | ||||
-rw-r--r-- | sci-libs/mathgl/mathgl-2.3.4.ebuild | 171 | ||||
-rw-r--r-- | sci-libs/mathgl/metadata.xml | 25 |
3 files changed, 202 insertions, 0 deletions
diff --git a/sci-libs/mathgl/Manifest b/sci-libs/mathgl/Manifest new file mode 100644 index 000000000000..ed1b325d77cf --- /dev/null +++ b/sci-libs/mathgl/Manifest @@ -0,0 +1,6 @@ +DIST STIX_font.tgz 2450541 SHA256 6408290fd4a5267637a88507344a8f07b908ce72f46ef93d09e068fedb67e8fe SHA512 c9124ec552074c98f15d6d3572a063598ca6bc598e3e78dcb5a5d57ae3928b5327a1374635f428ea1cefc9e51ee1d1aa9bd6ba9a306429fc6965140251d368b5 WHIRLPOOL 912a280ad550040c961a84fe48cfa2bd9bbcbad6c539b6126b4cbb5f9673ddd4ad5cc9e0d053fcb20cc6c12e1203aeaa3a05cf07360b16e2e7cbb13c0c42cc1e +DIST mathgl-2.3.4.tar.gz 21361705 SHA256 6e93cd9f640c5b6c9dac4ca56854612d4261b4eadd6c8aad6536965195f08c02 SHA512 2ddc45750ae2373c26e199f43b7f9546e0d4540c7b11a1e6280c83632face42f50bcb8276c60b0c2208ca0b6a7506e3fc0d195a8c1aa9e774ba812643b81336d WHIRLPOOL cc7043ec2f6a84999de65ad3a5127564da3563644456d08c280d7f462dedf86e7cd5f28996f43e32300aa30adb730904c6cf6cb8f8e2c434402395af37f3ddc7 +EBUILD mathgl-2.3.4.ebuild 4500 SHA256 a2149155f44811d8b3b5705a2f0dff5b7d7f7a661feb1946fbe127fc1636a26e SHA512 e2b85b2e2680c9f2f57a371ab16b60ad22f153c69ba38cdb733c5f69f5ad2fe988800a21e108b49200ac607ba4402e1a38972314caf9fd2ec2de1562c1c8b93d WHIRLPOOL 01c72d3ef8d4104a4fe17376fa109c2309ef93d2cdb3ae053b783461d5c5732ce08af6ca6b812c7b66e15c08eb943162d01c6f13acc2d95d6a8b44fc468ea6eb +MISC ChangeLog 3724 SHA256 d8d15a51c02c59e29ca72b40692a7300420355b2cc43cf2d2be75cb9abd8ea20 SHA512 f5ca1d6d6b5b28d09bf8e0ce78ea9066a0ff4d01a6542621f760930c6851dee520b979ab097b4b583c2222fb99a4b1a19cc5468fcc807c9f87b12ba536cbbf40 WHIRLPOOL fad4bc92bf9ae2bcdc6abefe6153c742c5ae7bbcee2282d0fdc5d17bea930b899bab9304fc2184b8c8bc4a22c425261c5519cd9d73f39667db3796f70ecb65ba +MISC ChangeLog-2015 8347 SHA256 bd3f680544cf9fe5ffbf7c2f069c1441b380d5b226f3842f118c26fdd6b99676 SHA512 05dd03766a6353e086f8d104d98a943d85865025d485be2ce417cd2403efc5a5ba54398475a96a3b0dbb17f86ca17acca82b1d6a9ef5d1afcf16adc85fa5cd82 WHIRLPOOL c88b505e82349536540945e4e83c116458b51e2e485672b70d737d7ce9a8bce4e22c0f5ff4a00f0f608b0385ff1d0f1c0846b1ea46f675069c732f3c861888aa +MISC metadata.xml 913 SHA256 f5a8735160892a9b0d2254a24159dbefea6c37271bc1222e130b44f67b38a997 SHA512 22e4c571f664b538484deabe76cc8182dd624251fe5ead2a0c85c789710a41fb64092fc19e76de7b4aac1fce8c67b9d4c1819e392702fc9dbcad4a98fdfef93f WHIRLPOOL c86c06c45efec819be5368c1203fabe0353d05c04004b92af4be7d3e645ceedd7d9a850c6144f7c794a846b672a90c7f59aaa77b637ad64c31c49729d3cfa799 diff --git a/sci-libs/mathgl/mathgl-2.3.4.ebuild b/sci-libs/mathgl/mathgl-2.3.4.ebuild new file mode 100644 index 000000000000..aaacf6c2285e --- /dev/null +++ b/sci-libs/mathgl/mathgl-2.3.4.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +WX_GTK_VER=3.0 + +inherit cmake-utils eutils python-single-r1 wxwidgets multilib flag-o-matic + +DESCRIPTION="Math Graphics Library" +HOMEPAGE="http://mathgl.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz mirror://sourceforge/${PN}/STIX_font.tgz" + +LICENSE="LGPL-3" +SLOT="0/7.4.1" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc fltk gif glut gsl hdf hdf5 jpeg lua mpi octave opengl openmp pdf + png python qt4 qt5 static-libs threads wxwidgets zlib" + +LANGS="ru" +for l in ${LANGS}; do + IUSE+=" linguas_${l}" +done +unset l + +RDEPEND=" + !sci-visualization/udav + virtual/opengl + fltk? ( x11-libs/fltk:1 ) + gif? ( media-libs/giflib ) + glut? ( media-libs/freeglut ) + gsl? ( >=sci-libs/gsl-2 ) + hdf? ( sci-libs/hdf ) + hdf5? ( >=sci-libs/hdf5-1.8[mpi=] ) + jpeg? ( virtual/jpeg:0 ) + lua? ( >=dev-lang/lua-5.1:0 ) + octave? ( >=sci-mathematics/octave-3.4.0 ) + openmp? ( sys-cluster/openmpi ) + pdf? ( media-libs/libharu ) + png? ( media-libs/libpng:0 ) + python? ( dev-python/numpy[${PYTHON_USEDEP}] ${PYTHON_DEPS} ) + qt4? ( dev-qt/qtgui:4 ) + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) + zlib? ( sys-libs/zlib )" + +DEPEND="${RDEPEND} + doc? ( app-text/texi2html virtual/texi2dvi ) + octave? ( dev-lang/swig ) + python? ( dev-lang/swig )" + +REQUIRED_USE=" + mpi? ( hdf5 ) + openmp? ( !threads ) + png? ( zlib ) + pdf? ( png ) + python? ( ${PYTHON_REQUIRED_USE} )" + +pkg_setup() { + use mpi && export CC=mpicc CXX=mpicxx + use python && python-single-r1_pkg_setup +} + +src_unpack() { + default + if ! [[ -d "${S}"/fonts ]]; then + mkdir "${S}"/fonts || die + fi + cd "${S}"/fonts || die + unpack STIX_font.tgz +} + +src_prepare() { + default + + # fix for location of hdf headers + sed -i -e 's:hdf/::g' src/data_io.cpp || die + # bored of reporting bad libdir upstream + sed -i \ + -e '/DESTINATION/s:lib$:lib${LIB_SUFFIX}:g' \ + {src,widgets}/CMakeLists.txt || die + echo "" > lang/install.m || die + # fix desktop file + sed -i -e 's/.png//' udav/udav.desktop || die + # prevent sandbox violation + sed -i -e 's/update-mime-database/true/' udav/CMakeLists.txt || die + sed -i -e 's/update-desktop-database/true/' udav/CMakeLists.txt || die + # fix missing include, bug 564204 + sed \ + -e '/#include <QStringList>/i #include <QObject>' \ + -i json/Backend.hpp || die + + use python && \ + append-cppflags \ + -I"$(${EPYTHON} -c 'import numpy; print(numpy.get_include())')" + use wxwidgets && need-wxwidgets unicode +} + +src_configure() { + local mycmakeargs=( + # No clue about this option: + # option(enable-mgl2 "Use names 'libmgl2-*' instead of 'libmgl-*'") + -DHDF4_INCLUDE_DIR="${EPREFIX}/usr/include" + -DMGL_LIB_INSTALL_DIR="$(get_libdir)" + $(cmake-utils_use doc enable-all-docs) + $(cmake-utils_use fltk enable-fltk) + $(cmake-utils_use gif enable-gif) + $(cmake-utils_use glut enable-glut) + $(cmake-utils_use gsl enable-gsl) + $(cmake-utils_use hdf enable-hdf4) + $(cmake-utils_use hdf5 enable-hdf5_18) + $(cmake-utils_use jpeg enable-jpeg) + $(cmake-utils_use lua enable-lua) + $(cmake-utils_use mpi enable-mpi) + $(cmake-utils_use octave enable-octave) + $(cmake-utils_use opengl enable-opengl) + $(cmake-utils_use openmp enable-openmp) + $(cmake-utils_use pdf enable-pdf) + $(cmake-utils_use png enable-png) + $(cmake-utils_use qt4 enable-qt4) + $(cmake-utils_use qt5 enable-qt5) + $(cmake-utils_use threads enable-pthread) + $(cmake-utils_use threads enable-pthr-widget) + $(cmake-utils_use python enable-python) + $(cmake-utils_use wxwidgets enable-wx) + $(cmake-utils_use zlib enable-zlib) + ) + cmake-utils_src_configure + # to whoever cares: TODO: do for multiple python ABI + if use python; then + sed -i \ + -e "s:--prefix=\(.*\) :--prefix=\$ENV{DESTDIR}\1 :" \ + "${CMAKE_BUILD_DIR}"/lang/cmake_install.cmake || die + fi +} + +src_install() { + cmake-utils_src_install + dodoc README* *.txt AUTHORS + if ! use static-libs; then + rm "${ED}"/usr/$(get_libdir)/*.a || die + fi + if use qt4 ; then + local lang + insinto /usr/share/udav + for lang in ${LANGS} ; do + use linguas_${lang} && doins udav/udav_${lang}.qm + done + fi + if use octave ; then + insinto /usr/share/${PN}/octave + doins "${CMAKE_BUILD_DIR}"/lang/${PN}.tar.gz + fi + use python && python_optimize +} + +pkg_postinst() { + if use octave; then + octave <<-EOF + pkg install ${EROOT}/usr/share/${PN}/octave/${PN}.tar.gz + EOF + fi +} + +pkg_prerm() { + if use octave; then + octave <<-EOF + pkg uninstall ${PN} + EOF + fi +} diff --git a/sci-libs/mathgl/metadata.xml b/sci-libs/mathgl/metadata.xml new file mode 100644 index 000000000000..2ca4b1ae580f --- /dev/null +++ b/sci-libs/mathgl/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>grozin@gentoo.org</email> + <name>Andrey Grozin</name> + </maintainer> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription> + MathGL is a library for: + * making high-quality scientific graphics + * the fast data plotting and data processing of large data arrays + * working in window and console modes and for easy embedding into other programs +</longdescription> + <use> + <flag name="hdf">Add support for the Hierarchical Data Format v.4 <pkg>sci-libs/hdf</pkg></flag> + <flag name="octave">Add bindings for <pkg>sci-mathematics/octave</pkg></flag> + </use> + <upstream> + <remote-id type="sourceforge">mathgl</remote-id> + </upstream> +</pkgmetadata> |