1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
9 DESCRIPTION="SQL C++ code generator (to use with dev-db/*wrapped packages)"
10 HOMEPAGE="http://www.alhem.net/project/sql2class/index.html"
11 SRC_URI="http://www.alhem.net/project/sql2class/${P}.tar.gz"
17 RDEPEND="mysql? ( dev-db/mysqlwrapped )
18 sqlite? ( dev-db/sqlitewrapped )"
25 -e 's/\(CPPFLAGS\) =/\1+=/' \
26 -e 's/-Wall -O2 -g//' \
27 -e 's#/usr/devel#/usr#' \
29 Makefile || die "sed failed"
33 emake CXX=$(tc-getCXX) || die "emake failed"
42 elog "You might want to emerge one of the following packages as well:"
43 elog "-> dev-db/mysqlwrapped ... to use the generated code with a MySQL-DB"
44 elog "-> dev-db/sqlitewrapped ... to use the generated code with SQLite"