Skip to content

Commit

Permalink
x11-misc/xidle: EAPI 8, drop eval use
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Aug 27, 2022
1 parent 9cd6f8d commit 3d12da2
Showing 1 changed file with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit toolchain-funcs
EAPI=8

inherit edo toolchain-funcs

DESCRIPTION="Monitors inactivity in X and runs the specified program when a timeout occurs"
HOMEPAGE="http://www.freebsdsoftware.org/x11/xidle.html"
Expand All @@ -11,24 +12,20 @@ SRC_URI="http://distcache.freebsd.org/local-distfiles/novel/${P}.tar.bz2"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86"
IUSE=""

RDEPEND="
x11-libs/libX11
x11-libs/libXScrnSaver
"
DEPEND="
${DEPEND}
virtual/pkgconfig
"
DEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=( "${FILESDIR}/${P}-dead.patch" )
PATCHES=(
"${FILESDIR}/${P}-dead.patch"
)

src_compile() {
local my_compile="$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN}{,.c}
$($(tc-getPKG_CONFIG) --libs xscrnsaver) $($(tc-getPKG_CONFIG) --libs x11)"
echo ${my_compile} || die
eval ${my_compile} || die
edo $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN}{,.c} $($(tc-getPKG_CONFIG) --libs xscrnsaver) $($(tc-getPKG_CONFIG) --libs x11)
}

src_install() {
Expand Down

0 comments on commit 3d12da2

Please sign in to comment.