blob: f4aa2421d7781c5f60133b1ab110a13be1a19221 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# 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
}
|