/[gentoo-x86]/dev-util/dialog/dialog-1.1.20120215.ebuild
Gentoo

Contents of /dev-util/dialog/dialog-1.1.20120215.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Aug 27 20:13:20 2013 UTC (10 months, 2 weeks ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2012 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.20120215.ebuild,v 1.10 2012/07/08 15:09:28 armin76 Exp $
4
5 EAPI="4"
6
7 inherit multilib
8
9 MY_PV="${PV/1.1./1.1-}"
10 S=${WORKDIR}/${PN}-${MY_PV}
11 DESCRIPTION="tool to display dialog boxes from a shell"
12 HOMEPAGE="http://invisible-island.net/dialog/dialog.html"
13 SRC_URI="ftp://invisible-island.net/${PN}/${PN}-${MY_PV}.tgz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
18 IUSE="examples minimal nls static-libs unicode"
19
20 RDEPEND="
21 >=app-shells/bash-2.04-r3
22 !unicode? ( >=sys-libs/ncurses-5.2-r5 )
23 unicode? ( >=sys-libs/ncurses-5.2-r5[unicode] )
24 "
25 DEPEND="
26 ${RDEPEND}
27 nls? ( sys-devel/gettext )
28 !minimal? ( sys-devel/libtool )
29 !<=sys-freebsd/freebsd-contrib-8.9999
30 "
31
32 src_prepare() {
33 sed -i configure -e '/LIB_CREATE=/s:${CC}:& ${LDFLAGS}:g' || die
34 }
35
36 src_configure() {
37 local ncursesw
38 use unicode && ncursesw="w"
39 econf \
40 --disable-rpath-hack \
41 $(use_enable nls) \
42 $(use_with !minimal libtool) \
43 --with-ncurses${ncursesw}
44 }
45
46 src_install() {
47 if use minimal; then
48 emake DESTDIR="${D}" install
49 else
50 emake DESTDIR="${D}" install-full
51 fi
52
53 dodoc CHANGES README VERSION
54
55 if use examples; then
56 docinto samples
57 dodoc $( find samples -maxdepth 1 -type f )
58 docinto samples/copifuncs
59 dodoc $( find samples/copifuncs -maxdepth 1 -type f )
60 docinto samples/install
61 dodoc $( find samples/install -type f )
62 fi
63
64 if ! use static-libs; then
65 rm -f \
66 "${D}"usr/$(get_libdir)/libdialog.a \
67 "${D}"usr/$(get_libdir)/libdialog.la
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20