1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DIA_P=${PN}-$(ver_cut 1-2)-$(ver_cut 3)
7 DESCRIPTION="tool to display dialog boxes from a shell"
8 HOMEPAGE="https://invisible-island.net/dialog/"
9 SRC_URI="https://invisible-island.net/datafiles/release/$PN.tar.gz -> $DIA_P.tar.gz"
13 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
14 IUSE="examples minimal nls static-libs unicode"
17 >=sys-libs/ncurses-5.2-r5:=[unicode?]
21 nls? ( sys-devel/gettext )
22 !minimal? ( sys-devel/libtool )
28 sed -i -e '/LIB_CREATE=/s:${CC}:& ${LDFLAGS}:g' configure || die
29 sed -i '/$(LIBTOOL_COMPILE)/s:$: $(LIBTOOL_OPTS):' makefile.in || die
34 --disable-rpath-hack \
36 $(use_with !minimal libtool) \
37 --with-libtool-opts=$(usex static-libs '' '-shared') \
38 --with-ncurses$(usex unicode w '')
42 use minimal && default || emake DESTDIR="${D}" install-full
44 use examples && dodoc -r samples
48 find "${ED}" -name '*.la' -delete || die