mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Add PerlMenu 4.0, a simple module that uses the Curses package to render
menus on the terminal. Submitted by: jhb
This commit is contained in:
parent
0dc8b5c2bb
commit
d1e078484f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31643
@ -213,6 +213,7 @@
|
||||
SUBDIR += p5-Parse-RecDescent
|
||||
SUBDIR += p5-Penguin
|
||||
SUBDIR += p5-Penguin-Easy
|
||||
SUBDIR += p5-PerlMenu
|
||||
SUBDIR += p5-Proc-Simple
|
||||
SUBDIR += p5-ReadLine-Gnu
|
||||
SUBDIR += p5-ReadLine-Perl
|
||||
|
26
devel/p5-PerlMenu/Makefile
Normal file
26
devel/p5-PerlMenu/Makefile
Normal file
@ -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>
|
1
devel/p5-PerlMenu/distinfo
Normal file
1
devel/p5-PerlMenu/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (perlmenu.v4.0.tar.gz) = b931859ed581970f3fb05420316b39d3
|
21
devel/p5-PerlMenu/files/patch-aa
Normal file
21
devel/p5-PerlMenu/files/patch-aa
Normal file
@ -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
|
1
devel/p5-PerlMenu/pkg-comment
Normal file
1
devel/p5-PerlMenu/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Perl5 module for displaying menus with Curses
|
4
devel/p5-PerlMenu/pkg-descr
Normal file
4
devel/p5-PerlMenu/pkg-descr
Normal file
@ -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/
|
1
devel/p5-PerlMenu/pkg-plist
Normal file
1
devel/p5-PerlMenu/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
lib/perl5/site_perl/%%PERL_VER%%/perlmenu.pm
|
Loading…
Reference in New Issue
Block a user