summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <sudinave@gmail.com>2021-04-14 09:33:50 -0400
committerJoonas Niilola <juippis@gentoo.org>2021-04-15 09:38:57 +0300
commit96b3fe30adbea3d0b1b78023343fc9ad71372fcf (patch)
treeb740dbc853dc6d4cfe1940e24e59fe1648587cfc /x11-misc/xtrlock
parentx11-misc/xtoolwait: fix build with -native-symlinks (diff)
downloadgentoo-96b3fe30adbea3d0b1b78023343fc9ad71372fcf.tar.gz
gentoo-96b3fe30adbea3d0b1b78023343fc9ad71372fcf.tar.bz2
gentoo-96b3fe30adbea3d0b1b78023343fc9ad71372fcf.zip
x11-misc/xtrlock: fix build with -native-symlinks
Also swapped DEPEND with BDEPEND to put imake in the right block. Closes: https://bugs.gentoo.org/726252 Signed-off-by: Ionen Wolkens <sudinave@gmail.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'x11-misc/xtrlock')
-rw-r--r--x11-misc/xtrlock/xtrlock-2.13.ebuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/x11-misc/xtrlock/xtrlock-2.13.ebuild b/x11-misc/xtrlock/xtrlock-2.13.ebuild
index 48d686600b3c..75993d78c0cd 100644
--- a/x11-misc/xtrlock/xtrlock-2.13.ebuild
+++ b/x11-misc/xtrlock/xtrlock-2.13.ebuild
@@ -12,17 +12,19 @@ SLOT="0"
LICENSE="GPL-3"
KEYWORDS="amd64 ppc x86"
-RDEPEND="
- x11-libs/libX11
-"
-DEPEND="
- ${RDEPEND}
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}"
+BDEPEND="
x11-base/xorg-proto
- x11-misc/imake
+ >=x11-misc/imake-1.0.8-r1
"
+src_configure() {
+ CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
+ IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
+}
+
src_compile() {
- xmkmf || die
emake CDEBUGFLAGS="${CFLAGS} -DSHADOW_PWD" CC="$(tc-getCC)" \
EXTRA_LDOPTIONS="${LDFLAGS}" xtrlock
}