Added older ebuild version
depends on gccxml?
This commit is contained in:
parent
389efa4b90
commit
2e61b95b9a
@ -1,2 +1,4 @@
|
|||||||
|
DIST DoxygenInsightToolkit-4.5.0.tar.gz 871324021 SHA256 bcc66662aa836cbb287a184870ba0aaf1b94e47d16d8e5d8bd2d30d77172781e SHA512 0bdf870c1600d847a635eefb8109dc12030387124de70c5c2b03f6a61bab796ce39c56792fcaa5779f741fce9c4d9bc621dcd70b389a805301e14c01422202a1 WHIRLPOOL 6315d22958bbfd7435d9948f1da6f3c1695abf441fc80b6c3545ad48cff42c4c0e871c091251c40cc7a2db422123304d4feaf08527c67236b34ced11c569487d
|
||||||
DIST InsightData-5.0rc01.tar.gz 290621965 SHA256 c4b6172809fd86ee623311001bdf7b79e801bddb9bbb8cb7123b2e5cc04f5c4f SHA512 0be5568b75017a4c4cbfc4a4e7b0339537cd2dc23d5d5637a95002e040b96f923851bc354f3a1447d3802444a951b62d2ef66ad2a0db0961bf2bd9f47399fd9a WHIRLPOOL 35668bb25fc4fd6db3b63683cb26d62f46467f3304998ec3ddcd93cd55c9532f9701feda6f9e9e14c9d3a695434ce8c3e68ba916b1e26e3bb53df2f8aae7836b
|
DIST InsightData-5.0rc01.tar.gz 290621965 SHA256 c4b6172809fd86ee623311001bdf7b79e801bddb9bbb8cb7123b2e5cc04f5c4f SHA512 0be5568b75017a4c4cbfc4a4e7b0339537cd2dc23d5d5637a95002e040b96f923851bc354f3a1447d3802444a951b62d2ef66ad2a0db0961bf2bd9f47399fd9a WHIRLPOOL 35668bb25fc4fd6db3b63683cb26d62f46467f3304998ec3ddcd93cd55c9532f9701feda6f9e9e14c9d3a695434ce8c3e68ba916b1e26e3bb53df2f8aae7836b
|
||||||
|
DIST InsightToolkit-4.13.2.tar.xz 12424136 SHA256 dabe05234d24635c96fd9b1a5f5e3afc34e11f49a31e5107db19bf61da758fa5 SHA512 7ddca802d0c4ee644eb58e621d8cb7c4b75247ceb86a559aeae9160d2456bbbbecb0a23738a0e7617c23bdfd35d5bf9adbf83bba07d6f86b067d25ee520435aa WHIRLPOOL 696dc3a6de3516c7addffae90d6f1958ca49494993ce12aebd88c8f4b2e937b110996270d4eb9eb216550800c2b480d3502dd6852a01efb3704b71b73b1df5d8
|
||||||
DIST v5.0rc01.tar.gz 20944543 SHA256 fa6cd61bc39ccdc53808b9b0df5dd95d63a3c08be130e63ab0f4b77ca9594e46 SHA512 30e327708c7717bb2131911c86802c4104730d146b4263c68ae89384d3f01a6675b3abf5962af14cc7f40984cb1e8eedd911fe0f084a8deb4c79b4239b309728 WHIRLPOOL 6447eccbb17573233f750e3462dadd4c44c177613ca88520787579cc6e10ac523488e44dbf0f3e690a0cc009443b5adccdf62b588bdf6180dbda4a98b7d03cef
|
DIST v5.0rc01.tar.gz 20944543 SHA256 fa6cd61bc39ccdc53808b9b0df5dd95d63a3c08be130e63ab0f4b77ca9594e46 SHA512 30e327708c7717bb2131911c86802c4104730d146b4263c68ae89384d3f01a6675b3abf5962af14cc7f40984cb1e8eedd911fe0f084a8deb4c79b4239b309728 WHIRLPOOL 6447eccbb17573233f750e3462dadd4c44c177613ca88520787579cc6e10ac523488e44dbf0f3e690a0cc009443b5adccdf62b588bdf6180dbda4a98b7d03cef
|
||||||
|
150
sci-libs/itk/itk-4.13.2.ebuild
Normal file
150
sci-libs/itk/itk-4.13.2.ebuild
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
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
|
||||||
|
)
|
||||||
|
|
||||||
|
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_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_GCCXML=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="${ITK_COMPUTER_MEMORY_SIZE:-1}"
|
||||||
|
-DWRAP_ITK_JAVA=OFF
|
||||||
|
-DWRAP_ITK_TCL=OFF
|
||||||
|
-Ddouble-conversion_INCLUDE_DIRS="${EPREFIX}/usr/include/double-conversion"
|
||||||
|
-Ddouble-conversion_LIBRARIES="-ldouble-conversion"
|
||||||
|
$(cmake-utils_use_build test TESTING)
|
||||||
|
$(cmake-utils_use_build examples EXAMPLES)
|
||||||
|
$(cmake-utils_use review ITK_USE_REVIEW)
|
||||||
|
$(cmake-utils_use itkv3compat ITKV3_COMPATIBILITY)
|
||||||
|
$(cmake-utils_use cpu_flags_x86_sse2 VNL_CONFIG_ENABLE_SSE2)
|
||||||
|
)
|
||||||
|
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
|
||||||
|
}
|
@ -14,6 +14,7 @@ that provides developers with an extensive suite of tools for image
|
|||||||
analysis.
|
analysis.
|
||||||
</longdescription>
|
</longdescription>
|
||||||
<use>
|
<use>
|
||||||
|
<flag name="itkv3compat">Enable compatibility with ITK version 3</flag>
|
||||||
<flag name="review">Enable compilation of methods under review</flag>
|
<flag name="review">Enable compilation of methods under review</flag>
|
||||||
<flag name="vtkglue">PLEASE FIX MY DESCRIPTION</flag>
|
<flag name="vtkglue">PLEASE FIX MY DESCRIPTION</flag>
|
||||||
</use>
|
</use>
|
||||||
|
Loading…
Reference in New Issue
Block a user