summaryrefslogtreecommitdiffstats
path: root/dev-util/objconv/objconv-2.08.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /dev-util/objconv/objconv-2.08.ebuild
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'dev-util/objconv/objconv-2.08.ebuild')
-rw-r--r--dev-util/objconv/objconv-2.08.ebuild41
1 files changed, 41 insertions, 0 deletions
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
+}