# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.5.1.ebuild,v 1.2 2013/11/26 13:31:45 pinkbyte Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 ) RUBY_OPTIONAL="yes" USE_RUBY="ruby19" inherit toolchain-funcs versionator python-r1 mono-env ruby-ng db-use DESCRIPTION="ICE middleware C++ library and generator tools" HOMEPAGE="http://www.zeroc.com/" SRC_URI="http://www.zeroc.com/download/Ice/$(get_version_component_range 1-2)/${P}.tar.gz doc? ( http://www.zeroc.com/download/Ice/$(get_version_component_range 1-2)/${P}.pdf )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~ia64 ~x86 ~x86-linux ~x64-macos" IUSE="doc examples +ncurses mono python ruby test debug" RDEPEND=">=dev-libs/expat-2.0.1 >=app-arch/bzip2-1.0.5 >=dev-libs/openssl-0.9.8o:0 /dev/null || die ./allTests.py --script | sh ret=${?} popd >/dev/null || die return ${ret} } src_test() { run_tests cpp || die "emake cpp test failed" if use python ; then testing() { # tests require that the directory is named 'py' ln -f -s ../"${BUILD_DIR}"/python py/python || die run_tests py || die "emake py-${EPYTHON} test failed" } BUILD_DIR=py python_foreach_impl testing fi if use ruby ; then run_tests rb || die "emake rb test failed" fi if use mono ; then # ewarn "Tests for C# are currently disabled." run_tests cs || die "emake cs test failed" fi }