summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2010-11-19 08:25:41 +0000
committerAndrey Grozin <grozin@gentoo.org>2010-11-19 08:25:41 +0000
commit43ed08f65fa18dd30ee393b46e43a8d2695d8567 (patch)
tree7433639ddbda23b3bff0e5fdc0b26bd960b56946
parentold (diff)
downloadhistorical-43ed08f65fa18dd30ee393b46e43a8d2695d8567.tar.gz
historical-43ed08f65fa18dd30ee393b46e43a8d2695d8567.tar.bz2
historical-43ed08f65fa18dd30ee393b46e43a8d2695d8567.zip
Version bump
Package-Manager: portage-2.2.0_alpha4/cvs/Linux i686
-rw-r--r--sci-libs/mathgl/ChangeLog7
-rw-r--r--sci-libs/mathgl/Manifest16
-rw-r--r--sci-libs/mathgl/mathgl-1.11.0.1.ebuild145
3 files changed, 154 insertions, 14 deletions
diff --git a/sci-libs/mathgl/ChangeLog b/sci-libs/mathgl/ChangeLog
index 224e0bb0b0bb..b2af88b6a520 100644
--- a/sci-libs/mathgl/ChangeLog
+++ b/sci-libs/mathgl/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/mathgl
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.20 2010/11/08 17:44:56 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.21 2010/11/19 08:25:41 grozin Exp $
+
+*mathgl-1.11.0.1 (19 Nov 2010)
+
+ 19 Nov 2010; Andrey Grozin <grozin@gentoo.org> +mathgl-1.11.0.1.ebuild:
+ Version bump
08 Nov 2010; Kacper Kowalik <xarthisius@gentoo.org>
-mathgl-1.10.1-r1.ebuild, -files/mathgl-1.10.1-gcc43.patch,
diff --git a/sci-libs/mathgl/Manifest b/sci-libs/mathgl/Manifest
index 9df6609bacf4..0471cc4beaf8 100644
--- a/sci-libs/mathgl/Manifest
+++ b/sci-libs/mathgl/Manifest
@@ -1,18 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX mathgl-1.10.2-gcc43.patch 345 RMD160 81d76baed06d779853dd96ce169f5bef620629b2 SHA1 e50c8e600cb243c809d3a6648344bbe29146666d SHA256 2165125d4677b882548530dc21a0368bf7ed27cab516ee6f78604f98b3b60ac9
DIST STIX_font.tgz 2450541 RMD160 7595c2b99c5982d72b1ef551ab8f9d65237e5466 SHA1 3cbc4f5090cd37d1b35d594150357550d2639f81 SHA256 6408290fd4a5267637a88507344a8f07b908ce72f46ef93d09e068fedb67e8fe
DIST mathgl-1.10.2.1.tgz 2038416 RMD160 9a95b71997b156a186ec718f9e64fd2eec116903 SHA1 8b17bd167535d6e5e187d6cb8d06ef52e692afbe SHA256 21d8f37e889eca91ae252a512e551792e059e575368ace0de3836091701cba1a
+DIST mathgl-1.11.0.1.tgz 4583067 RMD160 25e72bad824bd9327418a6d1130ec2a53525195d SHA1 5de2d58a2deede8c30960657f4f85b963a3be6a9 SHA256 70bddab03b1a9c93b2183196ac01d80894113f034db3e08de26e0e437825d67c
EBUILD mathgl-1.10.2.1-r1.ebuild 3445 RMD160 bce828c905de4d685f822da89dadc3d6948c2dc9 SHA1 48f188c95f4c50de2938293e7ddd90a5f36384ec SHA256 2b83098724f96a5c599ee2daae23e15ccff2206f16b6006c2229c6775329bd94
-MISC ChangeLog 4160 RMD160 42e1d9a857c4985e82e510127a030d786aa9a826 SHA1 8aa282e659b8309e7f26d79b599e599c0ca870ff SHA256 3de0929a2c7e41489b9bb1c2e408c312f942f548878d1b763d083a310c06a3f6
+EBUILD mathgl-1.11.0.1.ebuild 3438 RMD160 c471e27f58bf50e71c32566a704454f13641e058 SHA1 87e93e6146ef8a04074d2707749783112aa7ca7f SHA256 314905ff159ceaed97eeff1b1e0eb44589b469876baab2e9d7570da5cdc53ff2
+MISC ChangeLog 4278 RMD160 a6e75b0c28d753c35d428b5ff0318675003e29fa SHA1 9d36206f6e8a0ebdbe073f4c22a07286e934a82e SHA256 a59b8b750a264f09ea17e1b6ae734fd85f87a2c093a2cb1847299e20d2db8bdc
MISC metadata.xml 403 RMD160 58842b16ab72ab3b23b8d29eaf00dd2c05da11c9 SHA1 de3dde83893663018de696e3e07010a276db0fff SHA256 2e033d0243bbbafcb9397978f74e7bf0edcb03cfb6f2d2d5ff9e22cdf5e77a42
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
-
-iJwEAQECAAYFAkzYNyIACgkQIiMqcbOVdxSgAgP+LR/7189KKc7Nz1iS6dWgl4fT
-shMuf+RBSIljE8IIw8dKsg5Gl456u8LMMG626X9VTlQ1VJTAInrPeZWU7jkSaotp
-ikWeed7u2W3D/KHBrWu7DNNKM17+k0lEZkKHUARqD4nCNqQlxQ8KgkplyenYUASF
-VTAcJzZrvEKlRiV5Mm4=
-=Awj+
------END PGP SIGNATURE-----
diff --git a/sci-libs/mathgl/mathgl-1.11.0.1.ebuild b/sci-libs/mathgl/mathgl-1.11.0.1.ebuild
new file mode 100644
index 000000000000..1dd25999c5d6
--- /dev/null
+++ b/sci-libs/mathgl/mathgl-1.11.0.1.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.11.0.1.ebuild,v 1.1 2010/11/19 08:25:41 grozin Exp $
+
+EAPI=3
+
+WX_GTK_VER=2.8
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit autotools wxwidgets python versionator toolchain-funcs
+
+DESCRIPTION="Math Graphics Library"
+HOMEPAGE="http://mathgl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz mirror://sourceforge/${PN}/STIX_font.tgz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwidgets"
+
+RDEPEND="media-libs/libpng
+ virtual/opengl
+ python? ( dev-python/numpy )
+ glut? ( media-libs/freeglut )
+ fltk? ( x11-libs/fltk:1.1 )
+ gif? ( media-libs/giflib )
+ jpeg? ( virtual/jpeg )
+ hdf5? ( >=sci-libs/hdf5-1.8 )
+ gsl? ( sci-libs/gsl )
+ octave? ( sci-mathematics/octave )
+ qt4? ( x11-libs/qt-gui:4 )
+ wxwidgets? ( x11-libs/wxGTK:2.8 )"
+DEPEND="${RDEPEND}
+ >=sys-devel/libtool-2.2.4
+ doc? ( app-text/texi2html virtual/texi2dvi )
+ python? ( dev-lang/swig )
+ octave? ( dev-lang/swig )"
+
+pkg_setup() {
+ if ! version_is_at_least "4.3.0" "$(gcc-version)"; then
+ eerror "You need >=gcc-4.3.0 to compile this package"
+ die "Wrong gcc version"
+ fi
+ if use hdf5 && has_version sci-libs/hdf5[mpi]; then
+ export CC=mpicc
+ export CXX=mpicxx
+ fi
+ use python && python_pkg_setup
+ use wxwidgets && wxwidgets_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ mkdir "${S}"/fonts
+ cd "${S}"/fonts
+ unpack STIX_font.tgz
+}
+
+src_prepare() {
+ # bug #267061
+ epatch "${FILESDIR}"/${PN}-1.10.2-gcc43.patch
+
+ # correct location of numpy/arrayobject.h
+ if use python; then
+ sed \
+ -e '/SUBDIRS/s:lang::g' \
+ -i Makefile.am || die
+ fi
+
+ echo "#!${EPREFIX}/bin/sh" > config/py-compile
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="${ROOT}"usr/share/doc/${PF} \
+ $(use_enable glut) \
+ $(use_enable qt4 qt) \
+ $(use_enable wxwidgets wx) \
+ $(use_enable fltk) \
+ $(use_enable gif) \
+ $(use_enable jpeg) \
+ $(use_enable hdf5 hdf5_18) \
+ $(use_enable python) \
+ $(use_enable octave) \
+ $(use_enable gsl) \
+ $(use_enable doc docs)
+}
+
+src_compile() {
+ # see bug #249627
+ local JOBS
+ use doc && JOBS=-j1
+ emake ${JOBS} || die "emake failed"
+
+ if use python; then
+ python_copy_sources lang
+ compilation() {
+ local numpy_h
+ numpy_h=$(python_get_sitedir)/numpy/core/include/numpy/arrayobject.h
+ einfo "fixing numpy.i for Python-${PYTHON_ABI}"
+ sed -e "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" \
+ -i numpy.i \
+ || die "sed failed"
+ emake PYTHON_HEADERS="-I$(python_get_includedir)" pyexecdir="$(python_get_sitedir)"
+ }
+ python_execute_function -s --source-dir lang compilation
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use python; then
+ installation() {
+ emake DESTDIR="${D}" PYTHON="$(PYTHON)" pyexecdir="$(python_get_sitedir)" pythondir="$(python_get_sitedir)" install
+ }
+ python_execute_function -s --source-dir lang installation
+ python_clean_installation_image
+ fi
+ dodoc README AUTHORS || die "dodoc failed"
+}
+
+pkg_postinst() {
+ if use octave; then
+ octave <<-EOF
+ pkg install /usr/share/${PN}/octave/${PN}.tar.gz
+ EOF
+ fi
+ use python && python_mod_optimize ${PN}.py
+}
+
+pkg_prerm() {
+ if use octave; then
+ octave <<-EOF
+ pkg uninstall ${PN}
+ EOF
+ fi
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup ${PN}.py
+}