| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/volpack/volpack-1.0_p7.ebuild,v 1.3 2012/03/29 19:13:08 bicatali Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
MYP=${PN}-${PV/_p/c}
|
| 8 |
|
| 9 |
DESCRIPTION="Volume rendering library"
|
| 10 |
HOMEPAGE="http://amide.sourceforge.net/packages.html"
|
| 11 |
SRC_URI="mirror://sourceforge/amide/${MYP}.tgz"
|
| 12 |
|
| 13 |
LICENSE="BSD"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="doc examples static-libs"
|
| 17 |
|
| 18 |
RDEPEND=""
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
sys-devel/m4"
|
| 21 |
|
| 22 |
S="${WORKDIR}/${MYP}"
|
| 23 |
|
| 24 |
src_configure() {
|
| 25 |
econf $(use_enable static-libs static)
|
| 26 |
}
|
| 27 |
|
| 28 |
src_compile() {
|
| 29 |
emake -j1
|
| 30 |
}
|
| 31 |
|
| 32 |
src_install() {
|
| 33 |
default
|
| 34 |
use doc && dodoc doc/*.pdf && dohtml doc/*.html
|
| 35 |
if use examples; then
|
| 36 |
insinto /usr/share/doc/${PF}
|
| 37 |
doins -r examples
|
| 38 |
fi
|
| 39 |
|
| 40 |
}
|