/[gentoo-x86]/dev-perl/Curses/Curses-1.280.0.ebuild
Gentoo

Contents of /dev-perl/Curses/Curses-1.280.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Sep 3 21:04:55 2011 UTC (3 years, 3 months ago) by tove
Branch: MAIN
Changes since 1.1: +2 -2 lines
Merge stable keywords from former version scheme ebuilds

(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)

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-perl/Curses/Curses-1.280.0.ebuild,v 1.1 2011/08/31 13:47:51 tove Exp $
4
5 EAPI=4
6
7 MODULE_AUTHOR=GIRAFFED
8 MODULE_VERSION=1.28
9 MODULE_A_EXT=tgz
10 inherit perl-module
11
12 DESCRIPTION="Curses interface modules for Perl"
13
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~sparc-solaris ~x86-solaris"
16 IUSE="unicode"
17
18 DEPEND=">=sys-libs/ncurses-5[unicode?]"
19 RDEPEND="${DEPEND}"
20
21 SRC_TEST="do"
22
23 my_curses_version() {
24 echo ncurses$(use unicode && echo w)
25 }
26
27 pkg_setup() {
28 myconf="${myconf} FORMS PANELS MENUS"
29 mydoc=HISTORY
30 export CURSES_LIBTYPE=$(my_curses_version)
31 export CURSES_LDFLAGS=$($(my_curses_version)5-config --libs)
32 export CURSES_CFLAGS=$( $(my_curses_version)5-config --cflags)
33 }
34
35 src_configure(){
36 perl-module_src_configure
37 if ! use unicode ; then
38 sed -i 's:<form.h>:"/usr/include/form.h":' "${S}"/c-config.h || die
39 fi
40 }

  ViewVC Help
Powered by ViewVC 1.1.20