# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/qhull/qhull-2003.1.ebuild,v 1.1 2007/01/22 19:24:29 antarus Exp $ inherit eutils MY_P="${PN}${PV}" DESCRIPTION="Geometry library" HOMEPAGE="http://www.qhull.org" SRC_URI="${HOMEPAGE}/download/${P}.tar.gz" SLOT="0" LICENSE="BSD" KEYWORDS="~x86 ~sparc ~ppc ~amd64" IUSE="" src_unpack() { unpack ${A} cd ${S}/src mv Makefile.txt Makefile # Replaced sed/echo hacks by a clean patch. Fix build error on -fPIC archs # BUG #82646 # Danny van Dyk 2005/02/22 epatch ${FILESDIR}/${P}-makefile.patch } src_compile() { cd src emake CCOPTS1="${CFLAGS}" || die "emake failed" } src_install() { cd src dolib libqhull.a || die "dolib failed" dolib.so libqhull.so || die "dolib.so failed" dobin qconvex qdelaunay qhalf qhull qvoronoi rbox || die "dobin failed" insinto /usr/include/qhull doins *.h cd ${S} dodoc Announce.txt COPYING.txt File_id.diz README.txt REGISTER.txt cd html dohtml * dodoc *.txt for m in *man do newman ${m} ${m/.man/.1} done }