Skip to content

Commit

Permalink
sci-libs/opencascade: add USE=vtk (bug 557022, thanks Helmut Jarausch).
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.20
  • Loading branch information
xmw committed Aug 9, 2015
1 parent b8f141a commit 40b3fd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion sci-libs/opencascade/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<use>
<flag name="freeimage">Enable support for image i/o via media-libs/freeimage</flag>
<flag name="gl2ps">Use gl2ps PostScript printing library</flag>
<flag name="tbb">tEnable multithreading with the Intel Threads Building Block dev-cpp/tbb</flag>
<flag name="tbb">Enable multithreading with the Intel Threads Building Block dev-cpp/tbb</flag>
<flag name="vtk">Enable Virtualisation Toolkit</flag>
</use>
</pkgmetadata>
9 changes: 7 additions & 2 deletions sci-libs/opencascade/opencascade-6.9.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ SRC_URI="http://files.opencascade.com/OCCT/OCC_${PV}_release/opencascade-${PV}.t
LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )"
SLOT="${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc examples freeimage gl2ps java qt4 +tbb"
IUSE="debug doc examples freeimage gl2ps java qt4 +tbb +vtk"

MY_VTK="vtk-6.1"
DEPEND="app-eselect/eselect-opencascade
dev-lang/tcl:0=
dev-lang/tk:0=
Expand All @@ -28,7 +29,8 @@ DEPEND="app-eselect/eselect-opencascade
freeimage? ( media-libs/freeimage )
gl2ps? ( x11-libs/gl2ps )
java? ( virtual/jdk:= )
tbb? ( dev-cpp/tbb )"
tbb? ( dev-cpp/tbb )
vtk? ( =sci-libs/${MY_VTK}* )"
RDEPEND="${DEPEND}"

# http://bugs.gentoo.org/show_bug.cgi?id=352435
Expand Down Expand Up @@ -108,6 +110,7 @@ TCL_LIBRARY=${my_sys_lib}/tcl$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*
-e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \
-e "s:\$qt/include:\$qt/include/qt4:g"\
-e "s:\$qt/lib:\$qt/$(get_libdir)/qt4:g"\
-e "/CSF_VTK_LIB=/s:-${MY_VTK/vtk-}::g" \
-i configure.ac || die
eautoreconf
}
Expand All @@ -124,6 +127,8 @@ src_configure() {
$(usex tbb "--with-tbb-include=${EROOT}usr" "") \
$(usex tbb "--with-tbb-library=${EROOT}usr" "") \
$(use java && echo "--with-java-include=$(java-config -O)/include" || echo "--without-java-include") \
$(usex vtk "--with-vtk-include=${EROOT}usr/include/${MY_VTK}" "") \
$(usex vtk "--with-vtk-library=${EROOT}usr/$(get_libdir)" "") \
$(use_enable debug) \
$(use_enable !debug production)
}
Expand Down

0 comments on commit 40b3fd6

Please sign in to comment.