From 6ffd7d633801c19af8648883fee75cb2ce7686e7 Mon Sep 17 00:00:00 2001 From: grozin Date: Tue, 29 Apr 2008 22:37:57 +0000 Subject: mathgl-1.6.2: Math Graphics Library git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1032 32389bae-6d03-0410-99cf-db05cde120eb --- sci-libs/mathgl/ChangeLog | 8 +++++ sci-libs/mathgl/Manifest | 8 +++++ sci-libs/mathgl/files/mathgl-fltk.patch | 24 ++++++++++++++ sci-libs/mathgl/mathgl-1.6.2.ebuild | 56 +++++++++++++++++++++++++++++++++ sci-libs/mathgl/metadata.xml | 10 ++++++ 5 files changed, 106 insertions(+) create mode 100644 sci-libs/mathgl/ChangeLog create mode 100644 sci-libs/mathgl/Manifest create mode 100644 sci-libs/mathgl/files/mathgl-fltk.patch create mode 100644 sci-libs/mathgl/mathgl-1.6.2.ebuild create mode 100644 sci-libs/mathgl/metadata.xml (limited to 'sci-libs') diff --git a/sci-libs/mathgl/ChangeLog b/sci-libs/mathgl/ChangeLog new file mode 100644 index 000000000..b9e4f1359 --- /dev/null +++ b/sci-libs/mathgl/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-office/texmacs +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*mathgl-1.6.2 (29 Apr 2008) +29 Apr 2008; Andrey Grozin + +metadata.xml, +mathgl-1.6.2.ebuild, +files/mathgl-fltk.patch: + Initial import. diff --git a/sci-libs/mathgl/Manifest b/sci-libs/mathgl/Manifest new file mode 100644 index 000000000..22822900c --- /dev/null +++ b/sci-libs/mathgl/Manifest @@ -0,0 +1,8 @@ +AUX mathgl-fltk.patch 1684 RMD160 474c5ba1006c3ad473bbd9ff7edcf88bd738fe83 SHA1 7db3a30234a49f23b0c45ee0ec1a4f6e4f6d0a78 SHA256 b9fbf9f80f2081363f23c88fee6802bac505e3ebfdd64e5d73ec6cb8325c6af0 +DIST STIX_font.tgz 2450541 RMD160 7595c2b99c5982d72b1ef551ab8f9d65237e5466 SHA1 3cbc4f5090cd37d1b35d594150357550d2639f81 SHA256 6408290fd4a5267637a88507344a8f07b908ce72f46ef93d09e068fedb67e8fe +DIST mathgl-1.6-eng.pdf 5399719 RMD160 93bfbdb7b7fa6537e97947d6da901b49b1b702c9 SHA1 f1e8b02f7850fde70b72407c3c7b6225717283cf SHA256 8c0ee4be44b0d58f52d23b766dc702a8e23da5af8a310db4fbe8e633acb7b4cf +DIST mathgl-1.6-rus.pdf 5581883 RMD160 d04037c604e1444ae01cb49b95911055bdc0601d SHA1 614955ccff3e9c6c8bd23fe12f23f092760b3882 SHA256 c5b9d672fe08cbd7dab44a52b1ce217b81a2ba2ca07189394a5a4261ccba6b70 +DIST mathgl-1.6.2.tgz 1564209 RMD160 6b1b3210d49b1b000c2ee5f79dfbf0c8feded5e2 SHA1 6b88610b8bb61b04d5c544beb7f0858032b520f6 SHA256 cb9d6e518fc7cdd205e3fb42031bb96427b570a77fc0acb67c02e8fe73f2966e +EBUILD mathgl-1.6.2.ebuild 1376 RMD160 db7373dbc616e27059b4c7128b220cf9a0017b9a SHA1 433340191a57e365ece395364edc8fa8a61ae082 SHA256 41a0bff5c9e884aab831892dac1eb2ad5ffad9d6cff3b8ec657a104df5e04483 +MISC ChangeLog 255 RMD160 af7f0b4c2795377455275ee0fd53f720dd6ca937 SHA1 b3021a07711e8c5293311a19b8b1863187f82e5d SHA256 33b2f250e3e82dd62975cac5e63d320ef6a00341eaea94987da2194391c1f85a +MISC metadata.xml 312 RMD160 59b6ba8447002009036b940a6f0f8ab2c5dacb67 SHA1 45b130b368c0f0ef7669dc021fbdedc253234026 SHA256 ccadbd992df485b96a2cba7aa8df04cb997c675ac02f301c0c500b1c80ebaa82 diff --git a/sci-libs/mathgl/files/mathgl-fltk.patch b/sci-libs/mathgl/files/mathgl-fltk.patch new file mode 100644 index 000000000..afd034b79 --- /dev/null +++ b/sci-libs/mathgl/files/mathgl-fltk.patch @@ -0,0 +1,24 @@ +diff -U2 --recursive mathgl-1.6.2.orig/configure.ac mathgl-1.6.2/configure.ac +--- mathgl-1.6.2.orig/configure.ac 2008-04-03 01:24:42.000000000 +0700 ++++ mathgl-1.6.2/configure.ac 2008-04-30 12:35:25.000000000 +0700 +@@ -144,8 +144,8 @@ + *) AC_MSG_ERROR(bad value ${enableval} for --enable-fltk) ;; + esac],[fltk=false]) +-AC_CHECK_HEADER(FL/Fl_Export.H,[(test x$all = xtrue || test x$fltk = xtrue) && FLTK_FLAGS=-DHAVE_FLTK AC_SUBST(FLTK_FLAGS)], ++AC_CHECK_HEADER(fltk-1.1/FL/Fl_Export.H,[(test x$all = xtrue || test x$fltk = xtrue) && FLTK_FLAGS="-DHAVE_FLTK -I/usr/include/fltk-1.1" AC_SUBST(FLTK_FLAGS)], + [(test x$all = xtrue || test x$fltk = xtrue) && echo "Please install fltk headers" && exit]) + +-AC_CHECK_LIB([fltk], [main], [(test x$all = xtrue || test x$fltk = xtrue) && FLTK_LIBS="-lfltk -lfltk_images" AC_SUBST(FLTK_LIBS)], ++AC_CHECK_LIB([fltk], [main], [(test x$all = xtrue || test x$fltk = xtrue) && FLTK_LIBS="-L/usr/lib/fltk-1.1 -lfltk -lfltk_images -lXft" AC_SUBST(FLTK_LIBS)], + [(test x$all = xtrue || test x$fltk = xtrue) && echo "Please install fltk library" && exit]) + AM_CONDITIONAL(USE_FLTK, (test x$all = xtrue || test x$fltk = xtrue)) +diff -U2 --recursive mathgl-1.6.2.orig/examples/Makefile.am mathgl-1.6.2/examples/Makefile.am +--- mathgl-1.6.2.orig/examples/Makefile.am 2008-04-03 01:24:42.000000000 +0700 ++++ mathgl-1.6.2/examples/Makefile.am 2008-04-30 13:01:09.000000000 +0700 +@@ -19,5 +19,5 @@ + mgl_fltk_example_SOURCES = fltk_example.cpp + mgl_fltk_example_LDADD = $(top_builddir)/mgl/libmgl-fltk.la +-mgl_fltk_example_CFLAGS = -O2 ++mgl_fltk_example_CFLAGS = -I/usr/include/fltk-1.1 + mgl_fltk_example_CPPFLAGS = $(mgl_fltk_example_CFLAGS) + endif diff --git a/sci-libs/mathgl/mathgl-1.6.2.ebuild b/sci-libs/mathgl/mathgl-1.6.2.ebuild new file mode 100644 index 000000000..9a6b5eee0 --- /dev/null +++ b/sci-libs/mathgl/mathgl-1.6.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +inherit versionator eutils autotools + +DESCRIPTION="Math Graphics Library" +IUSE="fltk glut jpeg tiff hdf5 doc linguas_ru" +HOMEPAGE="http://mathgl.sourceforge.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DOC=${PN}-$(get_version_component_range 1-2 ) + +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz + mirror://sourceforge/${PN}/STIX_font.tgz + doc? ( mirror://sourceforge/${PN}/${DOC}-eng.pdf + linguas_ru? ( mirror://sourceforge/${PN}/${DOC}-rus.pdf ) )" + +DEPEND="fltk? ( x11-libs/fltk ) + glut? ( virtual/glut ) + jpeg? ( media-libs/jpeg ) + tiff? ( media-libs/tiff ) + hdf5? ( sci-libs/hdf5 )" + +#### Remove the following line when moving this ebuild to the main tree! +RESTRICT=mirror + +src_unpack() { + unpack ${A} + cd "${S}" + mv ../*.vfm fonts/ + epatch "${FILESDIR}"/${PN}-fltk.patch + eautoreconf +} + +src_compile() { + econf $(use_enable fltk ) \ + $(use_enable glut ) \ + $(use_enable jpeg ) \ + $(use_enable tiff ) \ + $(use_enable hdf5 ) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README AUTHORS || die "dodoc failed" + + if use doc; then + insinto /usr/share/doc/${P} + doins "${DISTDIR}"/${DOC}-eng.pdf + use linguas_ru && doins "${DISTDIR}"/${DOC}-rus.pdf + fi +} diff --git a/sci-libs/mathgl/metadata.xml b/sci-libs/mathgl/metadata.xml new file mode 100644 index 000000000..c75791532 --- /dev/null +++ b/sci-libs/mathgl/metadata.xml @@ -0,0 +1,10 @@ + + + + sci + + A.G.Grozin@inp.nsk.su + Andrey Grozin + + Math Graphics Library + -- cgit v1.2.3-18-g5258