aboutsummaryrefslogtreecommitdiff
blob: 41995d347826b9e2d5d9932b9223cb744dddffd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils flag-o-matic autotools

DESCRIPTION="lattE-macchiato consists of tools for lattice point enumeration"
SRC_URI="http://www.math.ucdavis.edu/~mkoeppe/latte/download/latte-for-tea-too-1.2-mk-0.9.3.tar.gz"
#	mirror://gentoo/${P}-src.tar.bz2

HOMEPAGE="http://www.math.ucdavis.edu/~mkoeppe/latte/"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"

DEPEND="dev-libs/gmp[-nocxx]
	>=dev-libs/ntl-5.4.2
	sci-mathematics/4ti2
	>=sci-libs/cdd+-077a
	>=sci-mathematics/glpk-4.13
	>=sci-libs/cddlib-094f"
RDEPEND="${DEPEND}"

S="${WORKDIR}/latte-for-tea-too-1.2-mk-0.9.3"

# For now LattE builds an internal version of Lidia.
# This will not be split off for now because it is heavily patched
# and based on a version that was not even released.

src_prepare() {
	cd "${S}"
	epatch "${FILESDIR}/buildpackages.patch"

	eautoreconf
}

src_install() {
	# install
	cd "${S}"/lidia-2.2.1-pre1+svn-1069+lattepatches-0.1/
	emake DESTDIR="${D}" install || die "Install failed"
	cd "${S}"/latte-1.2-mk-0.9.3/
	emake DESTDIR="${D}" install || die "Install failed"
	# ... and get rid of minimize which is provided by 4ti2:
	rm "${D}"/usr/bin/minimize || die "Removing minimize failed"
}