From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-emulation/vpcs/vpcs-0.6.ebuild | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app-emulation/vpcs/vpcs-0.6.ebuild (limited to 'app-emulation/vpcs/vpcs-0.6.ebuild') diff --git a/app-emulation/vpcs/vpcs-0.6.ebuild b/app-emulation/vpcs/vpcs-0.6.ebuild new file mode 100644 index 000000000000..6187e32e943d --- /dev/null +++ b/app-emulation/vpcs/vpcs-0.6.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="Simulate up to 9 PCs in place of VMware boxes in a Dynamips network" +HOMEPAGE="http://vpcs.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.tbz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +S="${S}/src/" + +src_prepare() { + # move Makefile in place + cp Makefile.linux Makefile + + # replace hardcoded CFLAGS with user set CFLAGS + # append -fno-strict-aliasing to CFLAGS to suppress QA issues from upstream + # add user $LDFLAGS in the front and remove -s that strips binary + sed -e "s/-D\$(CPUTYPE)/${CFLAGS} -fno-strict-aliasing/" \ + -e "s/^LDFLAGS=/LDFLAGS=${LDFLAGS} /" \ + -e "s/-s //" \ + -i Makefile || die +} + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + #put binary in /usr/bin + dobin vpcs + + doman ../man/vpcs.1 +} -- cgit v1.2.3