/[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.9 - (hide annotations) (download)
Thu Jun 7 21:27:50 2012 UTC (2 years, 6 months ago) by ranger
Branch: MAIN
Changes since 1.8: +2 -2 lines
Marking dialog-1.1.20120215 ppc for bug 417669

(Portage version: 2.1.10.49/cvs/Linux ppc64)

1 jer 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ranger 1.9 # $Header: /var/cvsroot/gentoo-x86/dev-util/dialog/dialog-1.1.20120215.ebuild,v 1.8 2012/05/30 19:26:55 maekke Exp $
4 jer 1.1
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 ranger 1.9 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
18 jer 1.1 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 vapier 1.2 --disable-rpath-hack \
41 jer 1.1 $(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