summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-perl/Curses/Curses-1.330.0.ebuild41
-rw-r--r--dev-perl/Curses/Manifest1
2 files changed, 42 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
+}
diff --git a/dev-perl/Curses/Manifest b/dev-perl/Curses/Manifest
index 0d718e5fecba..eb4eb4435a8f 100644
--- a/dev-perl/Curses/Manifest
+++ b/dev-perl/Curses/Manifest
@@ -1,2 +1,3 @@
DIST Curses-1.28.tgz 127412 SHA256 613b73c4b6075b1550592812214e4fc0e2205d3afcf234e3fa90f208fb8de892 SHA512 75664b39174c9875f7f779801bddb08f89ace029ea99857b561e8f8eec167f6f9059a32bc51265145b84bca1316e6d2f90a576b280cfcc7e050225f28730dff2 WHIRLPOOL dbfb87c59a236fef47e5b03735c92d109b2b4bf4a35ae69691c465f832d4122b5d48663ae4707ec6d79e6e5f892f3fdf6991400605f996e712863b3fca1a14c0
DIST Curses-1.32.tgz 134753 SHA256 5dba44fd7964806d9765e6692bc7eb8eb30aeced2740f28b9a4070a5d14ba650 SHA512 ecaa5cea2b544979229badc9f0d0ce84b385aa178ea0f821e6582865b3be63ea3d0cbc43651e2dc03334b796e5eab961c30e8f1637eec4af579843617e661562 WHIRLPOOL 37b548423430a79791659d40aa2d3d66546e0c49bbe8e1fc5c3798b30715ce1ed40343cdec70b3019a4d7c7d8adb37ca66fd8afa9f52d4b1e63774ac6a0c9b58
+DIST Curses-1.33.tar.gz 134541 SHA256 eb1febf4c7dc01454f6e1d6a7380010e6a9b61b527e7f635c45b08b43c83ce88 SHA512 094ecf34f4116a4b405a810a16b727ab3201a32a42f98a2e2ac065e6b5cb25939091021f054bc15503fcc4aee1ee47825392cd8bd10e94f10792afcede6fe978 WHIRLPOOL 7cb13e0982a2e063325ac2a5716ff49258f81f03f657cee35856960f3452dd0b4e7ddf6f6baf82bc1f709ee436f5156da288d1ed98f018b61ba11eb63b321c83