From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- dev-util/objconv/objconv-2.08.ebuild | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 dev-util/objconv/objconv-2.08.ebuild (limited to 'dev-util/objconv/objconv-2.08.ebuild') diff --git a/dev-util/objconv/objconv-2.08.ebuild b/dev-util/objconv/objconv-2.08.ebuild new file mode 100644 index 0000000..ce967c1 --- /dev/null +++ b/dev-util/objconv/objconv-2.08.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="An Object File Converter" +HOMEPAGE="http://www.agner.org/optimize#objconv" +SRC_URI="http://www.agner.org/optimize/${PN}.zip" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 amd64" +IUSE="doc" +DEPEND="app-arch/unzip" +RDEPEND="${DEPEND}" +MY_SOURCE="source.zip" + +src_unpack() { + unpack ${PN}.zip + unpack ./${MY_SOURCE} +} + +src_compile() { + SOURCES=$(ls *.cpp) + local x + for x in $SOURCES ; do + echo "Compiling $x..." + $(tc-getCXX ) ${CXXFLAGS} -c ${x} \ + || die "Compile failed." + done + OBJS=$(ls *.o) + echo "Creating objconv..." + $(tc-getCXX ) ${CXXFLAGS} -o ${PN} $OBJS +} + +src_install() { + dobin ${PN} || die "Install failed!" + if use doc ; then + dodoc objconv-instructions.pdf || die "Unable to install manual!" + fi +} -- cgit v1.2.3