diff options
-rw-r--r-- | sci-chemistry/wxmacmolplt/ChangeLog | 10 | ||||
-rw-r--r-- | sci-chemistry/wxmacmolplt/Manifest | 1 | ||||
-rw-r--r-- | sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.4.3-glew.patch | 12 | ||||
-rw-r--r-- | sci-chemistry/wxmacmolplt/metadata.xml | 11 | ||||
-rw-r--r-- | sci-chemistry/wxmacmolplt/wxmacmolplt-7.4.3.ebuild | 44 |
5 files changed, 78 insertions, 0 deletions
diff --git a/sci-chemistry/wxmacmolplt/ChangeLog b/sci-chemistry/wxmacmolplt/ChangeLog new file mode 100644 index 000000000..c858c58fc --- /dev/null +++ b/sci-chemistry/wxmacmolplt/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-chemistry/wxmacmolplt +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*wxmacmolplt-7.4.3 (22 Oct 2012) + + 22 Oct 2012; Reinis Danne <rei4dan@gmail.com> +wxmacmolplt-7.4.3.ebuild, + +files/wxmacmolplt-7.4.3-glew.patch, +metadata.xml: + Bump to 7.4.3. + diff --git a/sci-chemistry/wxmacmolplt/Manifest b/sci-chemistry/wxmacmolplt/Manifest new file mode 100644 index 000000000..9d482c752 --- /dev/null +++ b/sci-chemistry/wxmacmolplt/Manifest @@ -0,0 +1 @@ +DIST wxmacmolplt-7.4.3.tar.gz 1821649 SHA256 f7e9c282d6370983c36fb5121eb5036e9e4044a98fb43bf9e269686846fccee9 SHA512 da2b871a3b134eb5b8ee881f98821f785bb41da2845f92e1c47b8ff6755ab8a3dad8bd04273e8418b08a8d15695b70ec1b36f5005a9d8c50b454ec92d925594c WHIRLPOOL 8d321a8817057f1091baa10f62d6e761a62a784d45c1ecdaab09fb8c40ce657c055b207b39757028182a287be50b5a02cb36e176a2ea790c3193cfd0a6878255 diff --git a/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.4.3-glew.patch b/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.4.3-glew.patch new file mode 100644 index 000000000..08986db5b --- /dev/null +++ b/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.4.3-glew.patch @@ -0,0 +1,12 @@ +diff -urN wxmacmolplt-7.4.2.orig/configure.ac wxmacmolplt-7.4.2/configure.ac +--- wxmacmolplt-7.4.2.orig/configure.ac 2010-12-05 02:48:29.000000000 +0300 ++++ wxmacmolplt-7.4.2/configure.ac 2010-12-06 19:30:24.000000000 +0300 +@@ -20,7 +20,7 @@ + ;; + *) + HOST=LINUX +- LIBGL="-lGL -lGLU" ++ LIBGL=`pkg-config --libs glu glew` + ;; + esac + AM_CONDITIONAL(HOST_IS_MSW, [test "x$HOST" == xMSW]) diff --git a/sci-chemistry/wxmacmolplt/metadata.xml b/sci-chemistry/wxmacmolplt/metadata.xml new file mode 100644 index 000000000..fb69a7dab --- /dev/null +++ b/sci-chemistry/wxmacmolplt/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-chemistry</herd> +<longdescription> +wxMacMolPlt is a program for plotting 3D molecular structures and normal modes (vibrations), various orbitals and electron density maps. It reads a variety of file formats including any GAMESS input, log or IRC file directly to create animations. It has a simple GAMESS input (.inp) builder and a primitive molecule builder. +</longdescription> +<use> + <flag name='flash'>Add support for flash movie generation using <pkg>media-libs/ming</pkg></flag> +</use> +</pkgmetadata> diff --git a/sci-chemistry/wxmacmolplt/wxmacmolplt-7.4.3.ebuild b/sci-chemistry/wxmacmolplt/wxmacmolplt-7.4.3.ebuild new file mode 100644 index 000000000..8b300c9cf --- /dev/null +++ b/sci-chemistry/wxmacmolplt/wxmacmolplt-7.4.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" +WX_GTK_VER=2.8 + +inherit base eutils autotools wxwidgets + +DESCRIPTION="Chemical 3D graphics program with GAMESS input builder" +HOMEPAGE="http://www.scl.ameslab.gov/MacMolPlt/" +SRC_URI="http://www.scl.ameslab.gov/MacMolPlt/download/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="flash" + +RDEPEND=" + >=media-libs/glew-1.5.3 + media-libs/mesa + x11-libs/wxGTK:2.8[X,opengl] + flash? ( media-libs/ming )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-glew.patch + sed -i -e "/^dist_doc_DATA/d" Makefile.am \ + || die "Failed to disable installation of LICENSE file" + eautoreconf +} + +src_configure() { + econf \ + --with-glew \ + $(use_with flash ming) +} + +src_install() { + emake DESTDIR="${ED}" install || die "install failed" + doicon resources/${PN}.png || die + make_desktop_entry ${PN} wxMacMolPlt ${PN} "Science;Education" +} |