aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-PerlMenu
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-08-15 05:23:14 +0800
committerwill <will@FreeBSD.org>2000-08-15 05:23:14 +0800
commita3858945aae4bcbf99ea59b9186d127c6be34721 (patch)
tree77ed2fd030f992866d97aa0be996272f1770e7a5 /devel/p5-PerlMenu
parent381fda0f204efe4328aa6368663e739b211b6e47 (diff)
downloadfreebsd-ports-gnome-a3858945aae4bcbf99ea59b9186d127c6be34721.tar.gz
freebsd-ports-gnome-a3858945aae4bcbf99ea59b9186d127c6be34721.tar.zst
freebsd-ports-gnome-a3858945aae4bcbf99ea59b9186d127c6be34721.zip
Add PerlMenu 4.0, a simple module that uses the Curses package to render
menus on the terminal. Submitted by: jhb
Diffstat (limited to 'devel/p5-PerlMenu')
-rw-r--r--devel/p5-PerlMenu/Makefile26
-rw-r--r--devel/p5-PerlMenu/distinfo1
-rw-r--r--devel/p5-PerlMenu/files/patch-aa21
-rw-r--r--devel/p5-PerlMenu/pkg-comment1
-rw-r--r--devel/p5-PerlMenu/pkg-descr4
-rw-r--r--devel/p5-PerlMenu/pkg-plist1
6 files changed, 54 insertions, 0 deletions
diff --git a/devel/p5-PerlMenu/Makefile b/devel/p5-PerlMenu/Makefile
new file mode 100644
index 000000000000..8b4b1e919a68
--- /dev/null
+++ b/devel/p5-PerlMenu/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: p5-PerlMenu
+# Date created: August 14, 2000
+# Whom: John Baldwin <jhb@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= PerlMenu
+PORTVERSION= 4.0
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= ../../authors/id/S/SK/SKUNZ
+PKGNAMEPREFIX= p5-
+DISTNAME= perlmenu.v4.0
+
+MAINTAINER= ports@FreeBSD.org
+
+RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${MACHINE_ARCH}-freebsd/Curses.pm:${PORTSDIR}/devel/p5-Curses
+
+USE_PERL5= yes
+NO_BUILD= yes
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/perlmenu.pm ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
+
+.include <bsd.port.mk>
diff --git a/devel/p5-PerlMenu/distinfo b/devel/p5-PerlMenu/distinfo
new file mode 100644
index 000000000000..e97ffda3ca21
--- /dev/null
+++ b/devel/p5-PerlMenu/distinfo
@@ -0,0 +1 @@
+MD5 (perlmenu.v4.0.tar.gz) = b931859ed581970f3fb05420316b39d3
diff --git a/devel/p5-PerlMenu/files/patch-aa b/devel/p5-PerlMenu/files/patch-aa
new file mode 100644
index 000000000000..4ccb32ae836d
--- /dev/null
+++ b/devel/p5-PerlMenu/files/patch-aa
@@ -0,0 +1,21 @@
+--- perlmenu.pm.orig Mon Aug 14 13:23:08 2000
++++ perlmenu.pm Mon Aug 14 13:23:36 2000
+@@ -105,12 +105,12 @@
+ # Uncomment these statements if you DON'T have "getcap()" OR
+ # if the demo doesn't appear to work (there's a bug in some getcap's).
+ #
+-#if ($] >= 5.001) { # Perl5 ONLY!
+-#package Perl5::Menu_PL::Compat; # Don't pollute perlmenu.pm namespace
+-#require Term::Cap; # Get Tgetent package
+-#$term = Tgetent Term::Cap { OSPEED => 9600 }; # Define entry
+-#sub perlmenu::getcap { $term->{"_" . shift()} }; # Define local subroutine
+-#}
++if ($] >= 5.001) { # Perl5 ONLY!
++package Perl5::Menu_PL::Compat; # Don't pollute perlmenu.pm namespace
++require Term::Cap; # Get Tgetent package
++$term = Tgetent Term::Cap { OSPEED => 9600 }; # Define entry
++sub perlmenu::getcap { $term->{"_" . shift()} }; # Define local subroutine
++}
+
+ # PERL4 ONLY (GETCAP PROBLEMS)
+ # Uncomment these statements if you DON'T have "getcap()" OR
diff --git a/devel/p5-PerlMenu/pkg-comment b/devel/p5-PerlMenu/pkg-comment
new file mode 100644
index 000000000000..fb07d5724f6b
--- /dev/null
+++ b/devel/p5-PerlMenu/pkg-comment
@@ -0,0 +1 @@
+Perl5 module for displaying menus with Curses
diff --git a/devel/p5-PerlMenu/pkg-descr b/devel/p5-PerlMenu/pkg-descr
new file mode 100644
index 000000000000..9c6873f5bc23
--- /dev/null
+++ b/devel/p5-PerlMenu/pkg-descr
@@ -0,0 +1,4 @@
+PerlMenu is a simple module that uses the Curses package to render
+menus on the terminal.
+
+WWW: http://www.ait.iastate.edu/perlmenu/
diff --git a/devel/p5-PerlMenu/pkg-plist b/devel/p5-PerlMenu/pkg-plist
new file mode 100644
index 000000000000..cc47ab7e89a6
--- /dev/null
+++ b/devel/p5-PerlMenu/pkg-plist
@@ -0,0 +1 @@
+lib/perl5/site_perl/%%PERL_VER%%/perlmenu.pm