1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-08 23:06:56 +00:00
freebsd-ports/devel/p5-PerlMenu/files/patch-aa
Will Andrews d1e078484f Add PerlMenu 4.0, a simple module that uses the Curses package to render
menus on the terminal.

Submitted by:	jhb
2000-08-14 21:23:14 +00:00

22 lines
940 B
Plaintext

--- 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