parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 3eceff839ec99df8643d7b9892de420b2121723b
parent 20e8cd5e796725f3623fa3fef49b174e9e10312c
Author: parazyd <parazyd@dyne.org>
Date:   Tue,  5 Jan 2021 16:05:04 +0100

dev-embedded/0xFFFF: Add 9999 ebuild.

Diffstat:
Adev-embedded/0xFFFF/0xFFFF-9999.ebuild | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adev-embedded/0xFFFF/Manifest | 1+
2 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/dev-embedded/0xFFFF/0xFFFF-9999.ebuild b/dev-embedded/0xFFFF/0xFFFF-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 + +DESCRIPTION="Open Free Fiasco Firmware Flasher for Maemo devices" +HOMEPAGE="https://github.com/pali/0xFFFF" +EGIT_REPO_URI="https://github.com/pali/0xFFFF" +SRC_URI="https://download.sourceforge.net/libusb/libusb-0.1.12.tar.gz" + +LICENSE="GPL-3" +SLOT="0" + +DEPEND="" +RDEPEND="" + +src_unpack() { + git-r3_src_unpack + default +} + +src_prepare() { + default + + cd ${WORKDIR}/${P}/src || die + sed -e 's@^CFLAGS .*@& -static@' \ + -e 's@^LIBS .*@LIBS += -L./ ./libusb.a -ldl -static@' \ + -i Makefile || die +} + +src_configure() { + cd ${WORKDIR}/libusb-0.1.12 || die + + CFLAGS="-Wno-format-truncation" \ + econf \ + --enable-static \ + --disable-shared +} + +src_compile() { + cd ${WORKDIR}/libusb-0.1.12 || die + emake || die + + cp .libs/libusb.a ${WORKDIR}/${P}/src || die + + cd ${WORKDIR}/${P} || die + emake || die +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install || die + dodoc README doc/* +} diff --git a/dev-embedded/0xFFFF/Manifest b/dev-embedded/0xFFFF/Manifest @@ -0,0 +1 @@ +DIST libusb-0.1.12.tar.gz 389343 BLAKE2B 00ece49797f45c45777c626af78a3900a8290fb26c99f73bb0262be7057845be19bc583539782ba1b3d4424c3b29afdfdc0d64ee5ff224fc9558ab037441fe49 SHA512 08c10e899f93b5f8567d1a1e1ed87dd5631ad0a1463975404709c1d165e545e340afb474a66788efcfdd8193542e2a2eb9cf133f55cbbf76441244191d0bb825