portage-overlay

personal portage ebuild repository
git clone anongit@rnpnr.xyz:portage-overlay.git
Log | Files | Refs | Feed | README

Commit: bee5030b4e71eb802f18f33987215cb257310e9f
Parent: bd1df9af4c521136bd42474d96b914d244813cf5
Author: opask
Date:   Tue,  8 Jan 2019 16:52:04 -0700

add x11-misc/xscreenshot

Diffstat:
Ax11-misc/xscreenshot/xscreenshot-9999.ebuild | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/x11-misc/xscreenshot/xscreenshot-9999.ebuild b/x11-misc/xscreenshot/xscreenshot-9999.ebuild @@ -0,0 +1,32 @@ +EAPI=7 + +inherit git-r3 + +DESCRIPTION="xscreenshot - take a screenshot" +HOMEPAGE="https://git.2f30.org/xscreenshot/log.html" +EGIT_REPO_URI="git://git.2f30.org/xscreenshot.git" + +LICENSE="MIT-with-advertising" +SLOT=0 +IUSE="static" + +DEPEND="x11-libs/libX11" + +src_configure() { + default + + sed -e '/^X11INC/{s:X11R6/include:include/X11:}' \ + -e '/^X11LIB/{s:/X11R6::}' \ + -e '/^CFLAGS/{s:=:+=:;s:-O0 -g::}' \ + -e '/^LDFLAGS/{s:=:+=:}' \ + -e '/^CC/d' \ + < config.mk > config.mk.new || die + mv config.mk.new config.mk || die + + use static && export LDFLAGS="${LDFLAGS} -s -static" +} + +src_install() { + emake DESTDIR="${D}" CC=${CC} PREFIX="${EPREFIX}${LOCAL_PREFIX}" install + einstalldocs +}