/[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.1 - (hide annotations) (download)
Wed Dec 22 05:57:59 2010 UTC (9 years, 2 months ago) by bicatali
Branch: MAIN
Bump

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 bicatali 1.1 # Copyright 1999-2010 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.44.ebuild,v 1.1 2010/07/12 17:20:38 bicatali 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 ~x86-fbsd"
16    
17     RDEPEND="odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
18     gmp? ( dev-libs/gmp )
19     mysql? ( virtual/mysql )"
20    
21     DEPEND="${RDEPEND}
22     dev-util/pkgconfig"
23    
24     src_configure() {
25     local myconf="--disable-dl"
26     if use mysql || use odbc; then
27     myconf="--enable-dl"
28     fi
29    
30     [[ -z $(type -P odbc-config) ]] && \
31     append-cppflags $(pkg-config --cflags libiodbc)
32    
33     econf \
34     --with-zlib \
35     $(use_enable static-libs static) \
36     $(use_with gmp) \
37     $(use_enable odbc) \
38     $(use_enable mysql) \
39     ${myconf}
40     }
41    
42     src_install() {
43     emake DESTDIR="${D}" install || die "emake install failed"
44    
45     dodoc AUTHORS ChangeLog NEWS README || \
46     die "failed to install docs"
47    
48     insinto /usr/share/doc/${PF}
49     if use examples; then
50     emake distclean
51     doins -r examples || die "failed to install examples"
52     fi
53     if use doc; then
54     cd "${S}"/doc
55     doins *.pdf notes/*.pdf || die "failed to instal djvu and pdf"
56     dodoc *.txt || die "failed to install manual files"
57     fi
58     }

  ViewVC Help
Powered by ViewVC 1.1.20