Gentoo Archives: gentoo-commits

From: Christoph Junghans <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/mdsctk/
Date: Sun, 02 Jun 2013 17:41:02
Message-Id: 1370194826.bc4bf551f3e119a3960e469530cc3695bd80cc92.ottxor@gentoo
1 commit: bc4bf551f3e119a3960e469530cc3695bd80cc92
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 2 17:40:15 2013 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 2 17:40:26 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=bc4bf551
7
8 initial commit
9
10 Package-Manager: portage-2.2.0_alpha177
11
12 ---
13 sci-chemistry/mdsctk/ChangeLog | 9 ++++++
14 sci-chemistry/mdsctk/mdsctk-1.0.0.ebuild | 51 ++++++++++++++++++++++++++++++++
15 sci-chemistry/mdsctk/metadata.xml | 12 ++++++++
16 3 files changed, 72 insertions(+)
17
18 diff --git a/sci-chemistry/mdsctk/ChangeLog b/sci-chemistry/mdsctk/ChangeLog
19 new file mode 100644
20 index 0000000..83aa8bc
21 --- /dev/null
22 +++ b/sci-chemistry/mdsctk/ChangeLog
23 @@ -0,0 +1,9 @@
24 +# ChangeLog for sci-chemistry/mdsctk
25 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
26 +# $Header: $
27 +
28 +*mdsctk-1.0.0 (02 Jun 2013)
29 +
30 + 02 Jun 2013; Christoph Junghans <ottxor@g.o> +mdsctk-1.0.0.ebuild,
31 + +metadata.xml:
32 + initial commit
33
34 diff --git a/sci-chemistry/mdsctk/mdsctk-1.0.0.ebuild b/sci-chemistry/mdsctk/mdsctk-1.0.0.ebuild
35 new file mode 100644
36 index 0000000..5601f7e
37 --- /dev/null
38 +++ b/sci-chemistry/mdsctk/mdsctk-1.0.0.ebuild
39 @@ -0,0 +1,51 @@
40 +# Copyright 1999-2013 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=5
45 +
46 +inherit db-use toolchain-funcs
47 +
48 +DESCRIPTION="Molecular Dynamics Spectral Clustering Toolkit"
49 +HOMEPAGE="http://cnls.lanl.gov/~jphillips/?page_id=45"
50 +SRC_URI="http://cnls.lanl.gov/~jphillips/wp-content/uploads/${P}.tar.gz"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~amd64"
55 +IUSE="examples R"
56 +
57 +DEPEND="
58 + sci-chemistry/gromacs
59 + sci-libs/gsl
60 + sys-libs/db[cxx]
61 + virtual/blas
62 + virtual/lapack
63 + R? ( dev-lang/R )
64 + "
65 +RDEPEND="${DEPEND}"
66 +
67 +src_compile() {
68 + local libdb=$(db_libname)
69 + emake CPP=$(tc-getCXX) \
70 + CFLAGS="${CXXFLAGS} $($(tc-getPKG_CONFIG) --cflags libgmx) \
71 + $($(tc-getPKG_CONFIG) --cflags gsl) \
72 + $($(tc-getPKG_CONFIG) --cflags lapack) \
73 + $($(tc-getPKG_CONFIG) --cflags blas) \
74 + -I$(db_includedir)" \
75 + LIBS="$($(tc-getPKG_CONFIG) --libs libgmx) -lgmxana \
76 + $($(tc-getPKG_CONFIG) --libs gsl) \
77 + $($(tc-getPKG_CONFIG) --libs lapack) \
78 + $($(tc-getPKG_CONFIG) --libs blas) \
79 + -l${libdb/db/db_cxx} ${LDFLAGS}" \
80 + OPTIONS=""
81 +}
82 +
83 +src_install() {
84 + dodoc AUTHORS README
85 + dobin auto_decomp_sparse bb_xtc_to_phipsi check_xtc decomp_sparse knn_data \
86 + knn_rms knn_rms_sparse make_sparse phipsi_to_sincos rms_test
87 + use R && dobin clustering_histogram.r clustering_nmi.r kmeans.r plot_histogram.r
88 + insinto /usr/share/"${PN}"/examples
89 + use examples && doins -r examples
90 +}
91
92 diff --git a/sci-chemistry/mdsctk/metadata.xml b/sci-chemistry/mdsctk/metadata.xml
93 new file mode 100644
94 index 0000000..d24286a
95 --- /dev/null
96 +++ b/sci-chemistry/mdsctk/metadata.xml
97 @@ -0,0 +1,12 @@
98 +<?xml version="1.0" encoding="UTF-8"?>
99 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
100 +<pkgmetadata>
101 + <herd>sci-chemistry</herd>
102 + <maintainer>
103 + <email>ottxor@g.o</email>
104 + <name>Christoph Junghans</name>
105 + </maintainer>
106 + <use>
107 + <flag name="R">Install <pkg>dev-lang/R</pkg> as well</flag>
108 + </use>
109 +</pkgmetadata>