Gentoo Archives: gentoo-science

From: Reinis Danne <rei4dan@×××××.com>
To: gentoo-science@l.g.o
Subject: [gentoo-science] [PATCH] New package sci-chemistry/bkchem, #95178 (Thanks to Beda Kosata)
Date: Sat, 07 Feb 2009 13:21:31
Message-Id: 1234012880-23284-1-git-send-email-rei4dan@gmail.com
1 Updated ebuild based on author's provided and wrote metadata.xml.
2 ---
3 sci-chemistry/bkchem/ChangeLog | 10 ++++++++
4 sci-chemistry/bkchem/Manifest | 4 +++
5 sci-chemistry/bkchem/bkchem-0.12.5.ebuild | 37 +++++++++++++++++++++++++++++
6 sci-chemistry/bkchem/metadata.xml | 11 ++++++++
7 4 files changed, 62 insertions(+), 0 deletions(-)
8 create mode 100644 sci-chemistry/bkchem/ChangeLog
9 create mode 100644 sci-chemistry/bkchem/Manifest
10 create mode 100644 sci-chemistry/bkchem/bkchem-0.12.5.ebuild
11 create mode 100644 sci-chemistry/bkchem/metadata.xml
12
13 diff --git a/sci-chemistry/bkchem/ChangeLog b/sci-chemistry/bkchem/ChangeLog
14 new file mode 100644
15 index 0000000..dd354ae
16 --- /dev/null
17 +++ b/sci-chemistry/bkchem/ChangeLog
18 @@ -0,0 +1,10 @@
19 +# ChangeLog for sci-chemistry/bkchem
20 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
21 +# $Header: $
22 +
23 +*bkchem-0.12.5 (07 Feb 2009)
24 +
25 + 07 Feb 2009; Reinis Danne <rei4dan@×××××.com> +metadata.xml,
26 + +bkchem-0.12.5.ebuild:
27 + New package sci-chemistry/bkchem, #95178 (Thanks to Beda Kosata)
28 +
29 diff --git a/sci-chemistry/bkchem/Manifest b/sci-chemistry/bkchem/Manifest
30 new file mode 100644
31 index 0000000..cdf05b9
32 --- /dev/null
33 +++ b/sci-chemistry/bkchem/Manifest
34 @@ -0,0 +1,4 @@
35 +DIST bkchem-0.12.5.tar.gz 907001 RMD160 3489f9c39171befa4d89df54667becef61f9657c SHA1 0a3ea20ef4aa1348553a0ae2eded2cfc01180f8e SHA256 0621b9589a13da3de848c7874ee0bca3a00815e32880ae7fe2c519a8a03d72eb
36 +EBUILD bkchem-0.12.5.ebuild 773 RMD160 68a9f93ca25cba4be4f4780fdcbc6e39e14fe799 SHA1 f7b66eb5d80c1ddad79a09c2cb1edc29d771cb7c SHA256 52932181048b3826538d2e2ebe441e6b969ebaf304ae1f1de0ddde9d5baded36
37 +MISC ChangeLog 307 RMD160 37b6a309d0b56652e59476883116c0e9102315a9 SHA1 56a5d74e2998097456ba87023891b897f7972f85 SHA256 02234a5cf5c26197190c8135407b6d36f3ba0dd37fb874f5e1430af498ee680b
38 +MISC metadata.xml 760 RMD160 45f362e178a5955f3239592a7cc2bbe7845d6c56 SHA1 e1a73787c3017c89aa1dc4b0eea5d1188fc0859a SHA256 37c0127543ce89c092a860b53410f3a3c994230b3f85f8a0f97a20d3ccb6f5d6
39 diff --git a/sci-chemistry/bkchem/bkchem-0.12.5.ebuild b/sci-chemistry/bkchem/bkchem-0.12.5.ebuild
40 new file mode 100644
41 index 0000000..0ccfcb9
42 --- /dev/null
43 +++ b/sci-chemistry/bkchem/bkchem-0.12.5.ebuild
44 @@ -0,0 +1,37 @@
45 +# Copyright 1999-2009 Gentoo Foundation
46 +# Distributed under the terms of the GNU General Public License v2
47 +# $Header: $
48 +
49 +inherit distutils
50 +
51 +DESCRIPTION="A chemical drawing program"
52 +HOMEPAGE="http://bkchem.zirael.org/"
53 +
54 +SRC_URI="http://bkchem.zirael.org/download/${P}.tar.gz"
55 +LICENSE="GPL-2"
56 +
57 +SLOT="0"
58 +
59 +KEYWORDS="~x86 ~amd64"
60 +IUSE="cairo"
61 +
62 +RDEPEND=">=dev-lang/python-2.3
63 + cairo? ( >=dev-python/pycairo-1.2 )"
64 +
65 +DEPEND="${RDEPEND}"
66 +
67 +pkg_setup() {
68 + distutils_python_tkinter
69 +}
70 +
71 +src_install() {
72 + # strip this path from the paths in site_config.py and bkchem script
73 + # we have to strip the trailing / from the $D path
74 + STRD=`echo "$D" | sed "s/\\\\/$//g"`
75 +
76 + distutils_src_install "--strip=${STRD}"
77 +
78 + doicon images/${PN}.png
79 + make_desktop_entry ${PN} BKChem ${PN}.png Education
80 +}
81 +
82 diff --git a/sci-chemistry/bkchem/metadata.xml b/sci-chemistry/bkchem/metadata.xml
83 new file mode 100644
84 index 0000000..0320f88
85 --- /dev/null
86 +++ b/sci-chemistry/bkchem/metadata.xml
87 @@ -0,0 +1,11 @@
88 +<?xml version="1.0" encoding="UTF-8"?>
89 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
90 +<pkgmetadata>
91 +<herd>sci-chemistry</herd>
92 +<longdescription>
93 +BKChem is a free (as in free software) chemical drawing program. It was conceived and written by Beda Kosata. It has all basic chemical structure drawing tools and templates, it supports text an simple vector graphics. There is file import (basic CML1 and CML2, Molfiles and subset of SMILES) and export (graphics files, basic CML1 and CML2, Molfiles and SMILES). It is written in Python and supports user written plugins and batch scripts.
94 +</longdescription>
95 +<use>
96 + <flag name='cairo'>Add support for Cairo graphics library using <pkg>dev-python/pycairo</pkg></flag>
97 +</use>
98 +</pkgmetadata>
99 --
100 1.6.0.6