1 |
commit: 323abc95052d880bc4eade065ec2974630f82baf |
2 |
Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 1 04:59:58 2015 +0000 |
4 |
Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 1 04:59:58 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=323abc95 |
7 |
|
8 |
fixed package name |
9 |
|
10 |
Package-Manager: portage-2.2.14 |
11 |
|
12 |
--- |
13 |
sci-physics/hoomd-blue/ChangeLog | 9 ++++ |
14 |
sci-physics/hoomd-blue/hoomd-blue-9999.ebuild | 61 +++++++++++++++++++++++++++ |
15 |
sci-physics/hoomd-blue/metadata.xml | 12 ++++++ |
16 |
3 files changed, 82 insertions(+) |
17 |
|
18 |
diff --git a/sci-physics/hoomd-blue/ChangeLog b/sci-physics/hoomd-blue/ChangeLog |
19 |
new file mode 100644 |
20 |
index 0000000..2b90cc2 |
21 |
--- /dev/null |
22 |
+++ b/sci-physics/hoomd-blue/ChangeLog |
23 |
@@ -0,0 +1,9 @@ |
24 |
+# ChangeLog for sci-physics/hoomd |
25 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# $Header: $ |
27 |
+ |
28 |
+*hoomd-blue-9999 (26 Feb 2015) |
29 |
+ |
30 |
+ 26 Feb 2015; Christoph Junghans <ottxor@g.o> +hoomd-blue-9999.ebuild, |
31 |
+ +metadata.xml: |
32 |
+ initial commit |
33 |
|
34 |
diff --git a/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild b/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild |
35 |
new file mode 100644 |
36 |
index 0000000..532b4c1 |
37 |
--- /dev/null |
38 |
+++ b/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild |
39 |
@@ -0,0 +1,61 @@ |
40 |
+# Copyright 1999-2015 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+# $Header: $ |
43 |
+ |
44 |
+EAPI=5 |
45 |
+ |
46 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
47 |
+ |
48 |
+inherit cmake-utils cuda python-single-r1 |
49 |
+ |
50 |
+DESCRIPTION="a general-purpose particle simulation toolkit" |
51 |
+HOMEPAGE="http://codeblue.umich.edu/hoomd-blue/" |
52 |
+ |
53 |
+if [[ ${PV} = 9999 ]]; then |
54 |
+ EGIT_REPO_URI="https://bitbucket.org/glotzer/${PN}.git" |
55 |
+ inherit git-r3 |
56 |
+ KEYWORDS= |
57 |
+else |
58 |
+ inherit vcs-snapshot |
59 |
+ SRC_URI="https://bitbucket.org/glotzer/${PN}/get/v${PV}.tar.bz2 -> ${P}.tar.bz2" |
60 |
+ KEYWORDS="~amd64" |
61 |
+fi |
62 |
+ |
63 |
+LICENSE="GPL-3" |
64 |
+SLOT="0" |
65 |
+IUSE="cuda doc test mpi +zlib" |
66 |
+ |
67 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
68 |
+ |
69 |
+RDEPEND="${PYTHON_DEPS} |
70 |
+ mpi? ( virtual/mpi ) |
71 |
+ cuda? ( dev-util/nvidia-cuda-sdk ) |
72 |
+ zlib? ( sys-libs/zlib ) |
73 |
+ dev-libs/boost:=[threads,python,mpi,${PYTHON_USEDEP}]" |
74 |
+DEPEND="${RDEPEND} |
75 |
+ doc? ( app-doc/doxygen )" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ use cuda && cuda_src_prepare |
79 |
+ |
80 |
+ cmake-utils_src_prepare |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ local mycmakeargs=( |
85 |
+ $(cmake-utils_use_enable mpi MPI) |
86 |
+ $(cmake-utils_use_enable doc DOXYGEN) |
87 |
+ $(cmake-utils_use_enable cuda CUDA) |
88 |
+ $(cmake-utils_use_enable zlib ZLIB) |
89 |
+ $(cmake-utils_use_build test BUILD_TESTING) |
90 |
+ -DPYTHON_SITEDIR=$(python_get_sitedir) |
91 |
+ ) |
92 |
+ cmake-utils_src_configure |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/hoomd-*doc* ) |
97 |
+ cmake-utils_src_install |
98 |
+ |
99 |
+ sed -i "s/^python/${EPYTHON}/" "${ED}"/usr/bin/hoomd || die |
100 |
+} |
101 |
|
102 |
diff --git a/sci-physics/hoomd-blue/metadata.xml b/sci-physics/hoomd-blue/metadata.xml |
103 |
new file mode 100644 |
104 |
index 0000000..8dd7ec6 |
105 |
--- /dev/null |
106 |
+++ b/sci-physics/hoomd-blue/metadata.xml |
107 |
@@ -0,0 +1,12 @@ |
108 |
+<?xml version="1.0" encoding="UTF-8"?> |
109 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
110 |
+<pkgmetadata> |
111 |
+ <herd>sci-chemistry</herd> |
112 |
+ <maintainer> |
113 |
+ <email>ottxor@g.o</email> |
114 |
+ <name>Christoph Junghans</name> |
115 |
+ </maintainer> |
116 |
+ <use> |
117 |
+ <flag name="cuda">Enable cuda non-bonded kernels</flag> |
118 |
+ </use> |
119 |
+</pkgmetadata> |