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/votca-csg/
Date: Thu, 14 Jul 2016 17:32:11
Message-Id: 1468516701.c91d5dc89a778e0898a812445026e5c48d5ebb8f.ottxor@gentoo
1 commit: c91d5dc89a778e0898a812445026e5c48d5ebb8f
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 14 17:18:21 2016 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 14 17:18:21 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c91d5dc8
7
8 sci-chemistry/votca-csg: moved to gx86
9
10 sci-chemistry/votca-csg/metadata.xml | 16 ----
11 sci-chemistry/votca-csg/votca-csg-9999.ebuild | 114 --------------------------
12 2 files changed, 130 deletions(-)
13
14 diff --git a/sci-chemistry/votca-csg/metadata.xml b/sci-chemistry/votca-csg/metadata.xml
15 deleted file mode 100644
16 index 2559954..0000000
17 --- a/sci-chemistry/votca-csg/metadata.xml
18 +++ /dev/null
19 @@ -1,16 +0,0 @@
20 -<?xml version="1.0" encoding="UTF-8"?>
21 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
22 -<pkgmetadata>
23 - <maintainer type="person">
24 - <email>ottxor@g.o</email>
25 - <name>Christoph Junghans</name>
26 - </maintainer>
27 - <maintainer type="project">
28 - <email>sci-chemistry@g.o</email>
29 - <name>Gentoo Chemistry Project</name>
30 - </maintainer>
31 - <use>
32 - <flag name="gromacs">Add support for gromacs file formats through <pkg>sci-chemistry/gromacs</pkg></flag>
33 - <flag name="extras">Pull in extra applications from <pkg>sci-chemistry/votca-csg-apps</pkg></flag>
34 - </use>
35 -</pkgmetadata>
36
37 diff --git a/sci-chemistry/votca-csg/votca-csg-9999.ebuild b/sci-chemistry/votca-csg/votca-csg-9999.ebuild
38 deleted file mode 100644
39 index 25892d7..0000000
40 --- a/sci-chemistry/votca-csg/votca-csg-9999.ebuild
41 +++ /dev/null
42 @@ -1,114 +0,0 @@
43 -# Copyright 1999-2015 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -# $Id$
46 -
47 -EAPI=5
48 -
49 -CMAKE_MAKEFILE_GENERATOR="ninja"
50 -
51 -inherit bash-completion-r1 cmake-utils multilib
52 -
53 -IUSE="doc examples extras +gromacs hdf5"
54 -PDEPEND="extras? ( =sci-chemistry/${PN}apps-${PV} )"
55 -if [ "${PV}" != "9999" ]; then
56 - SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz
57 - doc? ( https://github.com/${PN/-//}-manual/releases/download/v1.3_rc1/${PN}-manual-${PV}.pdf )
58 - examples? ( https://github.com/${PN/-//}-tutorials/archive/v${PV}.tar.gz -> ${PN}-tutorials-${PV}.tar.gz )"
59 - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
60 - S="${WORKDIR}/${P#votca-}"
61 -else
62 - inherit git-r3
63 - EGIT_REPO_URI="git://github.com/${PN/-//}.git https://github.com/${PN/-//}.git"
64 - KEYWORDS=""
65 -fi
66 -
67 -DESCRIPTION="Votca coarse-graining engine"
68 -HOMEPAGE="http://www.votca.org"
69 -
70 -LICENSE="Apache-2.0"
71 -SLOT="0"
72 -
73 -RDEPEND="
74 - =sci-libs/votca-tools-${PV}
75 - gromacs? ( sci-chemistry/gromacs:= )
76 - hdf5? ( sci-libs/hdf5 )
77 - dev-lang/perl
78 - app-shells/bash:*"
79 -
80 -DEPEND="${RDEPEND}
81 - doc? (
82 - app-doc/doxygen[dot]
83 - dev-texlive/texlive-latexextra
84 - virtual/latex-base
85 - dev-tex/pgf
86 - )
87 - >=app-text/txt2tags-2.5
88 - virtual/pkgconfig"
89 -
90 -DOCS=( README.md NOTICE CHANGELOG.md )
91 -
92 -src_unpack() {
93 - if [[ ${PV} != *9999 ]]; then
94 - default
95 - else
96 - git-r3_src_unpack
97 - if use doc; then
98 - EGIT_REPO_URI="git://github.com/${PN/-//}-manual.git https://github.com/${PN/-//}-manual.git"
99 - EGIT_BRANCH="master"
100 - EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-manual"\
101 - git-r3_src_unpack
102 - fi
103 - if use examples; then
104 - EGIT_REPO_URI="git://github.com/${PN/-//}-tutorials.git https://github.com/${PN/-//}-tutorials.git"
105 - EGIT_BRANCH="master"
106 - EGIT_CHECKOUT_DIR="${WORKDIR}/${PN#votca-}-tutorials"\
107 - git-r3_src_unpack
108 - fi
109 - fi
110 -}
111 -
112 -src_configure() {
113 - mycmakeargs=(
114 - $(cmake-utils_use_with gromacs GMX)
115 - $(cmake-utils_use_with hdf5 H5MD)
116 - -DWITH_RC_FILES=OFF
117 - -DLIB=$(get_libdir)
118 - )
119 - cmake-utils_src_configure
120 -}
121 -
122 -src_install() {
123 - cmake-utils_src_install
124 - newbashcomp scripts/csg-completion.bash csg_call
125 - for i in "${ED}"/usr/bin/csg_*; do
126 - [[ ${i} = *csg_call ]] && continue
127 - bashcomp_alias csg_call "${i##*/}"
128 - done
129 - if use doc; then
130 - if [[ ${PV} = *9999* ]]; then
131 - #we need to do that here, because we need an installed version of csg to build the manual
132 - [[ ${CHOST} = *-darwin* ]] && \
133 - emake -C "${WORKDIR}/${PN}"-manual PATH="${PATH}${PATH:+:}${ED}/usr/bin" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}${DYLD_LIBRARY_PATH:+:}${ED}/usr/$(get_libdir)" \
134 - || emake -C "${WORKDIR}/${PN}"-manual PATH="${PATH}${PATH:+:}${ED}/usr/bin" LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}${ED}/usr/$(get_libdir)"
135 - newdoc "${WORKDIR}/${PN}"-manual/manual.pdf "${PN}-manual-${PV}.pdf"
136 - else
137 - dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
138 - fi
139 - cmake-utils_src_make -C "${BUILD_DIR}" html
140 - dohtml -r "${BUILD_DIR}"/share/doc/html/*
141 - fi
142 - if use examples; then
143 - insinto "/usr/share/doc/${PF}/tutorials"
144 - docompress -x "/usr/share/doc/${PF}/tutorials"
145 - rm -rf "${WORKDIR}/${PN#votca-}"-tutorials*/CMake*
146 - doins -r "${WORKDIR}/${PN#votca-}"-tutorials*/*
147 - fi
148 -}
149 -
150 -pkg_postinst() {
151 - einfo
152 - einfo "Please read and cite:"
153 - einfo "VOTCA, J. Chem. Theory Comput. 5, 3211 (2009). "
154 - einfo "http://dx.doi.org/10.1021/ct900369w"
155 - einfo
156 -}