summaryrefslogtreecommitdiff
blob: fc2e17acce6bdbd11c10ea8bcfa2b7024ce85a60 (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-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Ric Messier <kilroy@WasHere.COM>
# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.4 2002/03/12 16:05:09 tod Exp

S=${WORKDIR}/${P}

DESCRIPTION="C++ API interface to the MySQL database"

SRC_URI="http://mysql.he.net/Downloads/mysql++/mysql++-1.7.9.tar.gz
	http://mysql.adgrafix.com/Downloads/mysql++/mysql++-1.7.9.tar.gz
	http://mysql.fastmirror.com/Downloads/mysql++/mysql++-1.7.9.tar.gz
	http://mysql.oms-net.nl/Downloads/mysql++/mysql++-1.7.9.tar.gz
	mirror://gentoo/mysql++-gcc-3.0.patch"

# This is the download page but includes links to other places
HOMEPAGE="http://www.mysql.org/downloads/api-mysql++.html"

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

# Depends on MySQL being installed, duh! :-)
DEPEND="mysql ( >=mysql-3.23.49 )"

src_compile() {
	patch -p1 < ${DISTDIR}/mysql++-gcc-3.0.patch || die
	patch -p1 < ${FILESDIR}/mysql++-gcc-3.2.patch || die
	patch -p1 < ${FILESDIR}/mysql++-1.7.9_example.patch || die

	# 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
	# install the docs and HTML pages
	dodoc doc/*
	dohtml doc/man-html/*

}