# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit eutils versionator wxwidgets UPSTREAM_PN="${PN}$(get_major_version ${MY_PV})" DESCRIPTION="Software for western and Vedic Astrology (Jyotish)" HOMEPAGE="http://www.saravali.de/" SRC_URI="https://github.com/martin-pe/${UPSTREAM_PN}/releases/download/v${PV}/${UPSTREAM_PN}-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" IUSE="+nls system-wxsqlite3" RESTRICT="test" RDEPEND="x11-libs/wxGTK:3.0-gtk3[X] media-libs/fontconfig nls? ( >=sys-devel/gettext-0.12.1 ) system-wxsqlite3? ( dev-db/wxsqlite3 )" DEPEND="${RDEPEND}" S="${WORKDIR}/${UPSTREAM_PN}-${PV}" src_configure() { WX_GTK_VER="3.0-gtk3" need-wxwidgets unicode local myconf=( $(usex nls "" "--disable-nls" "" "") $(usex system-wxsqlite3 "--with-wxsqlite3=" "" "system" "") ) econf "${myconf[@]}" } src_install() { emake DESTDIR="${D}" install domenu maitreya8.desktop dodoc ABOUT-NLS AUTHORS COPYING NEWS README ChangeLog }