blob: ca45b674e8ef17ac344177f87e46358a24d7e521 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/glpk/glpk-4.8.ebuild,v 1.6 2009/09/23 20:10:31 patrick Exp $
DESCRIPTION="GNU Linear Programming Kit"
LICENSE="GPL-2"
HOMEPAGE="http://www.gnu.org/software/glpk/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
SLOT="0"
IUSE="doc"
KEYWORDS="amd64 ppc x86"
DEPEND=">=sys-devel/gcc-3.2
doc? ( virtual/ghostscript )"
RDEPEND=""
src_compile() {
LIBS="${LIBS} -lm" econf --enable-shared || die
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
# INSTALL include some usage docs
dodoc AUTHORS ChangeLog INSTALL NEWS README || \
die "failed to install docs"
# 250Kb
insinto /usr/share/doc/${PF}/examples
doins examples/*.mod && doins examples/*.tsp || \
die "failed to install examples"
# manual/ is 2.5Mb in size
if use doc; then
cd "${S}"/doc
for i in *.ps; do
ps2pdf14 "${i}" || die "failed to convert ps to pdf"
done
insinto /usr/share/doc/${PF}/manual
doins * || die "failed to install manual files"
fi
}
|