# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit eutils autotools wxwidgets DESCRIPTION="SQLite3 database wrapper for wxWidgets" HOMEPAGE="https://github.com/utelle/wxsqlite3/" SRC_URI="https://github.com/utelle/${PN}/archive/v${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" IUSE="aec256" RESTRICT="test" RDEPEND="x11-libs/wxGTK:3.0-gtk3[X] >=dev-db/sqlite-3.17" DEPEND="${RDEPEND}" S="${WORKDIR}/${PN}-${PV}" src_prepare() { eautoreconf eapply_user } src_configure() { WX_GTK_VER="3.0-gtk3" need-wxwidgets unicode local myconf=( $(usex aec256 "--enable-codec=" "" "aes256" "") ) econf "${myconf[@]}" } src_install() { emake DESTDIR="${D}" install dodoc readme.md }