/[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.12 - (hide annotations) (download)
Fri Feb 27 14:14:35 2015 UTC (5 years ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +4 -3 lines
Version BUmp, #532906; fix missing slot Operators and inherits

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

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

  ViewVC Help
Powered by ViewVC 1.1.20