You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/objconv/objconv-2.42.ebuild

46 lines
949 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
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
SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
DEPEND=""
S=${WORKDIR}/${P}
src_unpack() {
unpacker_src_unpack
mkdir "${S}" || die
pushd "${S}" || die
unpack_zip ../source.zip
}
src_prepare() {
# 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
}