summaryrefslogtreecommitdiff
blob: 425ce0605668ee01fc52dc19344dc09df5eceb64 (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql++/mysql++-1.7.9.ebuild,v 1.14 2004/08/14 21:48:35 robbat2 Exp $

inherit gcc eutils

DESCRIPTION="C++ API interface to the MySQL database"
# This is the download page but includes links to other places
HOMEPAGE="http://www.mysql.org/downloads/api-mysql++.html"
SRC_URI="http://mysql.he.net/Downloads/${PN}/${P}.tar.gz
	http://mysql.adgrafix.com/Downloads/${PN}/${P}.tar.gz
	http://mysql.fastmirror.com/Downloads/${PN}/${P}.tar.gz
	http://mysql.oms-net.nl/Downloads/${PN}/${P}.tar.gz
	mirror://gentoo/mysql++-gcc-3.0.patch.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

# Depends on MySQL being installed, duh! :-)
DEPEND="<dev-db/mysql-4.0.0
	>=dev-db/mysql-3.23.49"

src_compile() {
	if [ `gcc-major-version` -eq 3 ] ; then
		epatch ${DISTDIR}/mysql++-gcc-3.0.patch
		epatch ${DISTDIR}/mysql++-gcc-3.2.patch
	fi
	epatch ${FILESDIR}/mysql++-1.7.9_example.patch

	# not including the directives to where MySQL is because it seems to find it
	# just fine without

	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--enable-exceptions \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"

	emake || die "unable to make"
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc doc/*
	dohtml doc/man-html/*
}