2017-02-13 20:35:36 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2017-02-13 20:35:36 +03:00
|
|
|
EAPI=6
|
|
|
|
inherit git-r3 toolchain-funcs
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Simple X selection printer"
|
2017-08-31 23:48:08 +03:00
|
|
|
HOMEPAGE="https://tools.suckless.org/x/sselp"
|
2017-09-11 11:37:04 +03:00
|
|
|
EGIT_REPO_URI="https://git.suckless.org/sselp"
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS=""
|
|
|
|
|
|
|
|
DEPEND="x11-libs/libX11"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
2013-06-12 23:23:08 +04:00
|
|
|
src_prepare() {
|
2017-02-13 20:35:36 +03:00
|
|
|
default
|
2011-11-09 11:33:19 +04:00
|
|
|
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() {
|
2017-02-13 20:35:36 +03:00
|
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
|
|
|
|
einstalldocs
|
2011-11-09 11:33:19 +04:00
|
|
|
}
|