public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Nicolas Bock" <nicolasbock@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/itk/
Date: Wed, 11 Sep 2013 17:27:07 +0000 (UTC)	[thread overview]
Message-ID: <1370954477.3779b5c4cbb17b6d8865c8dbf74ec197c487e38c.nicolasbock@gentoo> (raw)

commit:     3779b5c4cbb17b6d8865c8dbf74ec197c487e38c
Author:     Gert Wollny <gert <AT> die <DOT> upm <DOT> es>
AuthorDate: Tue Jun 11 12:41:17 2013 +0000
Commit:     Nicolas Bock <nicolasbock <AT> gmail <DOT> com>
CommitDate: Tue Jun 11 12:41:17 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3779b5c4

correct most of the issues given in the pull request

---
 sci-libs/itk/itk-4.4.0.ebuild | 43 +++++++++++++++++++++----------------------
 1 file changed, 21 insertions(+), 22 deletions(-)

diff --git a/sci-libs/itk/itk-4.4.0.ebuild b/sci-libs/itk/itk-4.4.0.ebuild
index 1afef6b..0a58c9b 100644
--- a/sci-libs/itk/itk-4.4.0.ebuild
+++ b/sci-libs/itk/itk-4.4.0.ebuild
@@ -3,23 +3,23 @@
 # $Header: $
 
 EAPI="5"
-PYTHON_DEPEND="2:2.6"
 
-inherit eutils toolchain-funcs cmake-utils
+PYTHON_COMPAT=( python{2_5,2_6,2_7} )
+
+inherit eutils toolchain-funcs cmake-utils  python‑single‑r1
 
 DESCRIPTION="NLM Insight Segmentation and Registration Toolkit"
 HOMEPAGE="http://www.itk.org"
 SRC_URI="mirror://sourceforge/itk/InsightToolkit-${PV}.tar.gz"
 RESTRICT="primaryuri"
 
-LICENSE="BSD"
+LICENSE="APACHE-2.0"
 SLOT="0"
 KEYWORDS="~x86 ~amd64"
-IUSE="debug examples fftw +shared test python hdf5 itkv3compat review patented"
+IUSE="debug examples fftw hdf5 itkv3compat patented python  review test"
 
-RDEPEND="sys-libs/zlib
-	fftw? ( sci-libs/fftw )
-	hdf5?  ( sci-libs/hdf5[cxx] )
+RDEPEND="fftw? ( sci-libs/fftw:3 )
+	 hdf5? ( sci-libs/hdf5[cxx] )
 		virtual/jpeg
 		media-libs/libpng
 		media-libs/tiff:0
@@ -33,9 +33,9 @@ DEPEND="${RDEPEND}
 MY_PN=InsightToolkit
 S="${WORKDIR}/${MY_PN}-${PV}"
 
-src_prepare() {
-	epatch "${FILESDIR}/itk-4.4-v3compat_I2VI_const-fix.patch"
-}
+PATCHES=(
+	"${FILESDIR}/itk-4.4-v3compat_I2VI_const-fix.patch"
+)
 
 src_configure() {
 	if [ "x$ITK_COMPUTER_MEMORY_SIZE" = "x" ]; then
@@ -56,10 +56,10 @@ src_configure() {
 		 -DITK_BUILD_ALL_MODULES=ON
 		 -DITK_USE_SYSTEM_GCCXML=ON
 		 -DITK_USE_SYSTEM_SWIG=ON
+                 -DBUILD_SHARED_LIBS=ON
+		$(cmake-utils_use_build examples)
+		$(cmake-utils_use_build test TESTING)
 		$(cmake-utils_use hdf5 ITK_USE_SYSTEM_HDF5)
-		$(cmake-utils_use examples BUILD_EXAMPLES)
-		$(cmake-utils_use shared BUILD_SHARED_LIBS)
-		$(cmake-utils_use test BUILD_TESTING)
 		$(cmake-utils_use review ITK_USE_REVIEW)
 		$(cmake-utils_use patented ITK_USE_PATENTED)
 		)
@@ -104,21 +104,20 @@ src_install() {
 		rm -rf $(find "Examples" -type d -a -name "CMakeFiles") \; || \
 			 die "Failed remove build files"
 
-		dodir /usr/share/${MY_PN}/examples ||	\
-			die "Failed to create examples directory"
+		dodir /usr/share/${MY_PN}/examples 
 
 		pushd "${S}"
-		# remove CVS directories from examples folder
-		rm -rf $(find "Examples" -type d -name CVS ) ||\
-			die "Failed to remove CVS folders"
+
+
 		cp -pPR "Examples" "${D}/usr/share/${MY_PN}/examples/src" || \
 			die "Failed to copy example files"
 
 		popd
 
 		# copy binary examples
-		cp -pPR "bin" "${D}/usr/share/${MY_PN}/examples" || \
-			die "Failed to copy binary example files"
+                insinto /usr/share/${MY_PN}/examples
+                doins -r bin    
+
 		rm -rf "${D}"/usr/share/"${MY_PN}"/examples/bin/*.so* || \
 			die "Failed to remove libraries from examples directory"
 
@@ -132,9 +131,9 @@ src_install() {
 	fi
 	popd
 
-	echo "ITK_DATA_ROOT=/usr/share/${PN}/data" > ${T}/40${PN}
+	echo "ITK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data" > ${T}/40${PN}
 
-	LDPATH="/usr/lib/InsightToolkit"
+	LDPATH="/usr/$(get_libdir)/InsightToolkit"
 
 	if use python; then
 	   echo "PYTHONPATH=/usr/lib/InsightToolkit/WrapITK/Python" >> ${T}/40${PN}


             reply	other threads:[~2013-09-11 17:27 UTC|newest]

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