/[gentoo-x86]/sci-mathematics/glpk/glpk-4.48.ebuild
Gentoo

Contents of /sci-mathematics/glpk/glpk-4.48.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Feb 27 14:14:35 2015 UTC (4 years, 11 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -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 # Copyright 1999-2015 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.48.ebuild,v 1.5 2014/04/15 15:35:08 bicatali Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic toolchain-funcs autotools-utils
8
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 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
17
18 RDEPEND="
19 gmp? ( dev-libs/gmp:0 )
20 mysql? ( virtual/mysql )
21 odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )"
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig"
24
25 PATCHES=(
26 "${FILESDIR}"/${PN}-4.52.1-mariadb-5.5.patch
27 )
28
29 src_configure() {
30 local myeconfargs=(
31 $(use_enable mysql)
32 $(use_enable odbc)
33 $(use_with gmp)
34 )
35 if use mysql || use odbc; then
36 myeconfargs+=( --enable-dl )
37 else
38 myeconfargs+=( --disable-dl )
39 fi
40 [[ -z $(type -P odbc-config) ]] && \
41 append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc)
42
43 autotools-utils_src_configure
44 }
45
46 src_install() {
47 autotools-utils_src_install
48 if use examples; then
49 insinto /usr/share/doc/${PF}
50 doins -r examples
51 fi
52 use doc && dodoc doc/*.pdf doc/notes/*.pdf doc/*.txt
53 }

  ViewVC Help
Powered by ViewVC 1.1.20