# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="GNU Linear Programming Kit" SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" HOMEPAGE="http://www.gnu.org/software/${PN}/" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="doc" RDEPEND="sys-libs/glibc" DEPEND=">=sys-devel/gcc-3.2* ${RDEPEND} doc? ( virtual/ghostscript )" src_compile() { # There is a missing -lm in example/Makefile, fixing it here LIBS="${LIBS} -lm" econf --enable-shared || die emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die "make install failed" # base docs dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README #examples docinto examples dodoc ${S}/examples/* #docs if use doc; then cd ${S}/doc for i in *.ps; do ps2pdf14 ${i} done fi dodoc ${S}/doc/* }