You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-electronics/gnetman/gnetman-0.0.1_pre20060522-r...

42 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnetman/gnetman-0.0.1_pre20060522-r2.ebuild,v 1.3 2012/05/25 07:49:02 xmw Exp $
EAPI=4
MY_P="${PN}-22May06"
DESCRIPTION="A GNU Netlist Manipulation Library"
HOMEPAGE="http://sourceforge.net/projects/gnetman/
http://www.viasic.com/opensource/"
SRC_URI="http://www.viasic.com/opensource/${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
IUSE="doc examples"
KEYWORDS="~amd64 ~ppc ~x86"
S="${WORKDIR}/${MY_P}"
DEPEND="
dev-lang/tk
sci-electronics/geda"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/ sym / /' Makefile.in || die "sed failed"
if use examples ; then
sed -i -e "s:gEDA/sch/gnetman:doc/${PF}/examples:" \
sch/Makefile.in || die "sed failed"
sed -i -e "s:gEDA/examples/gnetman:doc/${PF}/examples:" \
test/Makefile.in || die "sed failed"
else
sed -i -e 's/ sch test//' Makefile.in || die "sed failed"
fi
}
src_install () {
default
use doc && dodoc doc/*.{html,jpg}
}