Source

and3k-sunrise-overlay / sci-visualization / voxx-bin / voxx-bin-2.0.1.ebuild

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

inherit rpm versionator

DESCRIPTION="A Volume Rendering Program for 3D Microscopy"
HOMEPAGE="http://www.nephrology.iupui.edu/imaging/voxx/"
LICENSE="Voxx2"

MY_PV=$(replace_version_separator 2 '-')
SRC_URI="http://www.nephrology.iupui.edu/voxx/download/voxx2-${MY_PV}.i586.rpm"

SLOT="2"
KEYWORDS="~amd64"
IUSE="doc"

RDEPEND="sys-libs/libstdc++-v3"

MY_INSTALL_PATH=/opt/voxx2

src_install () {
	exeinto ${MY_INSTALL_PATH}/bin
	doexe usr/local/voxx2/Voxx2
	exeinto ${MY_INSTALL_PATH}/lib
	doexe usr/lib/libqt-mt.so.3
	make_wrapper voxx2 ./bin/Voxx2 /opt/voxx2 /opt/voxx2/lib
	dosym voxx2 /usr/bin/voxx

	if use doc; then
		dohtml usr/local/voxx2/docs/*.html
	fi

	make_desktop_entry voxx2 "Voxx 2" voxx "Education;Science;Biology;Graphics;3DGraphics"
}

pkg_postinst() {
	if use doc; then
		elog "The Voxx documentation is missing all image files."
		elog "The images are however included in non-Linux versions."
	fi
}