# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/dvmysql/dvmysql-1.0.2.ebuild,v 1.3 2009/10/04 14:46:11 ssuominen Exp $ inherit flag-o-matic DESCRIPTION="Provides a C++ interface to mysql" HOMEPAGE="http://tinf2.vub.ac.be/~dvermeir/software/dv/dvmysql/html/" SRC_URI="http://tinf2.vub.ac.be/~dvermeir/software/dv/${PN}/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="doc" DEPEND="virtual/mysql dev-libs/dvutil" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" # install API docs only if USE=doc sed -i 's/^\(SUBDIRS =.*\)doc\(.*\)$/\1\2/' Makefile.in || \ die "sed Makefile.in failed" # Bug #247053 append-ldflags $(no-as-needed) } src_install() { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog NEWS README if use doc ; then doman doc/man/*/*.[1-9] dohtml -r doc/html/* fi }