holgersson-overlay/dev-libs/libpifacedigital/libpifacedigital-0.3.0.ebuild
Nils Freydank 18e05e5da4
dev-libs/libpifacedigital: Add new version 0.3.0.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Manifest-Sign-Key: 766B8122134269123401492A8B54D7A3FF3CDB17
2018-03-13 12:16:36 +01:00

47 lines
897 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit toolchain-funcs
DESCRIPTION="C library for controlling (RaspberryPi) PiFace Digital"
HOMEPAGE="https://github.com/piface/libpifacedigital"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/piface/libpifacedigital.git"
else
SRC_URI="https://github.com/piface/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~arm"
fi
LICENSE="GPL-3"
SLOT="0"
#IUSE="python java javascript lua"
IUSE=""
DEPEND="dev-libs/libmcp23s17"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/${PN}-fix-build-system.patch )
src_prepare(){
# Holy supercow, they managed to drop the trailing newline :-/
echo >> ${S}/Makefile
default
}
src_configure(){
default
tc-export CC
}
src_install() {
dolib ${PN}.so
doheader src/pifacedigital.h
einstalldocs
}