summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-11-09 21:08:53 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-11-09 21:08:59 +0000
commit9023894b67c4a2161ae6ea4975ab53ddc5b2e280 (patch)
tree67c19a1e8cc9957dc925776b00a196351bae10ab /dev-util/objconv/objconv-2.51.ebuild
parentdev-util/objconv: drop old (diff)
downloadgentoo-9023894b67c4a2161ae6ea4975ab53ddc5b2e280.tar.gz
gentoo-9023894b67c4a2161ae6ea4975ab53ddc5b2e280.tar.bz2
gentoo-9023894b67c4a2161ae6ea4975ab53ddc5b2e280.zip
dev-util/objconv: bump up to 2.51
Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-util/objconv/objconv-2.51.ebuild')
-rw-r--r--dev-util/objconv/objconv-2.51.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-util/objconv/objconv-2.51.ebuild b/dev-util/objconv/objconv-2.51.ebuild
new file mode 100644
index 000000000000..c4d8fb209631
--- /dev/null
+++ b/dev-util/objconv/objconv-2.51.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs unpacker
+
+DESCRIPTION="object code file converted (COFF, ELF, OMF, MACHO)"
+HOMEPAGE="http://agner.org/optimize/#objconv"
+# original URL is "http://agner.org/optimize/objconv.zip", but it's unversioned.
+# I copy those to distfiles time to time. last modified: 2018-Oct-07
+SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.zip"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=""
+DEPEND=""
+BDEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpacker_src_unpack
+ mkdir "${S}" || die
+ pushd "${S}" || die
+ unpack_zip ../source.zip
+}
+
+src_prepare() {
+ default
+
+ # project has extremenly poor build system (see build.sh)
+ local sources=$(echo *.cpp)
+
+ {
+ echo "objconv: ${sources//.cpp/.o}"
+ echo " \$(CXX) \$(CXXFLAGS) -o \$@ \$^ \$(LDFLAGS)"
+ } > Makefile || die
+
+ tc-export CXX
+}
+
+src_install() {
+ dobin objconv
+ dodoc ../objconv-instructions.pdf
+}