From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/openmx/
Date: Thu, 21 Feb 2013 22:56:52 +0000 (UTC) [thread overview]
Message-ID: <1361485277.1111c8d5e893afcb2bc06209123164569f4e4894.jlec@gentoo> (raw)
commit: 1111c8d5e893afcb2bc06209123164569f4e4894
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 21 22:21:17 2013 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Feb 21 22:21:17 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1111c8d5
sci-physics/openmx: Use tc-getPKG_CONFIG from toolchain-funcs.eclass instead of plain pkg-config; add missing dep on virtual/pkgconfig
Package-Manager: portage-2.2.0_alpha163
---
sci-physics/openmx/ChangeLog | 5 ++++
sci-physics/openmx/metadata.xml | 5 ++++
sci-physics/openmx/openmx-3.6.ebuild | 40 +++++++++++++++++-----------------
3 files changed, 30 insertions(+), 20 deletions(-)
diff --git a/sci-physics/openmx/ChangeLog b/sci-physics/openmx/ChangeLog
index 37b46f6..8ae1efd 100644
--- a/sci-physics/openmx/ChangeLog
+++ b/sci-physics/openmx/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 21 Feb 2013; Justin Lecher <jlec@gentoo.org> openmx-3.6.ebuild,
+ +metadata.xml:
+ Use tc-getPKG_CONFIG from toolchain-funcs.eclass instead of plain pkg-config;
+ add missing dep on virtual/pkgconfig
+
*openmx-3.6 (17 Jan 2013)
17 Jan 2013; Honza Macháček <Hloupy.Honza@centrum.cz> +openmx-3.6.ebuild:
diff --git a/sci-physics/openmx/metadata.xml b/sci-physics/openmx/metadata.xml
new file mode 100644
index 0000000..897aa2e
--- /dev/null
+++ b/sci-physics/openmx/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+</pkgmetadata>
diff --git a/sci-physics/openmx/openmx-3.6.ebuild b/sci-physics/openmx/openmx-3.6.ebuild
index 4f83c2a..b4832fd 100644
--- a/sci-physics/openmx/openmx-3.6.ebuild
+++ b/sci-physics/openmx/openmx-3.6.ebuild
@@ -6,25 +6,26 @@ EAPI="4"
inherit eutils multilib toolchain-funcs
-DESCRIPTION="Open source package for Material eXplorer using DFT, norm-conserving
-pseudopotentials, and pseudo-atomic localized basis functions."
+DESCRIPTION="Material eXplorer using DFT, norm-conserving pseudopotentials, and pseudo-atomic localized basis functions"
HOMEPAGE="http://www.openmx-square.org/"
-SRC_URI="http://www.openmx-square.org/${PN}${PV}.tar.gz
- http://www.openmx-square.org/bugfixed/11Nov14/patch${PV}.1.tar.gz"
+SRC_URI="
+ http://www.openmx-square.org/${PN}${PV}.tar.gz
+ http://www.openmx-square.org/bugfixed/11Nov14/patch${PV}.1.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="-debug mpi openmp test"
-S="${WORKDIR}/${PN}${PV}"
-RDEPEND="virtual/blas
- virtual/lapack
- sci-libs/fftw:3.0[mpi?,openmp?]
- mpi? ( virtual/mpi )"
+RDEPEND="
+ virtual/blas
+ virtual/lapack
+ sci-libs/fftw:3.0[mpi?,openmp?]
+ mpi? ( virtual/mpi )"
DEPEND="${RDEPEND}
- dev-util/pkgconfig"
+ virtual/pkgconfig"
+S="${WORKDIR}/${PN}${PV}"
pkg_setup() {
if use mpi; then
@@ -49,7 +50,6 @@ src_prepare() {
}
src_configure() {
- CFLAGS="${CFLAGS:- -O3 -funroll-loops -ffast-math}"
local FFTW_FLAVOUR=fftw3
if use openmp; then
FFTW_FLAVOUR=fftw3_omp
@@ -61,26 +61,26 @@ src_configure() {
else
export CFLAGS="${CFLAGS} -Dnompi"
fi
- CFLAGS="${CFLAGS} $(pkg-config --cflags lapack)"
- CFLAGS="${CFLAGS} $(pkg-config --cflags ${FFTW_FLAVOUR})"
+ CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags lapack)"
+ CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags ${FFTW_FLAVOUR})"
export CFLAGS
- local MX_LIB="$(pkg-config --static --libs lapack)"
- local MX_LIB="${MX_LIB} $(pkg-config --static --libs ${FFTW_FLAVOUR})"
+ local MX_LIB="$($(tc-getPKG_CONFIG) --static --libs lapack)"
+ local MX_LIB="${MX_LIB} $($(tc-getPKG_CONFIG) --static --libs ${FFTW_FLAVOUR})"
- sed -i -e "s%^CC *=.*$%CC = ${CC} ${CFLAGS}%" \
+ sed \
+ -e "s%^CC *=.*$%CC = ${CC} ${CFLAGS}%" \
-e "s%^LIB *=.*$%LIB = ${MX_LIB}%" \
- source/makefile
+ -i source/makefile || die
}
src_compile() {
- cd source
- emake || die "make failed"
+ emake -C source
}
src_test() {
cd work
- ../source/openmx -runtest
+ ../source/openmx -runtest || die
}
src_install() {
next reply other threads:[~2013-02-21 22:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-21 22:56 Justin Lecher [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-01-24 16:06 [gentoo-commits] proj/sci:master commit in: sci-physics/openmx/ Andrew Ammerlaan
2021-12-16 10:57 Andrew Ammerlaan
2021-01-19 17:02 Andrew Ammerlaan
2014-06-02 14:05 Honza Macháček
2013-09-26 9:41 Honza Macháček
2013-09-19 7:57 ` Honza Macháček
2013-09-20 9:48 Justin Lecher
2013-07-16 12:58 Honza Macháček
2013-07-16 12:20 Honza Macháček
2013-01-29 9:31 Kacper Kowalik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1361485277.1111c8d5e893afcb2bc06209123164569f4e4894.jlec@gentoo \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox