diff options
author | Harri Nieminen <moikkis@gmail.com> | 2017-02-13 12:12:50 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-02-13 14:00:41 +0100 |
commit | ff422345e2a4aa8b391ab696e646cbbe96fbb3a6 (patch) | |
tree | 88bc58647595f5a788f35b5e9a4247e95a0bc834 /x11-misc/sselp | |
parent | media-sound/ardour: bump to 5.6 (diff) | |
download | gentoo-ff422345e2a4aa8b391ab696e646cbbe96fbb3a6.tar.gz gentoo-ff422345e2a4aa8b391ab696e646cbbe96fbb3a6.tar.bz2 gentoo-ff422345e2a4aa8b391ab696e646cbbe96fbb3a6.zip |
x11-misc/sselp: EAPI bump 0 -> 6 and update live ebuild
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3944
Diffstat (limited to 'x11-misc/sselp')
-rw-r--r-- | x11-misc/sselp/sselp-0.2-r1.ebuild | 31 | ||||
-rw-r--r-- | x11-misc/sselp/sselp-9999.ebuild | 11 |
2 files changed, 37 insertions, 5 deletions
diff --git a/x11-misc/sselp/sselp-0.2-r1.ebuild b/x11-misc/sselp/sselp-0.2-r1.ebuild new file mode 100644 index 000000000000..0a23f9855552 --- /dev/null +++ b/x11-misc/sselp/sselp-0.2-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit toolchain-funcs + +DESCRIPTION="Simple X selection printer" +HOMEPAGE="http://tools.suckless.org/x/sselp" +SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" + +DEPEND="x11-libs/libX11" +RDEPEND="${DEPEND}" + +src_prepare() { + default + sed -i \ + -e "s|^CFLAGS = -std=c99 -pedantic -Wall -Os|CFLAGS += -std=c99 -pedantic -Wall|" \ + -e "s|^LDFLAGS = -s|LDFLAGS +=|" \ + -e "s|^CC = cc|CC = $(tc-getCC)|" \ + config.mk || die "sed failed" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install + einstalldocs +} diff --git a/x11-misc/sselp/sselp-9999.ebuild b/x11-misc/sselp/sselp-9999.ebuild index 079c5a98ff1b..65a33750b80d 100644 --- a/x11-misc/sselp/sselp-9999.ebuild +++ b/x11-misc/sselp/sselp-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 -inherit git-2 toolchain-funcs +EAPI=6 +inherit git-r3 toolchain-funcs DESCRIPTION="Simple X selection printer" HOMEPAGE="http://tools.suckless.org/x/sselp" @@ -17,6 +17,7 @@ DEPEND="x11-libs/libX11" RDEPEND="${DEPEND}" src_prepare() { + default sed -i \ -e "s|^CFLAGS = -std=c99 -pedantic -Wall -Os|CFLAGS += -std=c99 -pedantic -Wall|" \ -e "s|^LDFLAGS = -s|LDFLAGS +=|" \ @@ -25,6 +26,6 @@ src_prepare() { } src_install() { - emake DESTDIR="${D}" PREFIX="/usr" install - dodoc README + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install + einstalldocs } |