blob: 1249e66d809a843881d278b86bf0403277636ef7 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/cddlib/cddlib-094f-r2.ebuild,v 1.4 2011/08/13 07:12:13 xarthisius Exp $
EAPI="3"
inherit autotools-utils
DESCRIPTION="C implementation of the Double Description Method of Motzkin et al."
HOMEPAGE="http://www.ifor.math.ethz.ch/~fukuda/cdd_home/"
SRC_URI="ftp://ftp.ifor.math.ethz.ch/pub/fukuda/cdd/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="doc static-libs"
DEPEND=">=dev-libs/gmp-4.2.2"
RDEPEND="${DEPEND}"
AUTOTOOLS_IN_SOURCE_BUILD="1"
DOCS=( ChangeLog README )
PATCHES=(
"${FILESDIR}"/${PN}-094f-use-libtool.patch
"${FILESDIR}"/${PN}-094f-add-cdd_both_reps-binary.patch
)
src_prepare() {
autotools-utils_src_prepare
eautoreconf
cp "${FILESDIR}"/cdd_both_reps.c "${S}"/src/ \
|| die "failed to copy source file"
ln -s "${S}"/src/cdd_both_reps.c "${S}"/src-gmp/cdd_both_reps.c \
|| die "failed to make symbolic link to source file"
}
src_install() {
if use doc ; then
DOCS=( ${DOCS[@]} doc/cddlibman.pdf doc/cddlibman.ps )
fi
autotools-utils_src_install
}
|