diff options
Diffstat (limited to 'dev-db/sql2class/sql2class-1.9.2-r1.ebuild')
-rw-r--r-- | dev-db/sql2class/sql2class-1.9.2-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-db/sql2class/sql2class-1.9.2-r1.ebuild b/dev-db/sql2class/sql2class-1.9.2-r1.ebuild new file mode 100644 index 000000000..bebd4526f --- /dev/null +++ b/dev-db/sql2class/sql2class-1.9.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" + +inherit eutils toolchain-funcs + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="SQL C++ code generator (to use with dev-db/*wrapped packages)" +HOMEPAGE="http://www.alhem.net/project/sql2class/index.html" +SRC_URI="http://www.alhem.net/project/sql2class/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +IUSE="mysql sqlite" + +DEPEND="" +RDEPEND="" + +src_prepare() { + sed -i \ + -e 's/\(CPPFLAGS\) =/\1+=/' \ + -e 's/-Wall -O2 -g//' \ + -e 's#/usr/devel#/usr#' \ + -e 's/g++/$(CXX)/' \ + Makefile || die "sed failed" +} + +src_compile() { + emake CXX="$(tc-getCXX)" || die "emake failed" +} + +src_install() { + dobin sql2class + dodoc README +} + +pkg_postinst() { + elog "You might want to emerge one of the following packages as well:" + elog "-> dev-db/mysqlwrapped ... to use the generated code with a MySQL-DB" + elog "-> dev-db/sqlitewrapped ... to use the generated code with SQLite" +} |