summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZentaro Kavanagh <zentaro@chromium.org>2018-06-18 07:51:18 -0700
committerMike Frysinger <vapier@gentoo.org>2018-06-18 12:38:51 -0400
commitfe90e0a3e734740eb2a8cad3c24a7c2b1db3f99f (patch)
tree06cae436b29c5a7ad30efffb2e14b2ba5a047591 /app-misc
parentapp-crypt/gnupg: remove virtual/mta dependency (again) (diff)
downloadgentoo-fe90e0a3e734740eb2a8cad3c24a7c2b1db3f99f.tar.gz
gentoo-fe90e0a3e734740eb2a8cad3c24a7c2b1db3f99f.tar.bz2
gentoo-fe90e0a3e734740eb2a8cad3c24a7c2b1db3f99f.zip
app-misc/ckermit: Support ncurses with tinfo enabled #621936
Use pkg-config to populate LIBS and CPPFLAGS instead of hardcoding. Closes: https://bugs.gentoo.org/621936
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/ckermit/ckermit-8.0.211-r4.ebuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/app-misc/ckermit/ckermit-8.0.211-r4.ebuild b/app-misc/ckermit/ckermit-8.0.211-r4.ebuild
index e129da2a6c12..9d8950eb448b 100644
--- a/app-misc/ckermit/ckermit-8.0.211-r4.ebuild
+++ b/app-misc/ckermit/ckermit-8.0.211-r4.ebuild
@@ -34,23 +34,24 @@ src_prepare() {
makefile || die
}
-ck_use() {
- use $1 && append-cppflags $2 && libs+=" $3"
-}
src_compile() {
# we don't enable any of the telnet/ftp authentication stuff
# since there are other packages which do these things better
# USE="kerberos pam shadow ssl zlib"
append-cppflags -DNO_AUTHENTICATION -DNOLOGIN -DNOFTP
- local libs
- ck_use ncurses -DCK_NCURSES -lncurses
+ if use ncurses; then
+ append-cppflags "-DCK_NCURSES"
+ append-cppflags "$($(tc-getPKG_CONFIG) --cflags ncurses)"
+ append-libs "$($(tc-getPKG_CONFIG) --libs ncurses)"
+ fi
+
append-cppflags -DHAVE_PTMX -D_XOPEN_SOURCE -D_BSD_SOURCE -D_DEFAULT_SOURCE #202840
append-cppflags -DHAVE_CRYPT_H
emake \
CC="$(tc-getCC)" \
KFLAGS="${CPPFLAGS}" \
- LIBS="-lcrypt -lresolv ${libs}" \
+ LIBS="-lcrypt -lresolv ${LIBS}" \
LNKFLAGS="${LDFLAGS}" \
linuxa
}