diff options
author | David Seifert <soap@gentoo.org> | 2023-10-08 00:19:41 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2023-10-08 00:19:41 +0200 |
commit | 328f3a7a59dd22066b4787fecf447dd0ee5dfe6e (patch) | |
tree | 7e477544d564ab8e694f55035af2c4dd5840bbaf /x11-misc/blockdpy | |
parent | x11-libs/gtkglext: update EAPI 6 -> 8 (diff) | |
download | gentoo-328f3a7a59dd22066b4787fecf447dd0ee5dfe6e.tar.gz gentoo-328f3a7a59dd22066b4787fecf447dd0ee5dfe6e.tar.bz2 gentoo-328f3a7a59dd22066b4787fecf447dd0ee5dfe6e.zip |
x11-misc/blockdpy: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'x11-misc/blockdpy')
-rw-r--r-- | x11-misc/blockdpy/blockdpy-1-r2.ebuild (renamed from x11-misc/blockdpy/blockdpy-1-r1.ebuild) | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/x11-misc/blockdpy/blockdpy-1-r1.ebuild b/x11-misc/blockdpy/blockdpy-1-r2.ebuild index 37504c2a8993..a53a9f8c48af 100644 --- a/x11-misc/blockdpy/blockdpy-1-r1.ebuild +++ b/x11-misc/blockdpy/blockdpy-1-r2.ebuild @@ -1,26 +1,24 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 -inherit toolchain-funcs +inherit flag-o-matic toolchain-funcs DESCRIPTION="Tool to block access via the physical display while x11vnc is running" HOMEPAGE="http://www.karlrunge.com/x11vnc/blockdpy.c" SRC_URI="http://www.karlrunge.com/x11vnc/blockdpy.c" +S="${WORKDIR}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" RDEPEND=" x11-libs/libX11 x11-libs/libXext" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -S=${WORKDIR} +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" src_unpack() { cp "${DISTDIR}"/blockdpy.c blockdpy.c || die @@ -34,16 +32,16 @@ src_prepare() { sed -i '/#include <stdio.h>/i#include <string.h>' blockdpy.c || die } +src_configure() { + tc-export CC + append-cppflags $($(tc-getPKG_CONFIG) --cflags x11 xext) + export LDLIBS=$($(tc-getPKG_CONFIG) --libs x11 xext) +} + src_compile() { - $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} \ - $($(tc-getPKG_CONFIG) --cflags x11) \ - $($(tc-getPKG_CONFIG) --cflags xext) \ - -o blockdpy blockdpy.c \ - $($(tc-getPKG_CONFIG) --libs x11) \ - $($(tc-getPKG_CONFIG) --libs xext) \ - || die "compile failed" + emake blockdpy - # Create README from head comment in source. + # Create README from head comment in source sed -n '1,/^ *\*\//s/^[ -]*\*[ \/]*//p' < blockdpy.c > README || die } @@ -55,7 +53,7 @@ src_install() { pkg_postinst() { # Just warn about missing xlock instead of requiring it in case # the user wants to use something else. - if [[ ! -x ${EPREFIX}/usr/bin/xlock ]]; then + if [[ ! -x ${EROOR}/usr/bin/xlock ]]; then ewarn 'The xlock executable was not found.' ewarn 'blockdpy runs "xlock" as the screen-lock program by default.' ewarn 'You should either install x11-misc/xlockmore or override the' |