diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2015-12-31 12:30:14 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2015-12-31 12:30:36 +0100 |
commit | 68fd9ebaff276a9d384393ef0a523fef15327b5f (patch) | |
tree | e3d38b61ecb591ff25e07cae68ad3cc5dee4db41 /dev-perl/Curses/Curses-1.330.0.ebuild | |
parent | dev-perl/Crypt-OpenPGP: amd64/x86 stable, (ALLARCHES policy) wrt bug #570316 (diff) | |
download | gentoo-68fd9ebaff276a9d384393ef0a523fef15327b5f.tar.gz gentoo-68fd9ebaff276a9d384393ef0a523fef15327b5f.tar.bz2 gentoo-68fd9ebaff276a9d384393ef0a523fef15327b5f.zip |
dev-perl/Curses: Version bump
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-perl/Curses/Curses-1.330.0.ebuild')
-rw-r--r-- | dev-perl/Curses/Curses-1.330.0.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-perl/Curses/Curses-1.330.0.ebuild b/dev-perl/Curses/Curses-1.330.0.ebuild new file mode 100644 index 000000000000..3baa8f04b048 --- /dev/null +++ b/dev-perl/Curses/Curses-1.330.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DIST_AUTHOR=GIRAFFED +DIST_VERSION=1.33 +inherit perl-module + +DESCRIPTION="Curses interface modules for Perl" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-solaris ~x86-solaris" +IUSE="+unicode" + +DEPEND=">=sys-libs/ncurses-5:0=[unicode?]" +RDEPEND="${DEPEND}" + +my_curses_unicode() { + echo ncurses$(use unicode && echo w) +} + +my_curses_version() { + echo ncurses$(use unicode && echo w)$(has_version '>sys-libs/ncurses-6' && echo 6 || echo 5) +} + +pkg_setup() { + myconf="${myconf} FORMS PANELS MENUS" + mydoc=HISTORY + export CURSES_LIBTYPE=$(my_curses_unicode) + export CURSES_LDFLAGS=$($(my_curses_version)-config --libs) + export CURSES_CFLAGS=$( $(my_curses_version)-config --cflags) +} + +src_configure(){ + perl-module_src_configure + if ! use unicode ; then + sed -i 's:<form.h>:"/usr/include/form.h":' "${S}"/c-config.h || die + fi +} |