From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7DC49139694 for ; Fri, 23 Jun 2017 09:11:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2899BE0D49; Fri, 23 Jun 2017 09:11:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8C8DE0D49 for ; Fri, 23 Jun 2017 09:11:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 198E7341A28 for ; Fri, 23 Jun 2017 09:11:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C611D73E2 for ; Fri, 23 Jun 2017 09:11:48 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1498209101.039697bf6b87b07578ac626d015e71bc38901722.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/itk/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/itk/itk-4.12.0.ebuild X-VCS-Directories: sci-libs/itk/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 039697bf6b87b07578ac626d015e71bc38901722 X-VCS-Branch: master Date: Fri, 23 Jun 2017 09:11:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 75264dfb-736d-429b-9d82-5c5706c616e7 X-Archives-Hash: 37f893dba3d541a3a88f0f084398e4a9 commit: 039697bf6b87b07578ac626d015e71bc38901722 Author: tharvik users noreply github com> AuthorDate: Sun Jun 18 22:31:57 2017 +0000 Commit: Justin Lecher gentoo org> CommitDate: Fri Jun 23 09:11:41 2017 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=039697bf sci-libs/itk: bump to 4.12.0 Package-Manager: Portage-2.3.5, Repoman-2.3.1 Closes: https://github.com/gentoo/sci/pull/792 sci-libs/itk/itk-4.12.0.ebuild | 136 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/sci-libs/itk/itk-4.12.0.ebuild b/sci-libs/itk/itk-4.12.0.ebuild new file mode 100644 index 000000000..a9633748b --- /dev/null +++ b/sci-libs/itk/itk-4.12.0.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs cmake-utils python-single-r1 + +MYPN=InsightToolkit +MYP=${MYPN}-${PV} +DOC_PV=4.5.0 + +DESCRIPTION="NLM Insight Segmentation and Registration Toolkit" +HOMEPAGE="http://www.itk.org" +SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.xz + doc? ( mirror://sourceforge/${PN}/Doxygen${MYPN}-${DOC_PV}.tar.gz )" +RESTRICT="primaryuri" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="debug doc examples +fftw itkv3compat python review cpu_flags_x86_sse2 test vtkglue" + +RDEPEND=" + dev-libs/double-conversion:0= + 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}/${MYP}" + +PATCHES=( + "${FILESDIR}/nrrdio-linking.patch" +) + +get_memory() { + free --giga | grep Mem | cut -d ' ' -f 15 || die 'unable to get memory size' +} + +src_configure() { + sed -i \ + -e '/find_package/d' \ + Modules/ThirdParty/DoubleConversion/CMakeLists.txt || die + + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DITK_USE_SYSTEM_DCMTK=ON + -DITK_USE_SYSTEM_DOUBLECONVERSION=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_BUILD_DEFAULT_MODULES=ON + -DITK_COMPUTER_MEMORY_SIZE="$(get_memory)" + -DITK_WRAP_JAVA=OFF + -DITK_WRAP_TCL=OFF + -DBUILD_TESTING=$(usex test) + -DBUILD_EXAMPLES=$(usex examples) + -DITK_USE_REVIEW=$(usex review) + -DITKV3_COMPATIBILITY=$(usex itkv3compat) + -DVNL_CONFIG_ENABLE_SSE2=$(usex cpu_flags_x86_sse2) + ) + if use fftw; then + mycmakeargs+=( + -DUSE_FFTWD=ON + -DUSE_FFTWF=ON + -DUSE_SYSTEM_FFTW=ON + -DITK_USE_SYSTEM_FFTW=ON + -DITK_WRAPPING=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 + mycmakeargs+=( + -DITK_WRAP_PYTHON=$(usex python ON OFF) + ) + + 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 + + mv "${D}/usr/lib" "${D}/usr/$(get_libdir)" || \ + die 'unable to fix libdir' +}