# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 DESCRIPTION="Electric design tool" HOMEPAGE="http://eds.emiter.com/" SRC_URI="x86? ( http://static.emiter.com/eds/pkg/distfiles/${PF}-i686.tar.bz2 ) amd64? ( http://static.emiter.com/eds/pkg/distfiles/${PF}-x86_64.tar.bz2 )" LICENSE="EDS" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="libs" inherit eutils qt4-r2 DEPEND=">=dev-libs/crypto++-5 >=sci-libs/opencascade-6.5.3 >=x11-libs/qt-gui-4.8.0 >=x11-libs/qt-opengl-4.8.0 virtual/opengl " RDEPEND="${DEPEND} libs? ( sci-misc/eds-libs )" pkg_setup() { occ_ver="$(best_version ">=sci-libs/opencascade-6.5" | cut -d- -f3)" if [[ "$CASROOT" == "" ]] ; then CASROOT="${ROOT}usr/$(get_libdir)/opencascade-${occ_ver}/ros/lin/" if [[ ! -e "${CASROOT}env.sh" ]] ; then elog "It's not possible to install and run EDS2 when OpenCASCADE" elog "is not installed and configured correctly. Please install " elog "sci-libs/opencascade and run source /etc/profile if necessary" die fi fi } src_install() { dobin EDS2 dolib.so *.so.* doicon -s 32 ico/32/EDS.png doicon -s 128 ico/128/EDS.png doicon ico/128/EDS.png make_desktop_entry EDS2 ${PN} ${PN} "Office;Qt;Education;Science;Electricity;Engineering;" }