public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Horea Christian" <horea.christ@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/ciftilib/, sci-libs/ciftilib/files/
Date: Sat, 20 Oct 2018 21:29:45 +0000 (UTC)	[thread overview]
Message-ID: <1540070958.6a917c1243b83065c81e4d82c78a6022891df3ef.chymera@gentoo> (raw)

commit:     6a917c1243b83065c81e4d82c78a6022891df3ef
Author:     François Bissey <frp.bissey <AT> gmail <DOT> com>
AuthorDate: Fri Oct 19 21:31:02 2018 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Sat Oct 20 21:29:18 2018 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=6a917c12

sci-libs/ciftilib: compatibility with nifti_io

Package-Manager: Portage-2.3.49, Repoman-2.3.11
Signed-off-by: Horea Christian <horea.christ <AT> yandex.com>

 sci-libs/ciftilib/ciftilib-1.5.3-r1.ebuild         | 61 ++++++++++++++++++++++
 sci-libs/ciftilib/ciftilib-1.5.3.ebuild            | 38 --------------
 .../files/ciftilib-1.5.3-openmp_in_pc.patch        | 12 +++++
 3 files changed, 73 insertions(+), 38 deletions(-)

diff --git a/sci-libs/ciftilib/ciftilib-1.5.3-r1.ebuild b/sci-libs/ciftilib/ciftilib-1.5.3-r1.ebuild
new file mode 100644
index 000000000..ad4894dd1
--- /dev/null
+++ b/sci-libs/ciftilib/ciftilib-1.5.3-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+DESCRIPTION="C++ Library for reading and writing CIFTI-2 and CIFTI-1 files"
+HOMEPAGE="https://github.com/Washington-University/CiftiLib"
+SRC_URI="https://github.com/Washington-University/CiftiLib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="qt5"
+
+DEPEND="
+	dev-libs/boost
+	qt5? ( dev-qt/qtcore:5 )
+	!qt5? ( dev-cpp/libxmlpp:2.6 )
+	sys-libs/zlib
+	"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.5.3-openmp_in_pc.patch
+	)
+
+S="${WORKDIR}/CiftiLib-${PV}"
+
+#TODO: Enable doc building and installation
+
+src_prepare(){
+	# Make sure that CiftiLib headers and code can
+	# coexist with nifti_io headers.
+	# This takes care of the guard in the nifti1.h header
+	# found in both code base.
+	sed \
+		-e "s:NIFTI_:CIFTI_NIFTI__:g" \
+		-i `grep -rl NIFTI_ *`
+	sed \
+		-e "s:DT_:CIFTI_DT_:g" \
+		-i `grep -rl DT_ *`
+
+	cmake-utils_src_prepare
+}
+
+src_configure() {
+	local mycmakeargs=(-DBUILD_SHARED_LIBS=ON)
+	use qt5 || mycmakeargs+=(-DIGNORE_QT=TRUE)
+
+	cmake-utils_src_configure
+}
+
+src_test(){
+	#The testsuite is not designed to run in parallel
+	local myctestargs=(
+			-j1
+	)
+	cmake-utils_src_test
+}

diff --git a/sci-libs/ciftilib/ciftilib-1.5.3.ebuild b/sci-libs/ciftilib/ciftilib-1.5.3.ebuild
deleted file mode 100644
index fc473f38c..000000000
--- a/sci-libs/ciftilib/ciftilib-1.5.3.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit cmake-utils
-
-DESCRIPTION="C++ Library for reading and writing CIFTI-2 and CIFTI-1 files"
-HOMEPAGE="https://github.com/Washington-University/CiftiLib"
-SRC_URI="https://github.com/Washington-University/CiftiLib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="
-	dev-cpp/libxmlpp:2.6
-	dev-libs/boost
-	sys-libs/zlib
-	"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/CiftiLib-${PV}"
-
-src_configure() {
-	local mycmakeargs=(
-		-DIGNORE_QT=TRUE
-	)
-	cmake-utils_src_configure
-}
-
-src_test(){
-	local myctestargs=(
-				-j1
-		)
-	cmake-utils_src_test
-}

diff --git a/sci-libs/ciftilib/files/ciftilib-1.5.3-openmp_in_pc.patch b/sci-libs/ciftilib/files/ciftilib-1.5.3-openmp_in_pc.patch
new file mode 100644
index 000000000..6fd35159a
--- /dev/null
+++ b/sci-libs/ciftilib/files/ciftilib-1.5.3-openmp_in_pc.patch
@@ -0,0 +1,12 @@
+diff --git a/CiftiLib.pc.in b/CiftiLib.pc.in
+index 13cd78c..8db6c46 100644
+--- a/CiftiLib.pc.in
++++ b/CiftiLib.pc.in
+@@ -5,6 +5,6 @@ Name: CiftiLib
+ Description: C++ Library for reading and writing CIFTI-2 and CIFTI-1 files
+ Version: @CIFTILIB_VERSION@
+ URL: https://github.com/Washington-University/CiftiLib
+-Cflags: -I${includedir}/CiftiLib @CIFTILIB_PKGCONFIG_DEFINE@
++Cflags: -I${includedir}/CiftiLib @CIFTILIB_PKGCONFIG_DEFINE@ @OpenMP_CXX_FLAGS@
+ Libs: -L${libdir} -lCifti
+ @CIFTILIB_PKGCONFIG_REQUIRES_LINE@


             reply	other threads:[~2018-10-20 21:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-20 21:29 Horea Christian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-30  9:31 [gentoo-commits] proj/sci:master commit in: sci-libs/ciftilib/, sci-libs/ciftilib/files/ Andrew Ammerlaan
2021-06-22 23:44 Horea Christian

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=1540070958.6a917c1243b83065c81e4d82c78a6022891df3ef.chymera@gentoo \
    --to=horea.christ@gmail.com \
    --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