You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/gts/gts-20111025-r1.ebuild

53 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gts/gts-20111025-r1.ebuild,v 1.4 2012/07/08 15:39:13 jer Exp $
EAPI=4
AUTOTOOLS_AUTORECONF=1
inherit autotools-utils fortran-2
DESCRIPTION="GNU Triangulated Surface Library"
LICENSE="LGPL-2"
HOMEPAGE="http://gts.sourceforge.net/"
SRC_URI="http://dev.gentoo.org/~bicatali/distfiles/${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
IUSE="doc examples static-libs test"
RDEPEND="virtual/fortran
dev-libs/glib:2"
DEPEND="${RDEPEND}
virtual/pkgconfig
test? ( media-libs/netpbm )"
# buggy
RESTRICT=test
S="${WORKDIR}"/${P/-20/-snapshot-}
PATCHES=( "${FILESDIR}"/${P}-autotools.patch )
src_compile() {
autotools-utils_src_compile
use doc && autotools-utils_src_compile -C doc html
}
src_test() {
chmod +x test/*/*.sh
cd ${AUTOTOOLS_BUILD_DIR}/test/boolean
ln -s "${S}"/test/boolean/{tests,surfaces} .
autotools-utils_src_test
}
src_install() {
use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}"/doc/html/)
autotools-utils_src_install
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins examples/*.c
fi
}