summaryrefslogtreecommitdiffstats
path: root/dev-util/objconv
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/objconv')
-rw-r--r--dev-util/objconv/Manifest2
-rw-r--r--dev-util/objconv/objconv-2.08.ebuild41
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-util/objconv/Manifest b/dev-util/objconv/Manifest
new file mode 100644
index 0000000..f65277e
--- /dev/null
+++ b/dev-util/objconv/Manifest
@@ -0,0 +1,2 @@
+DIST objconv.zip 703756 RMD160 0cdf618dd2610b5e6552a63422d362a904a66c48 SHA1 f5b4edfd25c06969241b26abd21edd1b2be19567 SHA256 9855fb155e48b9a979ff296d5c10d246da0d945a37962d8970f4d661cc8167b3
+EBUILD objconv-2.08.ebuild 885 RMD160 4b51698151c545a7c9fcf83041fd9c47e30657bb SHA1 50d9c2e525986cd1c3d3f9e67eb47c0296a25649 SHA256 4ed1b510ef75de5c9617e5ff5b100e46bd2e2557a7671b137854bf9939aeb339
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
+}