diff options
author | Azat Bahawi <azahi@teknik.io> | 2020-10-24 20:42:12 +0300 |
---|---|---|
committer | Azat Bahawi <azahi@teknik.io> | 2020-10-24 20:42:12 +0300 |
commit | 9e28266d859e2e4230470c527dfc8f28242da373 (patch) | |
tree | 283ea570376361e258a1381bae68d5ed9c4cf2f4 /x11-misc/sflock/sflock-9999-r1.ebuild | |
parent | Update .editorconfig (diff) |
x11-misc/sflock: Update build process and metadata
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Diffstat (limited to '')
-rw-r--r-- | x11-misc/sflock/sflock-9999-r1.ebuild (renamed from x11-misc/sflock/sflock-9999.ebuild) | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/x11-misc/sflock/sflock-9999.ebuild b/x11-misc/sflock/sflock-9999-r1.ebuild index b09b8ba..94af0e3 100644 --- a/x11-misc/sflock/sflock-9999.ebuild +++ b/x11-misc/sflock/sflock-9999-r1.ebuild @@ -8,9 +8,9 @@ if [[ ${PV} == *9999 ]]; then EGIT_REPO_URI="https://github.com/benruijl/sflock.git" fi -inherit eutils ${SCM} +inherit toolchain-funcs ${SCM} -DESCRIPTION="focus the closest window in a given direction" +DESCRIPTION="Simple X display locker, with basic user feedback" HOMEPAGE="https://github.com/benruijl/sflock" if [[ ${PV} == *9999 ]]; then @@ -25,16 +25,22 @@ LICENSE="MIT" SLOT="0" IUSE="" -DEPEND="x11-libs/libX11" +DEPEND=" + x11-libs/libX11 + x11-libs/libXext +" RDEPEND="${DEPEND}" BDEPEND="" src_prepare() { - sed -e 's/-Os //' -i config.mk || die - sed -e 's/-s //' -i config.mk || die + sed -e "s/ -Os / ${CFLAGS} /" \ + -e "s/ -s / ${LDFLAGS} /" \ + -e "s/ cc/ $(tc-getCC)/" \ + -i config.mk || die + default } src_install() { - emake PREFIX="/usr" DESTDIR="${D}" install + emake install DESTDIR="${D}" PREFIX="/usr" } |