| 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-1.5.ebuild,v 1.1 2011/07/11 13:50:28 tomjbe Exp $ |
| 4 |
|
| 5 |
EAPI="2" |
| 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="examples" |
| 17 |
|
| 18 |
S="${WORKDIR}/${PN}" |
| 19 |
|
| 20 |
RDEPEND=" |
| 21 |
dev-libs/glib:2 |
| 22 |
x11-libs/gtk+:2" |
| 23 |
DEPEND="${RDEPEND} |
| 24 |
sys-devel/gettext" |
| 25 |
|
| 26 |
src_prepare() { |
| 27 |
epatch "${FILESDIR}"/${PN}-1.4-fortify.patch |
| 28 |
|
| 29 |
glib-gettextize --force --copy || die |
| 30 |
eautoreconf |
| 31 |
} |
| 32 |
|
| 33 |
src_install() { |
| 34 |
emake DESTDIR="${D}" install || die |
| 35 |
|
| 36 |
dodoc AUTHORS README doc/*.txt || die |
| 37 |
dohtml -r doc/* || die |
| 38 |
if use examples ; then |
| 39 |
insinto /usr/share/doc/${PF}/examples |
| 40 |
doins examples/* || die |
| 41 |
fi |
| 42 |
} |