Added use flags doc (install API documentation) and zlib.
---
 sci-chemistry/openbabel/ChangeLog                  |   11 +++
 sci-chemistry/openbabel/Manifest                   |    5 ++
 .../openbabel/files/openbabel-2.2.0-doxyfile.patch |   27 ++++++++
 sci-chemistry/openbabel/metadata.xml               |   15 ++++
 sci-chemistry/openbabel/openbabel-2.2.0-r1.ebuild  |   68 ++++++++++++++++++++
 5 files changed, 126 insertions(+), 0 deletions(-)
 create mode 100644 sci-chemistry/openbabel/ChangeLog
 create mode 100644 sci-chemistry/openbabel/Manifest
 create mode 100644 sci-chemistry/openbabel/files/openbabel-2.2.0-doxyfile.patch
 create mode 100644 sci-chemistry/openbabel/metadata.xml
 create mode 100644 sci-chemistry/openbabel/openbabel-2.2.0-r1.ebuild

diff --git a/sci-chemistry/openbabel/ChangeLog 
b/sci-chemistry/openbabel/ChangeLog
new file mode 100644
index 0000000..1ffe227
--- /dev/null
+++ b/sci-chemistry/openbabel/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sci-chemistry/openbabel
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*openbabel-2.2.0-r1 (10 Feb 2009)
+
+  10 Feb 2009; Reinis Danne <[email protected]>
+  +files/openbabel-2.2.0-doxyfile.patch, +metadata.xml,
+  +openbabel-2.2.0-r1.ebuild:
+  Added openbabel-2.2.0-r1.ebuild with a patch for doxyfile, #212212
+
diff --git a/sci-chemistry/openbabel/Manifest b/sci-chemistry/openbabel/Manifest
new file mode 100644
index 0000000..30ad295
--- /dev/null
+++ b/sci-chemistry/openbabel/Manifest
@@ -0,0 +1,5 @@
+AUX openbabel-2.2.0-doxyfile.patch 1074 RMD160 
26a22e205fde6c778ed19e961e676d99f0ffa2a7 SHA1 
89c68eab7c2f144bf664f1c8abb7322430893658 SHA256 
28d8b3e4730bdd347ddb1a0bff238bf52b2eb591d23d693812d99bb02c7190ec
+DIST openbabel-2.2.0.tar.gz 6127264 RMD160 
ade8e65ab37278d9af3ff1b9cfb115437f52e0ea SHA1 
5fdc084fb744d5dae4cd9ddbd52fe1f0c56c973b SHA256 
a898b79336c7372c901bcc7e5f83db7b8e79f8e864be6a262f515b3e088bc607
+EBUILD openbabel-2.2.0-r1.ebuild 1484 RMD160 
129bcff736c1c495e3381a53a181b412fe40e996 SHA1 
6348606aa999c5cc434383e456d6dff46ced5316 SHA256 
a34303fd5a0d918d4de612498f41f6a68dd25d070edf3324f4c0721e57485ec5
+MISC ChangeLog 363 RMD160 b2c4b7aea941258f4ba13d3fadafd17fbd2d1ec3 SHA1 
9f7dc730012f98e2a5a9eca78a1c2b48decbfecb SHA256 
059502c7cc3df61868b013a8670d3dc98b331959b54eb405bc76e4f45ffbff4e
+MISC metadata.xml 607 RMD160 d7e3f2502a60cc150c4c5d5f6840c15bfa7b966a SHA1 
33b8b1fcb16b9f73d0fa61993bc159fa7b9f2927 SHA256 
788449f6eea9025ca31211e134c48b2bf713e5120c132420896ec51b354f1807
diff --git a/sci-chemistry/openbabel/files/openbabel-2.2.0-doxyfile.patch 
b/sci-chemistry/openbabel/files/openbabel-2.2.0-doxyfile.patch
new file mode 100644
index 0000000..e54a530
--- /dev/null
+++ b/sci-chemistry/openbabel/files/openbabel-2.2.0-doxyfile.patch
@@ -0,0 +1,27 @@
+--- Doxyfile.orig      2008-07-01 20:55:40.000000000 +0300
++++ Doxyfile   2009-02-10 01:30:56.000000000 +0200
+@@ -752,13 +752,13 @@
+ # each generated HTML page. If it is left blank doxygen will generate a 
+ # standard header.
+ 
+-HTML_HEADER            = doc/api-header.html
++HTML_HEADER            = 
+ 
+ # The HTML_FOOTER tag can be used to specify a personal HTML footer for 
+ # each generated HTML page. If it is left blank doxygen will generate a 
+ # standard footer.
+ 
+-HTML_FOOTER            = doc/api-footer.html
++HTML_FOOTER            = 
+ 
+ # The HTML_STYLESHEET tag can be used to specify a user-defined cascading 
+ # style sheet that is used by each HTML page. It can be used to 
+@@ -767,7 +767,7 @@
+ # the style sheet file to the HTML output directory, so don't put your own 
+ # stylesheet in the HTML output directory as well, or it will be erased!
+ 
+-HTML_STYLESHEET        = doc/api-style.css
++HTML_STYLESHEET        = 
+ 
+ # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, 
+ # files or namespaces will be aligned in HTML using tables. If set to 
diff --git a/sci-chemistry/openbabel/metadata.xml 
b/sci-chemistry/openbabel/metadata.xml
new file mode 100644
index 0000000..79d6407
--- /dev/null
+++ b/sci-chemistry/openbabel/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <herd>sci-chemistry</herd>
+  <longdescription>
+    Open Babel is a chemical toolbox designed to speak the many languages of
+       chemical data. It's an open, collaborative project allowing anyone to
+       search, convert, analyze, or store data from molecular modeling, 
chemistry,
+       solid-state materials, biochemistry, or related areas.
+  </longdescription>
+  <use>
+    <flag name='doc'>Install API documentation</flag>
+       <flag name='zlib'>Enable zlib support</flag>
+  </use>
+</pkgmetadata>
diff --git a/sci-chemistry/openbabel/openbabel-2.2.0-r1.ebuild 
b/sci-chemistry/openbabel/openbabel-2.2.0-r1.ebuild
new file mode 100644
index 0000000..5116bba
--- /dev/null
+++ b/sci-chemistry/openbabel/openbabel-2.2.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=1
+
+inherit eutils
+
+DESCRIPTION="interconverts file formats used in molecular modeling"
+HOMEPAGE="http://openbabel.sourceforge.net/";
+SRC_URI="mirror://sourceforge/openbabel/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="doc +zlib"
+
+RDEPEND="!sci-chemistry/babel
+       >=dev-libs/libxml2-2.6.5
+       zlib? ( sys-libs/zlib )"
+
+DEPEND="${RDEPEND}
+       >=dev-libs/boost-1.33.1
+       dev-lang/perl
+       doc? ( app-doc/doxygen )"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       epatch "${FILESDIR}/${P}-doxyfile.patch" || die "Failed to apply 
${P}-doxyfile.patch"
+}
+
+src_compile() {
+       econf \
+               --enable-static \
+               $(use_with zlib) \
+               || die "econf failed"
+       emake || die "emake failed"
+       if use doc ; then
+               emake docs || "make docs failed"
+       fi
+}
+
+src_test() {
+       emake check || die "make check failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "make install failed"
+       dodoc AUTHORS ChangeLog NEWS README THANKS
+       cd doc
+       dohtml *.html *.png
+       dodoc *.inc README* *.inc *.mol2
+       if use doc ;then
+               dodir /usr/share/doc/${PF}/API/html
+               insinto /usr/share/doc/${PF}/API/html
+               cd API/html
+               doins *
+       fi
+}
+
+pkg_postinst() {
+       echo
+       elog "This version of OpenBabel includes InChI version 1 (software 
version"
+       elog "1.02_beta). It does not produce Standard InChI/InChIKey."
+       elog "To get Standard InChI/InChIKey software version 1.02 must be 
used."
+}
-- 
1.6.0.6


Reply via email to