Gentoo Archives: gentoo-science

From: Reinis Danne <rei4dan@×××××.com>
To: gentoo-science@l.g.o
Subject: [gentoo-science] [PATCH] New package sci-chemistry/wxmacmolplt, #197131
Date: Sat, 07 Feb 2009 14:36:54
Message-Id: 1234017402-28958-1-git-send-email-rei4dan@gmail.com
1 New ebuild for wxmacmolplt-7.2.1, metadata.xml and a patch for Ming use.
2 ---
3 sci-chemistry/wxmacmolplt/ChangeLog | 11 ++++++
4 sci-chemistry/wxmacmolplt/Manifest | 5 +++
5 .../wxmacmolplt/files/wxmacmolplt-7.2.1-ming.patch | 11 ++++++
6 sci-chemistry/wxmacmolplt/metadata.xml | 11 ++++++
7 sci-chemistry/wxmacmolplt/wxmacmolplt-7.2.1.ebuild | 39 ++++++++++++++++++++
8 5 files changed, 77 insertions(+), 0 deletions(-)
9 create mode 100644 sci-chemistry/wxmacmolplt/ChangeLog
10 create mode 100644 sci-chemistry/wxmacmolplt/Manifest
11 create mode 100644 sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.2.1-ming.patch
12 create mode 100644 sci-chemistry/wxmacmolplt/metadata.xml
13 create mode 100644 sci-chemistry/wxmacmolplt/wxmacmolplt-7.2.1.ebuild
14
15 diff --git a/sci-chemistry/wxmacmolplt/ChangeLog b/sci-chemistry/wxmacmolplt/ChangeLog
16 new file mode 100644
17 index 0000000..bf976cd
18 --- /dev/null
19 +++ b/sci-chemistry/wxmacmolplt/ChangeLog
20 @@ -0,0 +1,11 @@
21 +# ChangeLog for sci-chemistry/wxmacmolplt
22 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
23 +# $Header: $
24 +
25 +*wxmacmolplt-7.2.1 (07 Feb 2009)
26 +
27 + 07 Feb 2009; Reinis Danne <rei4dan@×××××.com>
28 + +files/wxmacmolplt-7.2.1-ming.patch, +metadata.xml,
29 + +wxmacmolplt-7.2.1.ebuild:
30 + New package sci-chemistry/wxmacmolplt, #197131
31 +
32 diff --git a/sci-chemistry/wxmacmolplt/Manifest b/sci-chemistry/wxmacmolplt/Manifest
33 new file mode 100644
34 index 0000000..fe37152
35 --- /dev/null
36 +++ b/sci-chemistry/wxmacmolplt/Manifest
37 @@ -0,0 +1,5 @@
38 +AUX wxmacmolplt-7.2.1-ming.patch 402 RMD160 44e8644cf7f28549fd24432979e1982753f31e92 SHA1 bb838d234cd3e6af66b9acd43b3a46b30450bb65 SHA256 159d6ade9ec84f1247d92f4cfd8f7a28d73651bf8d0e42ff2d181b3a7af6f999
39 +DIST wxmacmolplt-7.2.1.tar.gz 1617541 RMD160 7da381f33578d2b578efa937691b4ca8b461eb8b SHA1 45d3f43f33bf334ac6b6d7b187c271d8fd6ef32b SHA256 1e079a05da1738118164488722246377744ad3a6d1def5fb5965eed803bf69d4
40 +EBUILD wxmacmolplt-7.2.1.ebuild 852 RMD160 654f14f50d344e29510f0bf142fc26733d62e0e6 SHA1 a762dbbe3e5c0fde6bf1a2befe93d6e37b3474c4 SHA256 09f891f0ec3c6cd7be9ed2faabc5292bbf587ec702e1ad31fec6d1a4f8a5db4b
41 +MISC ChangeLog 341 RMD160 a0a862ff3902902b2c34fb61e5c3eccb6cf133d1 SHA1 f4d8f5f2ee8450b22a5f887aba0e765430c9ce2d SHA256 52212f9867936603af8c850511e1a5a42e692f4a84c518a70363b78fdd25cf09
42 +MISC metadata.xml 640 RMD160 4860299f8c4ba8bfbad2b0c9e50c3589ab2c7f6b SHA1 53d8cd3fb8b803eff58fcb7533baf770af02dca1 SHA256 be59a56ba8a985098d1ced0a95bb3a1cd566c443f3af83d1785c55cb4420b744
43 diff --git a/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.2.1-ming.patch b/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.2.1-ming.patch
44 new file mode 100644
45 index 0000000..e633f52
46 --- /dev/null
47 +++ b/sci-chemistry/wxmacmolplt/files/wxmacmolplt-7.2.1-ming.patch
48 @@ -0,0 +1,11 @@
49 +--- configure.ac.orig 2008-05-13 19:27:34.000000000 +0300
50 ++++ configure.ac 2008-11-14 21:41:44.000000000 +0200
51 +@@ -39,7 +39,7 @@
52 + [AC_SUBST([LIBMING], ["-lming"]) AC_DEFINE([HAVE_LIBMING])],
53 + [if test "x$with_ming" != xyes; then
54 + AC_MSG_FAILURE([--with-ming was given, but test for ming failed])
55 +- fi], -lpng)])
56 ++ fi], -lpng -lgif)])
57 +
58 + WXCONFIG=wx-config
59 + AC_ARG_WITH(wx-config,
60 diff --git a/sci-chemistry/wxmacmolplt/metadata.xml b/sci-chemistry/wxmacmolplt/metadata.xml
61 new file mode 100644
62 index 0000000..ec344f1
63 --- /dev/null
64 +++ b/sci-chemistry/wxmacmolplt/metadata.xml
65 @@ -0,0 +1,11 @@
66 +<?xml version="1.0" encoding="UTF-8"?>
67 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
68 +<pkgmetadata>
69 +<herd>sci-chemistry</herd>
70 +<longdescription>
71 +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.
72 +</longdescription>
73 +<use>
74 + <flag name='ming'>Add support for flash movie generation using <pkg>media-libs/ming</pkg></flag>
75 +</use>
76 +</pkgmetadata>
77 diff --git a/sci-chemistry/wxmacmolplt/wxmacmolplt-7.2.1.ebuild b/sci-chemistry/wxmacmolplt/wxmacmolplt-7.2.1.ebuild
78 new file mode 100644
79 index 0000000..2eb1a2c
80 --- /dev/null
81 +++ b/sci-chemistry/wxmacmolplt/wxmacmolplt-7.2.1.ebuild
82 @@ -0,0 +1,39 @@
83 +# Copyright 1999-2009 Gentoo Foundation
84 +# Distributed under the terms of the GNU General Public License v2
85 +# $Header: $
86 +
87 +inherit eutils
88 +
89 +DESCRIPTION="Chemical 3D graphics program with GAMESS input builder"
90 +HOMEPAGE="http://www.scl.ameslab.gov/~brett/MacMolPlt/"
91 +
92 +SRC_URI="http://www.scl.ameslab.gov/~brett/MacMolPlt/download/${P}.tar.gz"
93 +LICENSE="GPL-2"
94 +
95 +KEYWORDS="~amd64 ~x86"
96 +SLOT="0"
97 +
98 +IUSE="ming"
99 +
100 +RDEPEND="x11-libs/wxGTK
101 + ming? ( media-libs/ming )"
102 +
103 +DEPEND="${RDEPEND}"
104 +
105 +src_unpack() {
106 + unpack ${A}
107 + cd "${S}"
108 +
109 + epatch "${FILESDIR}/${P}-ming.patch" || die "Failed to apply ${P}-ming.patch"
110 +}
111 +
112 +src_compile() {
113 + econf $(use_with ming) || die "configure failed"
114 + emake || die "make failed"
115 +}
116 +
117 +src_install() {
118 + emake DESTDIR="${D}" install || die "install failed"
119 + doicon resources/${PN}.png
120 + make_desktop_entry ${PN} wxMacMolPlt ${PN}.png Education
121 +}
122 --
123 1.6.0.6