diff options
-rw-r--r-- | sci-libs/mathgl/ChangeLog | 9 | ||||
-rw-r--r-- | sci-libs/mathgl/Manifest | 28 | ||||
-rw-r--r-- | sci-libs/mathgl/mathgl-2.1.2.ebuild | 9 | ||||
-rw-r--r-- | sci-libs/mathgl/mathgl-2.1.3.ebuild | 148 | ||||
-rw-r--r-- | sci-libs/mathgl/metadata.xml | 22 |
5 files changed, 191 insertions, 25 deletions
diff --git a/sci-libs/mathgl/ChangeLog b/sci-libs/mathgl/ChangeLog index c5fa59f2160b..b4f23f74ca26 100644 --- a/sci-libs/mathgl/ChangeLog +++ b/sci-libs/mathgl/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-libs/mathgl # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.37 2013/06/07 22:53:05 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.38 2013/10/15 15:00:27 jlec Exp $ + +*mathgl-2.1.3 (15 Oct 2013) + + 15 Oct 2013; Justin Lecher <jlec@gentoo.org> mathgl-2.1.2.ebuild, + +mathgl-2.1.3.ebuild, metadata.xml: + Version BUmp; Bump to python r1 eclasses; fix numpy header path issues, + #469420 07 Jun 2013; SĂ©bastien Fabbro <bicatali@gentoo.org> -mathgl-1.11.2.ebuild: Removed old diff --git a/sci-libs/mathgl/Manifest b/sci-libs/mathgl/Manifest index 04c592ad6af1..d47bca23d9f8 100644 --- a/sci-libs/mathgl/Manifest +++ b/sci-libs/mathgl/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA512 AUX mathgl-1.10.2-gcc43.patch 345 SHA256 2165125d4677b882548530dc21a0368bf7ed27cab516ee6f78604f98b3b60ac9 SHA512 d6f22d026953a7fcdba17aae6e7a357ccbc48663cc96b4d3281648cd726049085085bc524fd5dc5b7855e2b76ae1a83afbfe010408083ecfd7eb21808f27bcd3 WHIRLPOOL d4c290edb3075239e64b699c3137f0f76f71ca9d05abeffe5fc545523d8de59989d3c08e328c14a47385fa72e3a5ae08e51a35e1d98d19f86a9512754898c4f8 AUX mathgl-1.11.2-cast.patch 8224 SHA256 8993235430372e9eda84eba5b5af3ac63aba386b830d13fdf249d580fcf17430 SHA512 7ab32d224a4197fd27608727fbf89afb03b7033fa004d11b12ac589b33de000b271cc2140644001dfd9d68af07ff9cdd718ae24507ca7392da5748f10cc03d76 WHIRLPOOL 1f98cfeab0a66d20dd26fc01db618ce4687f9d1d8a22b2844b2a38d9fabddfd24eff851cb78ad9c4eac1d86b24c8a27cf703c64af02901dae0f79a80323eaf5a @@ -9,14 +9,26 @@ AUX mathgl-octave-3.4.patch 396 SHA256 a6262a8e67a280cc19b8a0ab501c17400d46a91e0 DIST STIX_font.tgz 2450541 SHA256 6408290fd4a5267637a88507344a8f07b908ce72f46ef93d09e068fedb67e8fe SHA512 c9124ec552074c98f15d6d3572a063598ca6bc598e3e78dcb5a5d57ae3928b5327a1374635f428ea1cefc9e51ee1d1aa9bd6ba9a306429fc6965140251d368b5 WHIRLPOOL 912a280ad550040c961a84fe48cfa2bd9bbcbad6c539b6126b4cbb5f9673ddd4ad5cc9e0d053fcb20cc6c12e1203aeaa3a05cf07360b16e2e7cbb13c0c42cc1e DIST mathgl-2.0.3.tar.gz 4024665 SHA256 f2b7d6a0106d854e78bf6933596a04f09bc011eae50466cafcd0b979981ccb7a SHA512 6c47e985d0fefb635b5453b9d21ed2a77675edffbfe70738cf475d5c99c0f96c8c8515263ed20ba323a1ee24c30ae02317a66313e78c78d30414c597354528f7 WHIRLPOOL 26bf5e3301dc66974dfc14021cc41b4117b20b6c7e00f181af4bfc46bc85b46a4c347fef55975489151fb2817469707547965cecdfa8fc8885fdf8dd0cededc2 DIST mathgl-2.1.2.tar.gz 5173804 SHA256 161c013ea2767b28fc887ee7a0aa875029666f8d88bea60f761b87083b0d18ec SHA512 d0f7605af31a7e0330b25f64619b724c87a429c60d1fb34129a749570c2a77b15214d9c74b652484f6b36a25e94b779c8e5a630d8bcdbd49075faca4ba04dd3b WHIRLPOOL 12fec240a1e11a33126c40967679f8f8908162591d1bff10c4577a12c46cf26c76125f34f4bcc84d1666db7bd741793f2c7f1b011cf96ecb608bf18a37af37c3 +DIST mathgl-2.1.3.tar.gz 5269347 SHA256 b091f1b91927d2b649b06785b737b0606a2d9c6b09f7ddb5a70b981c8c0af31b SHA512 aeac7a7da6846e5d4dd8a8b829bfcff359581ad1bb11c15f24824bb0ecbd9b042aab34d1ffead64a53c0ef15194a9c29d161456f7418ab18e1003d1fe2f37e73 WHIRLPOOL 9318207b12319399fb845195e96b0cf79353f1a5f9195543889b26522e56a57a7fa653e421a8591691264d9c49f78d50f684f74088e4f19eb698c91389a8b117 EBUILD mathgl-2.0.3.ebuild 3863 SHA256 55286f4ad3e30d38fbe26420b2fee4ff03e74088f1ced5220603df82283a0b40 SHA512 0f54083956545af8672ec26bbd478110e9ca2ac049145dc284e53f21ad4c6e8dca9cc3bdae317805312e37807ed00e999317a097b634cd6d30bd227b41c94c6f WHIRLPOOL 695cfc4aba78b1d385a299c061ee7fecc0c5cea970c1732d528923d39aaebc7838495d71b15120ec1a430e7bab124a816a65f63ce2667ba197d03b5a5cdadae8 -EBUILD mathgl-2.1.2.ebuild 3808 SHA256 aead17c13e10ef1e9e59c00fca165bb13f02e38c6118293864c4b5c0d59fa3f8 SHA512 5fc652f05195d5ec0e97ac11afdf32529a21606cb71472d4f109472dd04efc96dd8a9b1fe1d8ed28275b54be8eb3c8e1a23e7d1812e19ffdf98205c94af17aac WHIRLPOOL 84427079b1006c1db497d3b1148e3cf66b8a671fe19408174df1ab695e78361ff105b0d36e9d155b65e524bf9ebe94f439f33a9441c31ad2b876701282619b5c -MISC ChangeLog 7200 SHA256 f168eda7ef5835ad092b29c7c3ac3a87d79b647decc45928ce7238872c5b5b84 SHA512 983e5a744b02fce44a08cc5fc5da10ada6131f9b9f581bc813d9fbaa5acc16acf08b28c976810d40bff8d0f73bbf9cdd70b63c6f4bfe11ae1953e5ba3e03ab29 WHIRLPOOL da599944223700de337d27445ad3ebb4f0bb7c86464531ed1c037cc1b25ff856ca16c1196980a9f40adfa84e74cddc45c198ed3cc6dd2e03e010bbe0ff300f96 -MISC metadata.xml 773 SHA256 7fc0d1c5f8b19e5ad28866f385039d95be8685c41d1628b7c9c450b6d5f5f4f3 SHA512 7fb6759ad0746073efcaea969e47049160ecd9fbd4c9d8f9d6c0e1d933d6335dd8d840edbe02cabec607091f725f8e0e1a7d01ec80969b43aab66282d65c8f64 WHIRLPOOL e788345f073dcbee2f43f496a5d69b6868d288473fe56f37b3f0666c94b5decef14738a8139c8a00532dc350ca974ef3c3f2c9e572e86a4674e26f82e20f3240 +EBUILD mathgl-2.1.2.ebuild 3801 SHA256 0996ef169adee9b07574493fe89aaae7275c40dc7c3390e516ecac5c40c0edf7 SHA512 2e7e3b4508800bb2dca9ad3c64f1a73edc1ceda3d79497355a0aef795a7e4274efc8536d93475f92f247de77f09a7b5bdfe57ee02bd1d3b54ef49f54b50a6bd5 WHIRLPOOL a4cc384f55485039ebb1092758160b1d38dd08535c4356c5f2aed42333b2d0426838b07af03dc3cc8e999a7002e61a41d577d475b858651e779e8a23cc38ce6d +EBUILD mathgl-2.1.3.ebuild 3955 SHA256 42625824f3ef0e9f0860522a862d185681209192cb43f659854188eb7e706b6b SHA512 00aed821a1ba74747ffbd4583d4d9932d8a163e83d63bdeb22eb52dd69d8f08f485fece9d62681589314fbf466ee44e4f8e0b088c6476fe9ef903a239f93e5fa WHIRLPOOL 9a46fc8eab98fbf0b893233527dadd8ce9968f3bacc39fd3ea6d9afde2580cfb02ef31f2a7f5d0dbd8078a92fadcd06dc1834b710ac53471f2b93373104e22ab +MISC ChangeLog 7416 SHA256 6a8f5b13b5d4dbcefd84546ac1344bb3f4de48c7db15605d5b9ee36619e64c69 SHA512 16de881c10e7bf09619c7688d5bd85dc5b5c35451bc8849f4a4a15a3518537cf7440e7fb65249a4e4986e93642548b213c0edbdeb3f86faca04ecd02ccc0188a WHIRLPOOL ced471f3484760d9985e2e216a1248e11f2408b9191d45547412054072d96335ec674b17cd8a1831ef469d0c7efb81e471a0fc222611588bf768b5f3252e36fb +MISC metadata.xml 793 SHA256 c658bf572bc08db202bf6bd9e1ae83f56968f9edf36427ea62afe86f77e7c175 SHA512 0b44c089ff96189680b32a479cbf5e3ba239ac5b3fe3909e52e9774576f9de37dc7e62c93fa88e217f4834c3851736563d2cc87198a2811791901bccfef2ac84 WHIRLPOOL 3234cabb973ed42f79a365e3fe2e7c9b145c72c7eeeb3da4b6072f35a785caabc088cb7d94d943b326dee4e347b1d238eddcb35be8ce4067c7bf217d3afa62e0 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.20 (GNU/Linux) +Version: GnuPG v2.0.22 (GNU/Linux) -iEYEAREIAAYFAlGyZFIACgkQ1ycZbhPLE2DSeACeNVjB37w+IgQJ16M7WItSBNt7 -XfEAn2OS1zm0k1SVdz4qZGTxvUzU2hGt -=A+4p +iQIcBAEBCgAGBQJSXViMAAoJELnU8jG9FVirNZkQAIsVQe8Lq1tOWQtpAHrETK60 +8/sd4eB4i6jDGPeNjvwj0iGxZ3I5doT45ntTkNpl6sjeRN/11Bw/Zynr9YJHJ4ok +D2gO5fND6elcJSM9fDHPKJeCp594XTjjhcQMKg2dGjrvTI0+vlK5aHd5uuDWX9lx +ZGkxo7RpGOcJcQfBFCoNMMO5DSc6uTGEv0mEuJymWgEYYlp2VzWM6Srz6Gmx/AR0 +MuJivE7Fi07cK1ucWi6muCm9u8JIFysTD/lm/OeH0EodVomgzQngrBKdvZyGrTPk +0kOntQJxhEUSSbszPUWQ+DZIX5YoLs8bHddvRPrbAPLA/jUiE4AwWz9ho51DCyIG +7FET+/Lc+Lj5R3nmGYX511mdV2cfb6gnn5lEjDv6CP/lOILXCOVyOl57j/As6Z5u +YyZ7DmDapkqHVGq/sc7MPIlYtAPuzEK+2LIxX+Y+NyFlkNK8ofMW/Gbv1wFPEsex +6HyHh+dJl6f4ha7nPR+2H1yFJZeLkp712b6GUpQH9mFyBIQaqz8ezs2Ql2h6Pwx0 +mZoMACqqDPJw+xmnrUVhEuaZwGBCEUTEMPlzlf8pCf2ZVoRCM83oOOA+vKkJL7KX +hFgVT84B+x81z9nGW8qMgg9aNf82oeuxvrTl/sl+W4K7zr/z7M2VvQHrLQ04NG0h +wbdDo6ZKXyywVZ/SSer0 +=RREB -----END PGP SIGNATURE----- diff --git a/sci-libs/mathgl/mathgl-2.1.2.ebuild b/sci-libs/mathgl/mathgl-2.1.2.ebuild index 4ffccd68b545..f22f34d949eb 100644 --- a/sci-libs/mathgl/mathgl-2.1.2.ebuild +++ b/sci-libs/mathgl/mathgl-2.1.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-2.1.2.ebuild,v 1.1 2013/03/21 15:40:47 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-2.1.2.ebuild,v 1.2 2013/10/15 15:00:27 jlec Exp $ EAPI=5 @@ -57,7 +57,7 @@ pkg_setup() { src_unpack() { unpack ${A} [[ -d "${S}"/fonts ]] || mkdir "${S}"/fonts - cd "${S}"/fonts + cd "${S}"/fonts || die unpack STIX_font.tgz } @@ -71,11 +71,13 @@ src_prepare() { echo "" > lang/install.m || die # fix desktop file sed -i -e 's/.png//' udav/udav.desktop || die + use python && append-cppflags -I"$($(PYTHON) -c 'import numpy; print(numpy.get_include())')" } src_configure() { local mycmakeargs=( -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) @@ -101,9 +103,6 @@ src_configure() { sed -i \ -e "s:--prefix=\(.*\) :--prefix=\$ENV{DESTDIR}\1 :" \ "${CMAKE_BUILD_DIR}"/lang/cmake_install.cmake || die - # fix location of numpy - use python && append-cppflags \ - -I$(echo "import numpy; print(numpy.get_include())" | "$(PYTHON)" - 2>/dev/null) fi } diff --git a/sci-libs/mathgl/mathgl-2.1.3.ebuild b/sci-libs/mathgl/mathgl-2.1.3.ebuild new file mode 100644 index 000000000000..8c5e6c89f5af --- /dev/null +++ b/sci-libs/mathgl/mathgl-2.1.3.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-2.1.3.ebuild,v 1.1 2013/10/15 15:00:27 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_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 ) + hdf? ( sci-libs/hdf ) + hdf5? ( >=sci-libs/hdf5-1.8[mpi=] ) + jpeg? ( virtual/jpeg ) + octave? ( >=sci-mathematics/octave-3.4.0 ) + pdf? ( media-libs/libharu ) + png? ( media-libs/libpng ) + python? ( dev-python/numpy[${PYTHON_USEDEP}] ${PYTHON_DEPS} ) + qt4? ( dev-qt/qtgui:4 ) + wxwidgets? ( x11-libs/wxGTK:2.8 ) + 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 + use wxwidgets && wxwidgets_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/metadata.xml b/sci-libs/mathgl/metadata.xml index 433b634786fe..50c88744b103 100644 --- a/sci-libs/mathgl/metadata.xml +++ b/sci-libs/mathgl/metadata.xml @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>sci</herd> -<maintainer> - <email>grozin@gentoo.org</email> - <name>Andrey Grozin</name> -</maintainer> -<longdescription> + <herd>sci</herd> + <maintainer> + <email>grozin@gentoo.org</email> + <name>Andrey Grozin</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> - <flag name="double-precision">Add double precision calculations</flag> -</use> + <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> + <flag name="double-precision">Add double precision calculations</flag> + </use> </pkgmetadata> |