x11-misc/sselp: EAPI bump 0 -> 6 and update live ebuild
authorHarri Nieminen <moikkis@gmail.com>
Mon, 13 Feb 2017 10:12:50 +0000 (12:12 +0200)
committerDavid Seifert <soap@gentoo.org>
Mon, 13 Feb 2017 13:00:41 +0000 (14:00 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3944

x11-misc/sselp/sselp-0.2-r1.ebuild [new file with mode: 0644]
x11-misc/sselp/sselp-9999.ebuild

diff --git a/x11-misc/sselp/sselp-0.2-r1.ebuild b/x11-misc/sselp/sselp-0.2-r1.ebuild
new file mode 100644 (file)
index 0000000..0a23f98
--- /dev/null
@@ -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
+}
index 079c5a98ff1b7c78727ec2f02f9def77c8ca3eb3..65a33750b80dec3a0fd28a44eb2be616478d374c 100644 (file)
@@ -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
 }