# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils versionator MY_PN="dicom3tools" MY_PV=${PV} MY_P=${MY_PN}-${MY_PV} DESCRIPTION="Collection of command line utilities for creating, modifying, dumping and validating DICOM attributes" HOMEPAGE="http://www.dclunie.com/dicom3tools.html" SRC_URI="http://www.dclunie.com/dicom3tools/workinprogress/dicom3tools_1.00.snapshot.20110207.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND=" sys-devel/gcc x11-misc/imake " RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_PN}_1.00.snapshot.${MY_PV}" src_prepare() { echo "${S}" cd ${S} epatch "${FILESDIR}/${MY_PN}-c++.patch" } src_configure() { cd ${S} sh ./Configure imake -I./config } src_compile() { make World } src_install() { emake DESTDIR="${D}" install || die "Install failed" emake DESTDIR="${D}" install.man || die "manpages install failed" }