diff options
author | David Seifert <soap@gentoo.org> | 2019-10-16 13:39:48 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2019-10-16 13:39:48 +0200 |
commit | 8a0c14ea8f31dc9acc132600859c6bc2c311482b (patch) | |
tree | 096ba201aa88c5ec15b294262d5c555028c380dc /media-sound/litestream/litestream-1.3_rc3.ebuild | |
parent | media-sound/icecream: Port to EAPI 7 (diff) | |
download | gentoo-8a0c14ea8f31dc9acc132600859c6bc2c311482b.tar.gz gentoo-8a0c14ea8f31dc9acc132600859c6bc2c311482b.tar.bz2 gentoo-8a0c14ea8f31dc9acc132600859c6bc2c311482b.zip |
media-sound/litestream: Port to EAPI 7
Bug: https://bugs.gentoo.org/697274
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/litestream/litestream-1.3_rc3.ebuild')
-rw-r--r-- | media-sound/litestream/litestream-1.3_rc3.ebuild | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/media-sound/litestream/litestream-1.3_rc3.ebuild b/media-sound/litestream/litestream-1.3_rc3.ebuild index 21c193593598..e0d4d98fac8d 100644 --- a/media-sound/litestream/litestream-1.3_rc3.ebuild +++ b/media-sound/litestream/litestream-1.3_rc3.ebuild @@ -1,40 +1,31 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=0 +EAPI=7 -inherit eutils flag-o-matic toolchain-funcs - -MY_P=${P/_rc/RC} +inherit toolchain-funcs DESCRIPTION="Litstream is a lightweight and robust shoutcast-compatible streaming mp3 server" HOMEPAGE="http://www.litestream.org/" -SRC_URI="http://litestream.org/litestream/${MY_P}.tar.gz" +SRC_URI="http://litestream.org/litestream/${P/_rc/RC}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ppc sparc x86" -IUSE="" - -S=${WORKDIR}/${MY_P} -src_unpack() { - unpack ${A} - cd "${S}" - sed -i -e 's:CFLAGS = :CFLAGS = ${OPTFLAGS} :; s:-g::' \ - Makefile || die "sed failed" -} +S="${WORKDIR}/${P/_rc/RC}" +PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch ) -src_compile() { - append-flags "-DNO_VARARGS" - emake CC=$(tc-getCC) OPTFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die +src_configure() { + tc-export CC } src_install() { - dobin litestream literestream || die "dobin failed" + dobin litestream literestream newbin source litestream-source newbin server litestream-server newbin client litestream-client - dodoc ABOUT ACKNOWLEDGEMENTS BUGS CHANGELOG CONTACT FILES MAKEITGO README + einstalldocs + dodoc ABOUT ACKNOWLEDGEMENTS CONTACT FILES MAKEITGO } |