/[gentoo-x86]/sci-mathematics/glpk/glpk-4.45.ebuild
Gentoo

Contents of /sci-mathematics/glpk/glpk-4.45.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Dec 2 22:09:55 2011 UTC (8 years, 2 months ago) by hwoarang
Branch: MAIN
Changes since 1.5: +4 -3 lines
Add missing zlib dependency. Stable on amd64. Bug #391517

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/glpk/glpk-4.45.ebuild,v 1.5 2011/12/01 17:22:17 jer Exp $
4
5 EAPI=2
6 inherit flag-o-matic
7
8 DESCRIPTION="GNU Linear Programming Kit"
9 LICENSE="GPL-3"
10 HOMEPAGE="http://www.gnu.org/software/glpk/"
11 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
12
13 SLOT="0"
14 IUSE="doc examples gmp odbc mysql static-libs"
15 KEYWORDS="~alpha amd64 hppa ~ppc ~ppc64 ~sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux"
16
17 RDEPEND="sys-libs/zlib
18 odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
19 gmp? ( dev-libs/gmp )
20 mysql? ( virtual/mysql )"
21
22 DEPEND="${RDEPEND}
23 dev-util/pkgconfig"
24
25 src_configure() {
26 local myconf="--disable-dl"
27 if use mysql || use odbc; then
28 myconf="--enable-dl"
29 fi
30
31 [[ -z $(type -P odbc-config) ]] && \
32 append-cppflags $(pkg-config --cflags libiodbc)
33
34 econf \
35 --with-zlib \
36 $(use_enable static-libs static) \
37 $(use_with gmp) \
38 $(use_enable odbc) \
39 $(use_enable mysql) \
40 ${myconf}
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" install || die "emake install failed"
45
46 dodoc AUTHORS ChangeLog NEWS README || \
47 die "failed to install docs"
48
49 insinto /usr/share/doc/${PF}
50 if use examples; then
51 emake distclean
52 doins -r examples || die "failed to install examples"
53 fi
54 if use doc; then
55 cd "${S}"/doc
56 doins *.pdf notes/*.pdf || die "failed to instal djvu and pdf"
57 dodoc *.txt || die "failed to install manual files"
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20