blob: 4b26fc983014957a0e03a640062c08cde3dd7067 (
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
50
51
52
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/gecode/gecode-3.7.3.ebuild,v 1.1 2012/08/11 11:04:54 hollow Exp $
EAPI="4"
DESCRIPTION="Gecode is an environment for developing constraint-based systems and applications"
SRC_URI="http://www.gecode.org/download/${P}.tar.gz"
HOMEPAGE="http://www.gecode.org/"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples gist"
DEPEND="gist? (
x11-libs/qt-core
x11-libs/qt-gui
media-libs/freetype
media-libs/libpng
>=dev-libs/glib-2
)"
RDEPEND="${DEPEND}"
src_configure() {
econf \
--disable-examples \
$(use_enable gist qt) \
$(use_enable gist)
}
src_compile() {
default
use doc && emake doc
}
src_install() {
default
if use doc; then
dohtml -r doc/html/
einfo "HTML documentation has been installed into " \
"/usr/share/doc/${PF}/html"
fi
if use examples; then
docinto examples
doins examples/*.cpp
einfo "Example C++ programs have been installed into " \
"/usr/share/doc/${PF}/examples"
fi
}
|