commit:     702a6b6aec4d7af6e39b6a44ccb5b8b5350b671e
Author:     Reinis Danne <rei4dan <AT> gmail <DOT> com>
AuthorDate: Tue Jan 12 14:27:26 2016 +0000
Commit:     Reinis Danne <rei4dan <AT> gmail <DOT> com>
CommitDate: Tue Jan 12 14:27:26 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=702a6b6a

sci-chemistry/wxmacmolplt: Version bump

Upstream has moved to GitHub.

 .../wxmacmolplt/files/wxmacmolplt-7.5-glew.patch   | 12 ++++++
 sci-chemistry/wxmacmolplt/metadata.xml             | 11 +++++
 sci-chemistry/wxmacmolplt/wxmacmolplt-7.6.1.ebuild | 47 ++++++++++++++++++++++
 3 files changed, 70 insertions(+)

diff --git a/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.5-glew.patch 
b/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.5-glew.patch
new file mode 100644
index 0000000..08986db
--- /dev/null
+++ b/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.5-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 0000000..cd9831e
--- /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.6.1.ebuild 
b/sci-chemistry/wxmacmolplt/wxmacmolplt-7.6.1.ebuild
new file mode 100644
index 0000000..62a1a4c
--- /dev/null
+++ b/sci-chemistry/wxmacmolplt/wxmacmolplt-7.6.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+WX_GTK_VER=3.0
+
+inherit autotools eutils wxwidgets
+
+DESCRIPTION="Chemical 3D graphics program with GAMESS input builder"
+HOMEPAGE="http://brettbode.github.io/wxmacmolplt/";
+SRC_URI="https://github.com/brettbode/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="flash"
+
+RDEPEND="
+       media-libs/glew
+       media-libs/mesa
+       x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
+       flash? ( media-libs/ming )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
+
+src_prepare() {
+       need-wxwidgets unicode
+       epatch "${FILESDIR}"/${PN}-7.5-glew.patch
+       sed \
+               -e "/^dist_doc_DATA/d" \
+               -i Makefile.am || die "Failed to disable installation of 
LICENSE file"
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               --with-glew \
+               $(use_with flash ming)
+}
+
+src_install() {
+       default
+       doicon resources/${PN}.png
+       make_desktop_entry ${PN} wxMacMolPlt ${PN} "Science;DataVisualization;"
+}

Reply via email to