/[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.11 - (hide annotations) (download)
Wed Feb 5 21:54:33 2014 UTC (6 years ago) by bicatali
Branch: MAIN
Changes since 1.10: +6 -2 lines
Fixed bug #420095 when mariadb is selected, thanks Dennis Schridde for his patch

(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 bicatali 1.11 # Copyright 1999-2014 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 bicatali 1.11 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/glpk/glpk-4.45.ebuild,v 1.10 2012/05/04 07:46:50 jdhore 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 jdhore 1.10 virtual/pkgconfig"
24 bicatali 1.1
25 bicatali 1.11 src_prepare() {
26     epatch "${FILESDIR}"/${PN}-4.52.1-mariadb-5.5.patch
27     }
28    
29 bicatali 1.1 src_configure() {
30     local myconf="--disable-dl"
31     if use mysql || use odbc; then
32     myconf="--enable-dl"
33     fi
34    
35     [[ -z $(type -P odbc-config) ]] && \
36     append-cppflags $(pkg-config --cflags libiodbc)
37    
38     econf \
39     --with-zlib \
40     $(use_enable static-libs static) \
41     $(use_with gmp) \
42     $(use_enable odbc) \
43     $(use_enable mysql) \
44     ${myconf}
45     }
46    
47     src_install() {
48     emake DESTDIR="${D}" install || die "emake install failed"
49    
50     dodoc AUTHORS ChangeLog NEWS README || \
51     die "failed to install docs"
52    
53     insinto /usr/share/doc/${PF}
54     if use examples; then
55     emake distclean
56     doins -r examples || die "failed to install examples"
57     fi
58     if use doc; then
59     cd "${S}"/doc
60     doins *.pdf notes/*.pdf || die "failed to instal djvu and pdf"
61     dodoc *.txt || die "failed to install manual files"
62     fi
63     }

  ViewVC Help
Powered by ViewVC 1.1.20