/[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.5 - (hide annotations) (download)
Thu Dec 1 17:22:17 2011 UTC (8 years, 2 months ago) by jer
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable for HPPA (bug #391517).

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

1 haubi 1.2 # Copyright 1999-2011 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.5 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/glpk/glpk-4.45.ebuild,v 1.4 2011/11/28 11:50:25 phajdan.jr 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 jer 1.5 KEYWORDS="~alpha ~amd64 hppa ~ppc ~ppc64 ~sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux"
16 bicatali 1.1
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