Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/atompaw/
Date: Thu, 28 Jan 2021 16:08:07
Message-Id: 1611850077.3d69c76eaed568c123088e708274d536c46e3e09.andrewammerlaan@gentoo
1 commit: 3d69c76eaed568c123088e708274d536c46e3e09
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Thu Jan 28 16:07:57 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Thu Jan 28 16:07:57 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3d69c76e
7
8 sci-physics/atompaw: version bump 4.1.1.0, EAPI bump
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Manifest-Sign-Key: A19F636CD4EDBCD1
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
13
14 sci-physics/atompaw/atompaw-4.0.0.14.ebuild | 69 -----------------------------
15 sci-physics/atompaw/atompaw-4.1.1.0.ebuild | 58 ++++++++++++++++++++++++
16 2 files changed, 58 insertions(+), 69 deletions(-)
17
18 diff --git a/sci-physics/atompaw/atompaw-4.0.0.14.ebuild b/sci-physics/atompaw/atompaw-4.0.0.14.ebuild
19 deleted file mode 100644
20 index 1e908bd96..000000000
21 --- a/sci-physics/atompaw/atompaw-4.0.0.14.ebuild
22 +++ /dev/null
23 @@ -1,69 +0,0 @@
24 -# Copyright 1999-2021 Gentoo Authors
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=5
28 -
29 -inherit autotools-utils eutils fortran-2 multilib toolchain-funcs
30 -
31 -DESCRIPTION="PAW atomic data generator"
32 -HOMEPAGE="http://www.wfu.edu/~natalie/papers/pwpaw/man.html"
33 -SRC_URI="
34 - http://www.wfu.edu/~natalie/papers/pwpaw/${P}.tar.gz
35 - doc? (
36 - http://www.wfu.edu/~natalie/papers/pwpaw/atompaw.pdf
37 - http://www.wfu.edu/~natalie/papers/pwpaw/notes/atompaw/atompawEqns.pdf )"
38 -
39 -LICENSE="GPL-2"
40 -SLOT="0"
41 -KEYWORDS="~amd64 ~x86"
42 -IUSE="doc libxc longplot test"
43 -RESTRICT="!test? ( test )"
44 -
45 -RDEPEND="
46 - virtual/blas
47 - virtual/lapack
48 - libxc? ( >=sci-libs/libxc-2.0.1[fortran] )"
49 -DEPEND="${RDEPEND}
50 - virtual/pkgconfig"
51 -
52 -DOCS=( README )
53 -
54 -FORTRAN_STANDARD=90
55 -
56 -src_unpack() {
57 - unpack ${P}.tar.gz
58 - if use doc; then
59 - cp "${DISTDIR}"/atompaw.pdf "${DISTDIR}"/atompawEqns.pdf "${S}"/doc/ || die
60 - fi
61 -}
62 -
63 -src_prepare() {
64 - use longplot && epatch "${FILESDIR}"/4.0-longplot.patch
65 -}
66 -
67 -src_configure() {
68 - local myeconfargs=(
69 - $(use_enable libxc)
70 - --with-linalg-flavor=atlas
71 - --with-linalg-libs="$($(tc-getPKG_CONFIG) --libs blas lapack)"
72 - --with-libxc-incs="-I/usr/include $($(tc-getPKG_CONFIG) --cflags libxc)"
73 - --with-libxc-libs="$($(tc-getPKG_CONFIG) --libs libxc)"
74 - FC="$(tc-getFC)" FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}}"
75 - CC="$(tc-getCC)" LDFLAGS="${LDFLAGS:- ${CFLAGS:- -O2}}"
76 - )
77 - autotools-utils_src_configure
78 -}
79 -
80 -src_compile() {
81 - autotools-utils_src_compile -j1
82 -}
83 -
84 -src_test() {
85 - use test && autotools-utils_src_test
86 -}
87 -
88 -src_install() {
89 - autotools-utils_src_install
90 -
91 - use doc && dodoc doc/atompaw.pdf doc/atompawEqns.pdf
92 -}
93
94 diff --git a/sci-physics/atompaw/atompaw-4.1.1.0.ebuild b/sci-physics/atompaw/atompaw-4.1.1.0.ebuild
95 new file mode 100644
96 index 000000000..efba86aee
97 --- /dev/null
98 +++ b/sci-physics/atompaw/atompaw-4.1.1.0.ebuild
99 @@ -0,0 +1,58 @@
100 +# Copyright 1999-2021 Gentoo Authors
101 +# Distributed under the terms of the GNU General Public License v2
102 +
103 +EAPI=7
104 +
105 +inherit fortran-2 multilib toolchain-funcs
106 +
107 +DESCRIPTION="PAW atomic data generator"
108 +HOMEPAGE="https://users.wfu.edu/natalie/papers/pwpaw/man.html"
109 +SRC_URI="
110 + http://users.wfu.edu/natalie/papers/pwpaw/${P}.tar.gz
111 + doc? (
112 + http://users.wfu.edu/natalie/papers/pwpaw/atompaw.pdf
113 + http://users.wfu.edu/natalie/papers/pwpaw/notes/atompaw/atompawEqns.pdf
114 +)"
115 +
116 +LICENSE="GPL-2"
117 +SLOT="0"
118 +KEYWORDS="~amd64 ~x86"
119 +
120 +IUSE="doc libxc longplot"
121 +
122 +RDEPEND="
123 + virtual/blas
124 + virtual/lapack
125 + libxc? ( >=sci-libs/libxc-2.0.1[fortran] )
126 +"
127 +DEPEND="${RDEPEND}"
128 +BDEPEND="virtual/pkgconfig"
129 +
130 +FORTRAN_STANDARD=90
131 +
132 +src_unpack() {
133 + unpack ${P}.tar.gz
134 + if use doc; then
135 + cp "${DISTDIR}"/atompaw.pdf "${DISTDIR}"/atompawEqns.pdf "${S}"/doc/ || die
136 + fi
137 +}
138 +
139 +src_prepare() {
140 + default
141 + use longplot && eapply "${FILESDIR}"/4.0-longplot.patch
142 +}
143 +
144 +src_configure() {
145 + econf \
146 + $(use_enable libxc) \
147 + --with-linalg-libs="$($(tc-getPKG_CONFIG) --libs blas lapack)" \
148 + --with-libxc-incs="-I/usr/include $($(tc-getPKG_CONFIG) --cflags libxc)" \
149 + --with-libxc-libs="$($(tc-getPKG_CONFIG) --libs libxc)" \
150 + FC="$(tc-getFC)" FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}}" \
151 + CC="$(tc-getCC)" LDFLAGS="${LDFLAGS:- ${CFLAGS:- -O2}}"
152 +}
153 +
154 +src_install() {
155 + default
156 + dodoc doc/atompaw.pdf doc/atompawEqns.pdf
157 +}