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/itk/
Date: Tue,  2 Apr 2019 01:20:36 +0000 (UTC)	[thread overview]
Message-ID: <1554168009.b78267d25570586f0a6dfd7d8d948c974c4e2846.chymera@gentoo> (raw)

commit:     b78267d25570586f0a6dfd7d8d948c974c4e2846
Author:     Horea Christian <horea.christ <AT> yandex <DOT> com>
AuthorDate: Tue Apr  2 01:20:09 2019 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Tue Apr  2 01:20:09 2019 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=b78267d2

sci-libs/itk: version bump 5.0_rc1

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

 sci-libs/itk/itk-5.0_rc1.ebuild | 150 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 150 insertions(+)

diff --git a/sci-libs/itk/itk-5.0_rc1.ebuild b/sci-libs/itk/itk-5.0_rc1.ebuild
new file mode 100644
index 000000000..f6433e551
--- /dev/null
+++ b/sci-libs/itk/itk-5.0_rc1.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+
+inherit eutils toolchain-funcs cmake-utils python-single-r1
+
+MY_PV="5.0rc01"
+
+DESCRIPTION="NLM Insight Segmentation and Registration Toolkit"
+HOMEPAGE="http://www.itk.org"
+SRC_URI="
+	https://github.com/InsightSoftwareConsortium/ITK/archive/v${MY_PV}.tar.gz
+	test? ( https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.0rc01/InsightData-${MY_PV}.tar.gz )
+	"
+RESTRICT="primaryuri"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug doc examples fftw python review test vtkglue"
+
+RDEPEND="
+	dev-libs/double-conversion:0=
+	media-libs/openjpeg:2
+	media-libs/libpng:0=
+	media-libs/tiff:0=
+	sci-libs/dcmtk:0=
+	sci-libs/hdf5:0=[cxx]
+	sys-libs/zlib:0=
+	virtual/jpeg:0=
+	fftw? ( sci-libs/fftw:3.0= )
+	vtkglue? ( sci-libs/vtk:0=[python?] )
+"
+DEPEND="${RDEPEND}
+	python? (
+		${PYTHON_DEPS}
+		>=dev-lang/swig-2.0:0
+		>=dev-cpp/gccxml-0.9.0_pre20120309
+	)
+	doc? ( app-doc/doxygen )
+"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+S="${WORKDIR}/ITK-${MY_PV}"
+
+pkg_pretend() {
+	if [[ -z ${ITK_COMPUTER_MEMORY_SIZE} ]]; then
+		elog "To tune ITK to make the best use of working memory you can set"
+		elog "    ITK_COMPUTER_MEMORY_SIZE=XX"
+		elog "in make.conf, default is 1 (unit is GB)"
+	fi
+	if use python && [[ -z ${ITK_WRAP_DIMS} ]]; then
+		elog "For Python language bindings, you can define the dimensions"
+		elog "you want to create bindings for by setting"
+		elog "    ITK_WRAP_DIMS=X;Y;Z..."
+		elog "in make.conf, default is 2;3 for 2D and 3D data"
+	fi
+}
+
+src_prepare() {
+	sed -i -e "s/find_package(OpenJPEG 2.0.0/find_package(OpenJPEG/g"\
+		Modules/ThirdParty/GDCM/src/gdcm/CMakeLists.txt
+	default
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_SHARED_LIBS=ON
+		-DITK_USE_SYSTEM_DCMTK=ON
+		-DGDCM_USE_SYSTEM_OPENJPEG=ON
+		-DITK_USE_SYSTEM_DOUBLECONVERSION=ON
+		-DITK_USE_SYSTEM_CASTXML=ON
+		-DITK_USE_SYSTEM_HDF5=ON
+		-DITK_USE_SYSTEM_JPEG=ON
+		-DITK_USE_SYSTEM_PNG=ON
+		-DITK_USE_SYSTEM_SWIG=ON
+		-DITK_USE_SYSTEM_TIFF=ON
+		-DITK_USE_SYSTEM_ZLIB=ON
+		-DITK_USE_KWSTYLE=OFF
+		-DITK_BUILD_DEFAULT_MODULES=ON
+		-DITK_COMPUTER_MEMORY_SIZE="${ITK_COMPUTER_MEMORY_SIZE:-1}"
+		-DWRAP_ITK_JAVA=OFF
+		-DWRAP_ITK_TCL=OFF
+		-Ddouble-conversion_INCLUDE_DIRS="${EPREFIX}/usr/include/double-conversion"
+		-DExternalData_OBJECT_STORES="${WORKDIR}/InsightToolkit-${MY_PV}/.ExternalData"
+		-DBUILD_TESTING="$(usex test ON OFF)"
+		-DBUILD_EXAMPLES="$(usex examples ON OFF)"
+		-DITK_USE_REVIEW="$(usex review ON OFF)"
+		-DITK_INSTALL_LIBRARY_DIR=$(get_libdir)
+	)
+	if use fftw; then
+		mycmakeargs+=(
+			-DUSE_FFTWD=ON
+			-DUSE_FFTWF=ON
+			-DUSE_SYSTEM_FFTW=ON
+			-DITK_WRAP_double=ON
+			-DITK_WRAP_vector_double=ON
+			-DITK_WRAP_covariant_vector_double=ON
+			-DITK_WRAP_complex_double=ON
+		)
+	fi
+	if use vtkglue; then
+		mycmakeargs+=(
+			-DModule_ITKVtkGlue=ON
+		)
+	fi
+	if use python; then
+		mycmakeargs+=(
+			-DITK_WRAP_PYTHON=ON
+			-DITK_WRAP_DIMS="${ITK_WRAP_DIMS:-2;3}"
+		)
+	else
+		mycmakeargs+=(
+			-DITK_WRAP_PYTHON=OFF
+		)
+	fi
+	cmake-utils_src_configure
+}
+
+src_install() {
+	cmake-utils_src_install
+
+	if use examples; then
+		insinto /usr/share/doc/${PF}/examples
+		docompress -x /usr/share/doc/${PF}/examples
+		doins -r "${S}"/Examples/*
+	fi
+
+	echo "ITK_DATA_ROOT=${EROOT%/}/usr/share/${PN}/data" > ${T}/40${PN}
+	local ldpath="${EROOT%/}/usr/$(get_libdir)/InsightToolkit"
+	if use python; then
+		echo "PYTHONPATH=${EROOT%/}/usr/$(get_libdir)/InsightToolkit/WrapITK/Python" >> "${T}"/40${PN}
+		ldpath="${ldpath}:${EROOT%/}/usr/$(get_libdir)/InsightToolkit/WrapITK/lib"
+	fi
+	echo "LDPATH=${ldpath}" >> "${T}"/40${PN}
+	doenvd "${T}"/40${PN}
+
+	if use doc; then
+		insinto /usr/share/doc/${PF}/api-docs
+		cd "${WORKDIR}"/html
+		rm  *.md5 || die "Failed to remove superfluous hashes"
+		einfo "Installing API docs. This may take some time."
+		insinto /usr/share/doc/${PF}/api-docs
+		doins -r *
+	fi
+}


             reply	other threads:[~2019-04-02  1:20 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-02  1:20 Horea Christian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-22 11:58 [gentoo-commits] proj/sci:master commit in: sci-libs/itk/ Horea Christian
2023-04-25 15:33 Horea Christian
2023-04-25 15:33 Horea Christian
2023-04-20  3:13 Horea Christian
2023-04-20  3:13 Horea Christian
2023-04-03  2:58 Horea Christian
2022-09-15 11:17 Andrew Ammerlaan
2022-07-12 13:36 Horea Christian
2021-12-16 10:57 Andrew Ammerlaan
2021-03-13 23:55 Horea Christian
2021-03-13 23:55 Horea Christian
2021-03-04 20:57 Andrew Ammerlaan
2021-03-04 20:56 Andrew Ammerlaan
2021-01-19 16:56 Andrew Ammerlaan
2020-12-31 15:58 Aisha Tammy
2020-12-24 17:26 Horea Christian
2020-12-24 11:06 Horea Christian
2020-10-14  6:52 Horea Christian
2020-10-09 10:04 Horea Christian
2017-06-23  9:11 Justin Lecher
2015-09-21 17:44 Justin Lecher
2015-02-02 12:06 Justin Lecher
2014-01-06 19:58 Justin Lecher
2013-11-16 17:03 Guillaume Horel
2013-11-16 17:03 Guillaume Horel
2013-11-16 17:03 Guillaume Horel
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock
2013-09-11 17:27 Nicolas Bock

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=1554168009.b78267d25570586f0a6dfd7d8d948c974c4e2846.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