diff options
Diffstat (limited to 'sys-firmware')
-rw-r--r-- | sys-firmware/sigrok-firmware-fx2lafw/Manifest | 2 | ||||
-rw-r--r-- | sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.3.ebuild | 54 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-firmware/sigrok-firmware-fx2lafw/Manifest b/sys-firmware/sigrok-firmware-fx2lafw/Manifest index 1d914d3903f3..3b69f77080de 100644 --- a/sys-firmware/sigrok-firmware-fx2lafw/Manifest +++ b/sys-firmware/sigrok-firmware-fx2lafw/Manifest @@ -1,2 +1,4 @@ DIST sigrok-firmware-fx2lafw-0.1.2.tar.gz 148798 SHA256 85c658f851fd90089382756b4c5f0326f96d630a0ad5637455a84a4a058b3572 SHA512 b1f90e06227dcd3832bb61267ef8d20a7b4df702228b884c13725e472ed56bd971a46e2b4104bde666abc599edbe20cdbb51e30ee423b07c27ab1093de5953df WHIRLPOOL bbe4705b39424c86f92ecef4d4b13e1fbf21c27e306edc8674358fc6c62a665c35753d58c53dc8177fb939443029f83ac33f1c97db66829be304919b2ffd83f1 +DIST sigrok-firmware-fx2lafw-0.1.3.tar.gz 128057 SHA256 f75102c4008f89c50fef7f5f5fc144d7a4b3a2cccfcbf181d9dc7015708e7c09 SHA512 60ed3bc41ec29217436f0aeff6058ad565f0e04ff00fac61f7be5c9f3dbfcfe1b0f09ef4168e67a58b2e93ff575f895afe79110e70245db020281f8efa25e0b4 WHIRLPOOL ea2352223c90d1bab22b0d631ed1cf043a3c5ce00f4f6a5f97d42dfae48716748b63bd6a87b232c47660d0de17be227eb9dc7d3af9e721f7208aa8eaee4b2b1e DIST sigrok-firmware-fx2lafw-bin-0.1.2.tar.gz 36486 SHA256 f28d411240a2f460d334e89ad18f5a632fa2a0f4afa25e030a26b41200351c70 SHA512 74d52e5200886ba3328f411e46419ed6d6892fe2ba6c0f66a94b19be82f7d04837d8a41093d1c14ce73609f84f6277956c9c44febab8a7f150c32ba7f7ab28b1 WHIRLPOOL 039a803d8e8177e731435276b03816910fba35ed51d0ac744bdff1df1ef603a728bb2046a5f057fa135ac648eb9f2c838ec16d345b1961e1fc28f411836f378e +DIST sigrok-firmware-fx2lafw-bin-0.1.3.tar.gz 38531 SHA256 741d84ccd40b506957629b4a541380c67d7f845001775372c75bd993bc1520e3 SHA512 b7df7d55fba2e9e3a823f80a1f1df2232631875a4f3fe57e4ef52fa9bf8d307524baf9cb7602d61b89698f12d9bcc9d6f93bd9be30fb8027f320229b089730f4 WHIRLPOOL 5191f179899461460e3b6137242d43a37621ea3a56ec43f00f25b9da72b7e6cf2642b4215019ecb9e84c680deafe5c595ab701c8653db840aa546197a8c2abac diff --git a/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.3.ebuild b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.3.ebuild new file mode 100644 index 000000000000..e2847a43887b --- /dev/null +++ b/sys-firmware/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="6" + +SDCC_DEPEND=">=dev-embedded/sdcc-2.9.0[device-lib(+),mcs51(+)]" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://sigrok.org/${PN}" + IUSE="" + inherit git-r3 autotools +else + SRC_URI="binary? ( http://sigrok.org/download/binary/${PN}/${PN}-bin-${PV}.tar.gz ) + !binary? ( http://sigrok.org/download/source/${PN}/${P}.tar.gz )" + KEYWORDS="~amd64 ~x86" + IUSE="binary" + SDCC_DEPEND="!binary? ( ${SDCC_DEPEND} )" +fi + +DESCRIPTION="open-source firmware for Cypress FX2 chips which makes them usable as simple logic analyzer hardware" +HOMEPAGE="http://sigrok.org/wiki/Fx2lafw" + +LICENSE="GPL-2+" +SLOT="0" + +RDEPEND="" +DEPEND="${RDEPEND} + ${SDCC_DEPEND}" + +src_unpack() { + if [[ ${PV} == "9999" ]]; then + git-r3_src_unpack + else + default + # The binary & source dirs are slightly diff. + use binary && S="${WORKDIR}/${PN}-bin-${PV}" + fi +} + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf + eapply_user +} + +src_install() { + if [[ ${PV} != "9999" ]] && use binary ; then + insinto /usr/share/sigrok-firmware + doins *.fw + dodoc ChangeLog NEWS README + else + default + fi +} |