From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libdynd/
Date: Tue, 10 Jan 2017 05:27:21 +0000 (UTC) [thread overview]
Message-ID: <1484026000.02a4bcaa2cb79940af4b8fc89ae31aa95bad0257.bicatali@gentoo> (raw)
commit: 02a4bcaa2cb79940af4b8fc89ae31aa95bad0257
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 8 22:17:42 2017 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Jan 10 05:26:40 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02a4bcaa
dev-libs/libdynd: fix the git version mangling
also add cuda sanitizing, and basic cleaning
Package-Manager: Portage-2.3.3, Repoman-2.3.1
dev-libs/libdynd/libdynd-0.7.2.ebuild | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/dev-libs/libdynd/libdynd-0.7.2.ebuild b/dev-libs/libdynd/libdynd-0.7.2.ebuild
index 37b608c..0ca75be 100644
--- a/dev-libs/libdynd/libdynd-0.7.2.ebuild
+++ b/dev-libs/libdynd/libdynd-0.7.2.ebuild
@@ -6,6 +6,9 @@ EAPI=6
inherit cmake-utils cuda
+# change each new libdynd version, to avoid git in tree dependency
+DYND_GIT_SHA1=341d6d91931fdb04ad657d27ed740cf533fc925b
+
DESCRIPTION="C++ dynamic multi-dimensionnal array library with Python exposure"
HOMEPAGE="http://libdynd.org"
SRC_URI="https://github.com/libdynd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -27,7 +30,7 @@ DEPEND="${RDEPEND}
DOCS=( README.md )
src_prepare() {
- #use cuda && cuda_src_prepare
+ use cuda && cuda_src_prepare
cmake-utils_src_prepare
cmake_comment_add_subdirectory examples
# fix forced cxxflags and doc installation directory
@@ -39,6 +42,15 @@ src_prepare() {
sed -e 's|install(TARGETS test_libdynd||' \
-e 's|RUNTIME DESTINATION bin)||' \
-i tests/CMakeLists.txt || die
+
+ # remove the version mangling from git stuff it requires a git clone
+ # rather force set it a configure time
+ sed -e '/GetGitRev/d' \
+ -e '/get_git_/d' \
+ -e '/git_describe/d' \
+ -e '/dirty/d' \
+ -i CMakeLists.txt || die
+ sed -e s||${DYND_SHA1_VERSION}|
# not tested
if use mkl; then
sed -e "s|/opt/intel/.*|$(ls -1d ${EPREFIX}/opt/intel/compilers*)|" \
@@ -48,6 +60,8 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
+ -DDYND_GIT_SHA1="${DYND_GIT_SHA1}"
+ -DDYND_VERSION_STRING="v${PV}"
-DDYND_INSTALL_LIB=ON
-DDYND_SHARED_LIB=ON
-DDYND_BUILD_BENCHMARKS=OFF
@@ -56,7 +70,7 @@ src_configure() {
-DDYND_BUILD_TESTS="$(usex test)"
-DDYND_CUDA="$(usex cuda)"
-DDYND_FFTW="$(usex fftw)"
- -DFFTW_PATH="${EPREFIX}/usr"
+ -DFFTW_PATH="${EPREFIX}/usr/include"
)
cmake-utils_src_configure
}
next reply other threads:[~2017-01-10 5:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-10 5:27 Sebastien Fabbro [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-27 17:03 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libdynd/ Sam James
2021-02-27 4:12 Sam James
2021-02-27 4:12 Sam James
2020-06-06 0:11 Andreas Sturmlechner
2020-06-06 0:11 Andreas Sturmlechner
2020-06-06 0:11 Andreas Sturmlechner
2017-06-17 17:24 Agostino Sarubbo
2017-01-10 5:27 Sebastien Fabbro
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=1484026000.02a4bcaa2cb79940af4b8fc89ae31aa95bad0257.bicatali@gentoo \
--to=bicatali@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