/[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.9 - (hide annotations) (download)
Thu Mar 8 15:14:10 2012 UTC (7 years, 11 months ago) by ranger
Branch: MAIN
Changes since 1.8: +2 -2 lines
Marking glpk-4.45 ppc64 for bug 391517

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 armin76 1.7 # Copyright 1999-2012 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 ranger 1.9 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/glpk/glpk-4.45.ebuild,v 1.8 2012/02/27 17:40:54 ranger Exp $
4 bicatali 1.1
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 ranger 1.9 KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux"
16 bicatali 1.1
17 hwoarang 1.6 RDEPEND="sys-libs/zlib
18     odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
19 bicatali 1.1 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