# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit git-2 DESCRIPTION="SmartSim is digital logic circuit design and simulation package" HOMEPAGE="http://www.smartsim.org.uk/ https://github.com/ashleynewson/SmartSim" SRC_URI="doc? ( http://www.smartsim.org.uk/downloads/manual/smartsim_user_manual.pdf )" EGIT_REPO_URI="git://github.com/ashleynewson/SmartSim.git https://github.com/ashleynewson/SmartSim.git" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" IUSE="doc" DEPEND="dev-libs/libxml2:2 dev-util/pkgconfig gnome-base/librsvg:2 x11-libs/cairo x11-libs/gtk+:2" RDEPEND="${DEPEND}" src_install() { emake DESTDIR="${D}" install || die "Install failed" dodoc AUTHORS ChangeLog NEWS README || die if use doc; then insinto /usr/share/doc/${PF} doins "${DISTDIR}"/smartsim_user_manual.pdf fi }