You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
10 years ago
|
|
||
6 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
|
DESCRIPTION="C++ API interface to the MySQL database"
|
||
6 years ago
|
HOMEPAGE="http://tangentsoft.net/mysqlpp/"
|
||
7 years ago
|
SRC_URI="http://www.tangentsoft.net/mysqlpp/releases/${P}.tar.gz"
|
||
13 years ago
|
|
||
|
LICENSE="LGPL-2"
|
||
|
SLOT="0"
|
||
6 years ago
|
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
6 years ago
|
RDEPEND="dev-db/mysql-connector-c:="
|
||
|
DEPEND="${RDEPEND}"
|
||
13 years ago
|
|
||
6 years ago
|
HTML_DOCS=( doc/html/{refman,userman} )
|
||
|
DOCS=( README{,.cygwin,.examples,.mingw,.unix,.vc} CREDITS ChangeLog
|
||
|
HACKERS Wishlist doc/pdf doc/README.devel doc/README.manuals
|
||
|
doc/refman doc/ssqls-pretty doc/userman )
|
||
13 years ago
|
|
||
6 years ago
|
src_prepare() {
|
||
|
eapply "${FILESDIR}"/${P}-gcc-4.3.patch
|
||
13 years ago
|
|
||
|
for i in "${S}"/lib/*.h ; do
|
||
|
sed -i \
|
||
|
-e '/#include </s,mysql.h,mysql/mysql.h,g' \
|
||
|
-e '/#include </s,mysql_version.h,mysql/mysql_version.h,g' \
|
||
|
"${i}" || die "Failed to sed ${i} for fixing MySQL includes"
|
||
|
done
|
||
6 years ago
|
sed -i 's/mysqlclient_r/mysqlclient/' "${S}/configure" || die
|
||
|
eapply_user
|
||
13 years ago
|
}
|
||
|
|
||
10 years ago
|
src_configure() {
|
||
13 years ago
|
local myconf
|
||
|
# we want C++ exceptions turned on
|
||
|
myconf="--enable-exceptions"
|
||
|
# give threads a try
|
||
|
myconf="${myconf} --enable-thread-check"
|
||
|
# not including the directives to where MySQL is because it seems to
|
||
|
# find it just fine without
|
||
|
|
||
|
# force the cflags into place otherwise they get totally ignored by
|
||
|
# configure
|
||
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
|
||
10 years ago
|
econf ${myconf}
|
||
13 years ago
|
}
|