| 1 |
# Copyright 1999-2011 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/dialog/dialog-1.1.20110707.ebuild,v 1.1 2011/07/20 17:20:30 jer Exp $ |
| 4 |
|
| 5 |
EAPI="2" |
| 6 |
|
| 7 |
MY_PV="${PV/1.1./1.1-}" |
| 8 |
S=${WORKDIR}/${PN}-${MY_PV} |
| 9 |
DESCRIPTION="tool to display dialog boxes from a shell" |
| 10 |
HOMEPAGE="http://invisible-island.net/dialog/dialog.html" |
| 11 |
SRC_URI="ftp://invisible-island.net/${PN}/${PN}-${MY_PV}.tgz" |
| 12 |
|
| 13 |
LICENSE="GPL-2" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
| 16 |
IUSE="examples minimal nls unicode" |
| 17 |
|
| 18 |
RDEPEND=" |
| 19 |
>=app-shells/bash-2.04-r3 |
| 20 |
!unicode? ( >=sys-libs/ncurses-5.2-r5 ) |
| 21 |
unicode? ( >=sys-libs/ncurses-5.2-r5[unicode] ) |
| 22 |
" |
| 23 |
DEPEND=" |
| 24 |
${RDEPEND} |
| 25 |
nls? ( sys-devel/gettext ) |
| 26 |
!minimal? ( sys-devel/libtool ) |
| 27 |
" |
| 28 |
|
| 29 |
src_prepare() { |
| 30 |
sed -i configure -e '/LIB_CREATE=/s:${CC}:& ${LDFLAGS}:g' || die |
| 31 |
} |
| 32 |
|
| 33 |
src_configure() { |
| 34 |
local ncursesw |
| 35 |
use unicode && ncursesw="w" |
| 36 |
econf \ |
| 37 |
$(use_enable nls) \ |
| 38 |
$(use_with !minimal libtool) \ |
| 39 |
--with-ncurses${ncursesw} |
| 40 |
} |
| 41 |
|
| 42 |
src_install() { |
| 43 |
if use minimal; then |
| 44 |
emake DESTDIR="${D}" install || die "install failed" |
| 45 |
else |
| 46 |
emake DESTDIR="${D}" install-full || die "install failed" |
| 47 |
fi |
| 48 |
|
| 49 |
dodoc CHANGES README VERSION |
| 50 |
|
| 51 |
if use examples; then |
| 52 |
docinto samples |
| 53 |
dodoc samples/* |
| 54 |
fi |
| 55 |
} |