summaryrefslogtreecommitdiff
blob: 8839258650330bbd28486048dd9f7a966df64a4a (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/sptk/sptk-2.2.1.ebuild,v 1.2 2004/08/30 23:34:34 dholm Exp $

IUSE="fltk odbc"

DESCRIPTION="C++ user interface toolkit for X with database and Excel support"
SRC_URI="http://sptk.tts-sf.com/${P}.tgz"
HOMEPAGE="http://sptk.tts-sf.com"

SLOT="2"
LICENSE="FLTK | GPL-2"
KEYWORDS="-* ~x86 ~sparc ~mips ~ppc"

DEPEND="fltk? ( x11-libs/fltk )
	odbc? ( >=dev-db/unixODBC-2.2.8 )"

src_compile() {

	local myconf
	myconf="--enable-shared"

	use odbc || myconf="${myconf} --disable-odbc" #default enabled
	use fltk || myconf="${myconf} --disable-fltk"

	econf \
		--prefix=/usr \
		${myconf} || die "Configuration Failed"

	emake || die "Parallel Make Failed"
}

src_install () {

	einstall \
		includedir=${D}/usr/include/sptk \
		libdir=${D}/usr/lib || die "Installation Failed"

	dodoc CHANGES COPYING README

	dodir /usr/share/doc/${PF}/html
	mv ${D}/usr/share/doc/sptk/* ${D}/usr/share/doc/${PF}/html
	rmdir ${D}/usr/share/doc/sptk
}