diff options
author | Pacho Ramos <pacho@gentoo.org> | 2016-11-25 19:50:54 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2016-11-25 19:56:31 +0100 |
commit | 6c4ffe5d0a8f296ab5cba6754d5e6a2c39ab55e7 (patch) | |
tree | 6c8754691315d96b537d7687d2ea56509d4ba2c0 /sci-libs/mathgl | |
parent | sci-biology/treeviewx: Drop old (diff) | |
download | gentoo-6c4ffe5d0a8f296ab5cba6754d5e6a2c39ab55e7.tar.gz gentoo-6c4ffe5d0a8f296ab5cba6754d5e6a2c39ab55e7.tar.bz2 gentoo-6c4ffe5d0a8f296ab5cba6754d5e6a2c39ab55e7.zip |
sci-libs/mathgl: Drop old
Package-Manager: portage-2.3.2
Diffstat (limited to 'sci-libs/mathgl')
-rw-r--r-- | sci-libs/mathgl/Manifest | 3 | ||||
-rw-r--r-- | sci-libs/mathgl/files/mathgl-2.1.3.1-x11.patch | 65 | ||||
-rw-r--r-- | sci-libs/mathgl/files/mathgl-2.3.3-gsl-2.patch | 25 | ||||
-rw-r--r-- | sci-libs/mathgl/mathgl-2.1.3.1.ebuild | 149 | ||||
-rw-r--r-- | sci-libs/mathgl/mathgl-2.1.3.ebuild | 147 | ||||
-rw-r--r-- | sci-libs/mathgl/mathgl-2.3.3-r1.ebuild | 174 | ||||
-rw-r--r-- | sci-libs/mathgl/mathgl-2.3.3.ebuild | 160 |
7 files changed, 0 insertions, 723 deletions
diff --git a/sci-libs/mathgl/Manifest b/sci-libs/mathgl/Manifest index f865dc10c090..c015411b460e 100644 --- a/sci-libs/mathgl/Manifest +++ b/sci-libs/mathgl/Manifest @@ -1,5 +1,2 @@ DIST STIX_font.tgz 2450541 SHA256 6408290fd4a5267637a88507344a8f07b908ce72f46ef93d09e068fedb67e8fe SHA512 c9124ec552074c98f15d6d3572a063598ca6bc598e3e78dcb5a5d57ae3928b5327a1374635f428ea1cefc9e51ee1d1aa9bd6ba9a306429fc6965140251d368b5 WHIRLPOOL 912a280ad550040c961a84fe48cfa2bd9bbcbad6c539b6126b4cbb5f9673ddd4ad5cc9e0d053fcb20cc6c12e1203aeaa3a05cf07360b16e2e7cbb13c0c42cc1e -DIST mathgl-2.1.3.1.tar.gz 5269355 SHA256 a8cb5a156b6d2828105c14c8996023df34d69c202d461a4dca1f38836d966caa SHA512 c38a4c8286f456f37b3cb928d0c6842829e24727ddc373ebce37843a2c946c2f5efbec801ed1ef46c96176bf26350a24bfbaef2e6970e75728b67c77245e5bfc WHIRLPOOL 3d4d7886e98306e0b466c3cf4f5887a5e76172627679350cee108a4fd51642384faa2c14a6375d8ebd427938f5dff3665877a8afaa09439668dd3a98686970b6 -DIST mathgl-2.1.3.tar.gz 5269347 SHA256 b091f1b91927d2b649b06785b737b0606a2d9c6b09f7ddb5a70b981c8c0af31b SHA512 aeac7a7da6846e5d4dd8a8b829bfcff359581ad1bb11c15f24824bb0ecbd9b042aab34d1ffead64a53c0ef15194a9c29d161456f7418ab18e1003d1fe2f37e73 WHIRLPOOL 9318207b12319399fb845195e96b0cf79353f1a5f9195543889b26522e56a57a7fa653e421a8591691264d9c49f78d50f684f74088e4f19eb698c91389a8b117 -DIST mathgl-2.3.3.tar.gz 20888708 SHA256 324fb8155223251f28afd3c7074d6930f09bb7a60c122c3e06af228a448d4fc9 SHA512 8cc08d547004fdeb8e049cd0e5dbdc40dc97e2178fc96c45caf26e4a5c86eb0059c80a14c0b4c079235602cebb2f8bb79640e8b075b6b262b993f28f775997d2 WHIRLPOOL e6bb68538188e440b6f64770b6d61e579a8050201b3e2bd627e6bbf190d9b962792f5469f1a2070e389289ce0367b0b458b6b0ddbde9a7479b1a03c59ffab942 DIST mathgl-2.3.4.tar.gz 21361705 SHA256 6e93cd9f640c5b6c9dac4ca56854612d4261b4eadd6c8aad6536965195f08c02 SHA512 2ddc45750ae2373c26e199f43b7f9546e0d4540c7b11a1e6280c83632face42f50bcb8276c60b0c2208ca0b6a7506e3fc0d195a8c1aa9e774ba812643b81336d WHIRLPOOL cc7043ec2f6a84999de65ad3a5127564da3563644456d08c280d7f462dedf86e7cd5f28996f43e32300aa30adb730904c6cf6cb8f8e2c434402395af37f3ddc7 diff --git a/sci-libs/mathgl/files/mathgl-2.1.3.1-x11.patch b/sci-libs/mathgl/files/mathgl-2.1.3.1-x11.patch deleted file mode 100644 index cff27870d365..000000000000 --- a/sci-libs/mathgl/files/mathgl-2.1.3.1-x11.patch +++ /dev/null @@ -1,65 +0,0 @@ - CMakeLists.txt | 1 + - json/CMakeLists.txt | 2 +- - udav/CMakeLists.txt | 2 +- - widgets/CMakeLists.txt | 4 ++-- - 4 files changed, 5 insertions(+), 4 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 3364973..0c3a645 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -316,6 +316,7 @@ endif(enable-wx) - if(enable-qt) - set(MGL_HAVE_QT 1) - FIND_PACKAGE(Qt4 4.8 REQUIRED QtCore QtGui QtNetwork QtWebKit) -+ FIND_PACKAGE(X11) - if(NOT QT4_FOUND) - message(SEND_ERROR "Couldn't find Qt4 library.") - endif(NOT QT4_FOUND) -diff --git a/json/CMakeLists.txt b/json/CMakeLists.txt -index 79d4716..0a53874 100644 ---- a/json/CMakeLists.txt -+++ b/json/CMakeLists.txt -@@ -9,6 +9,6 @@ include_directories(${MathGL_BINARY_DIR}/json) - qt4_wrap_ui(json_ui_src MainWindow.ui) - qt4_wrap_cpp(json_moc_src ${json_moc_hdr} ) - add_executable(MglForJsTestBench ${json_src} ${json_moc_src} ${json_ui_src}) --target_link_libraries(MglForJsTestBench mgl-qt ${QT_LIBRARIES}) -+target_link_libraries(MglForJsTestBench mgl-qt ${QT_LIBRARIES} ${X11_LIBRARIES}) - - endif(MGL_HAVE_QT) -diff --git a/udav/CMakeLists.txt b/udav/CMakeLists.txt -index 9a9c574..a1ff2df 100644 ---- a/udav/CMakeLists.txt -+++ b/udav/CMakeLists.txt -@@ -27,7 +27,7 @@ qt4_add_resources(udav_rc_src ${udav_rc} ) - qt4_wrap_cpp(udav_moc_src ${udav_moc_hdr} ) - add_executable(udav ${udav_src} ${udav_moc_src} ${udav_rc_src}) - #set_target_properties(udav PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -pthread") --target_link_libraries(udav mgl-qt ${QT_LIBRARIES}) -+target_link_libraries(udav mgl-qt ${QT_LIBRARIES} ${X11_LIBRARIES}) - - if(MGL_HAVE_PTHREAD) - target_link_libraries(udav ${CMAKE_THREAD_LIBS_INIT}) -diff --git a/widgets/CMakeLists.txt b/widgets/CMakeLists.txt -index 90ea00c..f582003 100644 ---- a/widgets/CMakeLists.txt -+++ b/widgets/CMakeLists.txt -@@ -93,7 +93,7 @@ if(MGL_HAVE_QT) - set_target_properties(mgl-qt-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) - set_target_properties(mgl-qt-static PROPERTIES COMPILE_FLAGS -DMGL_STATIC_DEFINE) - target_link_libraries(mgl-qt mgl) -- target_link_libraries(mgl-qt ${QT_LIBRARIES}) -+ target_link_libraries(mgl-qt ${QT_LIBRARIES} ${X11_LIBRARIES}) - - if(enable-mgl2) - set_target_properties(mgl-qt PROPERTIES OUTPUT_NAME "mgl2-qt") -@@ -137,7 +137,7 @@ if(MGL_HAVE_QT AND MGL_HAVE_FLTK) - endif(enable-mgl2) - - target_link_libraries(mgl-wnd mgl) -- target_link_libraries(mgl-wnd ${QT_LIBRARIES}) -+ target_link_libraries(mgl-wnd ${QT_LIBRARIES} ${X11_LIBRARIES}) - # target_link_libraries(mgl-wnd ${wxWidgets_LIBRARIES}) - target_link_libraries(mgl-wnd ${FLTK_LIBRARIES}) - diff --git a/sci-libs/mathgl/files/mathgl-2.3.3-gsl-2.patch b/sci-libs/mathgl/files/mathgl-2.3.3-gsl-2.patch deleted file mode 100644 index 6254321c59a2..000000000000 --- a/sci-libs/mathgl/files/mathgl-2.3.3-gsl-2.patch +++ /dev/null @@ -1,25 +0,0 @@ - src/fit.cpp | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/src/fit.cpp b/src/fit.cpp -index 6a42a4b..d167022 100644 ---- a/src/fit.cpp -+++ b/src/fit.cpp -@@ -179,6 +179,7 @@ mreal MGL_NO_EXPORT mgl_fit_base(mglFitData &fd, mreal *ini) - const gsl_multifit_fdfsolver_type *T = gsl_multifit_fdfsolver_lmsder;
- gsl_multifit_fdfsolver *s = gsl_multifit_fdfsolver_alloc(T, n, m);
- gsl_multifit_function_fdf f;
-+ gsl_matrix *J;
- f.f = mgl_fit__f; f.df = mgl_fit__df;
- f.fdf = mgl_fit__fdf; f.n = n; f.p = m;
- f.params = &fd;
-@@ -193,7 +194,8 @@ mreal MGL_NO_EXPORT mgl_fit_base(mglFitData &fd, mreal *ini) - }
- while ( status == GSL_CONTINUE && iter < 500 );
- gsl_matrix *covar = gsl_matrix_alloc(m, m);
-- gsl_multifit_covar (s->J, 0.0, covar );
-+ gsl_multifit_fdfsolver_jac (s, J);
-+ gsl_multifit_covar (J, 0.0, covar);
- mglFitCovar.Set(covar);
- mreal res = gsl_blas_dnrm2(s->f);
- for(i=0;i<m;i++) ini[i] = gsl_vector_get(s->x, i);
diff --git a/sci-libs/mathgl/mathgl-2.1.3.1.ebuild b/sci-libs/mathgl/mathgl-2.1.3.1.ebuild deleted file mode 100644 index 7b5085944d23..000000000000 --- a/sci-libs/mathgl/mathgl-2.1.3.1.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) -WX_GTK_VER=2.8 - -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" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc fltk gif glut gsl hdf hdf5 jpeg mpi octave opengl pdf - png python qt4 static-libs threads wxwidgets zlib" - -LANGS="ru" -for l in ${LANGS}; do - IUSE+=" linguas_${l}" -done - -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 ) - octave? ( >=sci-mathematics/octave-3.4.0 ) - 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:2.8[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 ) - 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() { - unpack ${A} - [[ -d "${S}"/fonts ]] || mkdir "${S}"/fonts - cd "${S}"/fonts || die - unpack STIX_font.tgz -} - -src_prepare() { - # 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 - use python && append-cppflags -I"$(${EPYTHON} -c 'import numpy; print(numpy.get_include())')" - - epatch "${FILESDIR}"/${P}-x11.patch -} - -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-doc) - $(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 mpi enable-mpi) - $(cmake-utils_use octave enable-octave) - $(cmake-utils_use opengl enable-opengl) - $(cmake-utils_use pdf enable-pdf) - $(cmake-utils_use png enable-png) - $(cmake-utils_use qt4 enable-qt) - $(cmake-utils_use threads enable-pthread) - $(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 - use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a - 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/mathgl-2.1.3.ebuild b/sci-libs/mathgl/mathgl-2.1.3.ebuild deleted file mode 100644 index ce36b9d6961f..000000000000 --- a/sci-libs/mathgl/mathgl-2.1.3.ebuild +++ /dev/null @@ -1,147 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) -WX_GTK_VER=2.8 - -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" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc fltk gif glut gsl hdf hdf5 jpeg mpi octave opengl pdf - png python qt4 static-libs threads wxwidgets zlib" - -LANGS="ru" -for l in ${LANGS}; do - IUSE+=" linguas_${l}" -done - -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 ) - octave? ( >=sci-mathematics/octave-3.4.0 ) - 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:2.8[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 ) - 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() { - unpack ${A} - [[ -d "${S}"/fonts ]] || mkdir "${S}"/fonts - cd "${S}"/fonts || die - unpack STIX_font.tgz -} - -src_prepare() { - # 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 - use python && append-cppflags -I"$(${EPYTHON} -c 'import numpy; print(numpy.get_include())')" -} - -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-doc) - $(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 mpi enable-mpi) - $(cmake-utils_use octave enable-octave) - $(cmake-utils_use opengl enable-opengl) - $(cmake-utils_use pdf enable-pdf) - $(cmake-utils_use png enable-png) - $(cmake-utils_use qt4 enable-qt) - $(cmake-utils_use threads enable-pthread) - $(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 - use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a - 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/mathgl-2.3.3-r1.ebuild b/sci-libs/mathgl/mathgl-2.3.3-r1.ebuild deleted file mode 100644 index 7b3109feef1b..000000000000 --- a/sci-libs/mathgl/mathgl-2.3.3-r1.ebuild +++ /dev/null @@ -1,174 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -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" -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 - -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} )" - -PATCHES=( - "${FILESDIR}"/${P}-gsl-2.patch -) - -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 - epatch "${PATCHES[@]}" - # 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 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/mathgl-2.3.3.ebuild b/sci-libs/mathgl/mathgl-2.3.3.ebuild deleted file mode 100644 index 69f6c1f674c5..000000000000 --- a/sci-libs/mathgl/mathgl-2.3.3.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -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" -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 - -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() { - unpack ${A} - [[ -d "${S}"/fonts ]] || mkdir "${S}"/fonts - cd "${S}"/fonts || die - unpack STIX_font.tgz -} - -src_prepare() { - # 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 -i -e '/#include <QStringList>/i #include <QObject>' 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 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 - use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a - 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 -} |