Add net-misc/cgo
[sgilles-overlay.git] / sys-apps / mosys / mosys-0.0.2013.ebuild
bloba6ae4bf06f4501dd282d100b05c2d7d8a87512d1
1 EAPI=6
3 inherit eutils toolchain-funcs git-r3
5 DESCRIPTION="The multifunction open system too"
6 HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/mosys"
7 EGIT_REPO_URI="https://chromium.googlesource.com/chromiumos/platform/mosys"
8 EGIT_COMMIT="ad481ad8282d144e074a2a671f26f97b43be86f2"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="alpha amd64 arm hppa ppc ~ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
13 IUSE=""
14 RDEPEND="
15 dev-libs/ossp-uuid
16 sys-apps/util-linux
17 sys-apps/flashmap
19 DEPEND="${RDEPEND}"
21 src_prepare() {
22 epatch "${FILESDIR}/${PN}-rename-libfmap.patch"
23 epatch "${FILESDIR}/${PN}-use-standard-types.patch"
25 eapply_user
28 src_configure() {
29 ARCH=$(tc-arch) emake defconfig
32 src_compile() {
33 emake -j1 \
34 CC=$(tc-getCC) \
35 AR=$(tc-getAR) \
36 LD=$(tc-getLD) \
37 NM=$(tc-getNM) \
38 STRIP=$(tc-getSTRIP) \
39 OBJCOPY=$(tc-getOBJCOPY) \
40 LDFLAGS=$(raw-ldflags) \
41 mosys
44 src_install() {
45 emake -j1 \
46 CC=$(tc-getCC) \
47 AR=$(tc-getAR) \
48 LD=$(tc-getLD) \
49 NM=$(tc-getNM) \
50 STRIP=$(tc-getSTRIP) \
51 OBJCOPY=$(tc-getOBJCOPY) \
52 LDFLAGS=$(raw-ldflags) \
53 LIBDIR=$(get_libdir) \
54 INSTALL_PATH="${D}/usr/sbin" \
55 USE_PKG_CONFIG=1 \
56 install