diff options
-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 } |