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, 24 Sep 2015 05:20:20
Message-Id: 1443072074.239fa34edcca3183dc35551fe199077be52f59cc.ottxor@gentoo
1 commit: 239fa34edcca3183dc35551fe199077be52f59cc
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 24 05:18:48 2015 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 24 05:21:14 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=239fa34e
7
8 sci-chemistry/votca-csg: sync with gx86
9
10 Package-Manager: portage-2.2.20.1
11
12 sci-chemistry/votca-csg/ChangeLog | 3 +++
13 sci-chemistry/votca-csg/votca-csg-9999.ebuild | 39 +++++++++++++++------------
14 2 files changed, 25 insertions(+), 17 deletions(-)
15
16 diff --git a/sci-chemistry/votca-csg/ChangeLog b/sci-chemistry/votca-csg/ChangeLog
17 index 1c1eb1d..827dd5d 100644
18 --- a/sci-chemistry/votca-csg/ChangeLog
19 +++ b/sci-chemistry/votca-csg/ChangeLog
20 @@ -2,6 +2,9 @@
21 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
22 # $Id$
23
24 + 24 Sep 2015; Christoph Junghans <ottxor@g.o> votca-csg-9999.ebuild:
25 + sci-chemistry/votca-csg: sync with gx86
26 +
27 12 Feb 2015; Christoph Junghans <ottxor@g.o> votca-csg-9999.ebuild:
28 added support of hdf5, clean up
29
30
31 diff --git a/sci-chemistry/votca-csg/votca-csg-9999.ebuild b/sci-chemistry/votca-csg/votca-csg-9999.ebuild
32 index 7f7a214..668702c 100644
33 --- a/sci-chemistry/votca-csg/votca-csg-9999.ebuild
34 +++ b/sci-chemistry/votca-csg/votca-csg-9999.ebuild
35 @@ -11,14 +11,14 @@ inherit bash-completion-r1 cmake-utils multilib
36 IUSE="doc examples extras +gromacs hdf5"
37 PDEPEND="extras? ( =sci-chemistry/${PN}apps-${PV} )"
38 if [ "${PV}" != "9999" ]; then
39 - SRC_URI="http://downloads.votca.googlecode.com/hg/${P}.tar.gz
40 - doc? ( http://downloads.votca.googlecode.com/hg/${PN}-manual-${PV}.pdf )
41 - examples? ( http://downloads.votca.googlecode.com/hg/${PN}-tutorials-${PV}.tar.gz )"
42 + SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz
43 + doc? ( https://github.com/${PN/-//}-manual/releases/download/v1.3_rc1/${PN}-manual-${PV}.pdf )
44 + examples? ( https://github.com/${PN/-//}-tutorials/archive/v${PV}.tar.gz -> ${PN}-tutorials-${PV}.tar.gz )"
45 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
46 + S="${WORKDIR}/${P#votca-}"
47 else
48 - SRC_URI=""
49 - inherit mercurial
50 - EHG_REPO_URI="https://code.google.com/p/votca.csg/"
51 + inherit git-r3
52 + EGIT_REPO_URI="git://github.com/${PN/-//}.git https://github.com/${PN/-//}.git"
53 KEYWORDS=""
54 fi
55
56 @@ -45,21 +45,25 @@ DEPEND="${RDEPEND}
57 >=app-text/txt2tags-2.5
58 virtual/pkgconfig"
59
60 -DOCS=( README NOTICE )
61 +DOCS=( README.md NOTICE CHANGELOG.md )
62
63 src_unpack() {
64 if [[ ${PV} != *9999 ]]; then
65 default
66 else
67 - mercurial_src_unpack
68 - use doc && mercurial_fetch \
69 - https://code.google.com/p/votca.csg-manual/ \
70 - votca.csg-manual \
71 - "${WORKDIR}/${PN}-manual"
72 - use examples && mercurial_fetch \
73 - https://code.google.com/p/votca.csg-tutorials/ \
74 - votca.csg-tutorials \
75 - "${WORKDIR}/${PN}-tutorials"
76 + git-r3_src_unpack
77 + if use doc; then
78 + EGIT_REPO_URI="git://github.com/${PN/-//}-manual.git https://github.com/${PN/-//}-manual.git"
79 + EGIT_BRANCH="master"
80 + EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-manual"\
81 + git-r3_src_unpack
82 + fi
83 + if use examples; then
84 + EGIT_REPO_URI="git://github.com/${PN/-//}-tutorials.git https://github.com/${PN/-//}-tutorials.git"
85 + EGIT_BRANCH="master"
86 + EGIT_CHECKOUT_DIR="${WORKDIR}/${PN#votca-}-tutorials"\
87 + git-r3_src_unpack
88 + fi
89 fi
90 }
91
92 @@ -96,7 +100,8 @@ src_install() {
93 if use examples; then
94 insinto "/usr/share/doc/${PF}/tutorials"
95 docompress -x "/usr/share/doc/${PF}/tutorials"
96 - doins -r "${WORKDIR}/${PN}"-tutorials*/*
97 + rm -rf "${WORKDIR}/${PN#votca-}"-tutorials*/CMake*
98 + doins -r "${WORKDIR}/${PN#votca-}"-tutorials*/*
99 fi
100 }