summaryrefslogtreecommitdiffstats
path: root/dev-util/objconv/objconv-2.08.ebuild
diff options
context:
space:
mode:
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
+}