| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/xnec2c/xnec2c-2.0_beta.ebuild,v 1.1 2012/06/21 11:03:18 xmw Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools eutils
|
| 8 |
|
| 9 |
DESCRIPTION="A GTK+ graphical interactive version of nec2c."
|
| 10 |
HOMEPAGE="http://www.qsl.net/5b4az/pages/nec2.html"
|
| 11 |
SRC_URI="http://www.qsl.net/5b4az/pkg/nec2/xnec2c/${P/_beta/-beta}.tar.bz2"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="doc examples"
|
| 17 |
|
| 18 |
S="${WORKDIR}/${PN}"
|
| 19 |
|
| 20 |
RDEPEND="dev-libs/glib:2
|
| 21 |
x11-libs/gtk+:2"
|
| 22 |
DEPEND="${RDEPEND}
|
| 23 |
sys-devel/gettext"
|
| 24 |
|
| 25 |
src_prepare() {
|
| 26 |
epatch "${FILESDIR}"/${PN}-1.4-fortify.patch
|
| 27 |
|
| 28 |
glib-gettextize --force --copy || die
|
| 29 |
eautoreconf
|
| 30 |
}
|
| 31 |
|
| 32 |
src_install() {
|
| 33 |
default
|
| 34 |
|
| 35 |
dodoc AUTHORS README doc/*.txt
|
| 36 |
use doc && dohtml -r doc/*.html doc/images
|
| 37 |
insinto /usr/share/doc/${PF}/examples
|
| 38 |
use examples && doins examples/*
|
| 39 |
}
|