Add Perl modules for parsing and querying FreeBSD's Ports INDEX file

This commit is contained in:
Tom Hukins 2001-09-12 22:58:50 +00:00
parent 6641a49c5c
commit 75db9e78c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47770
11 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# New ports collection makefile for: p5-FreeBSD-Ports
# Date created: 12 September 2001
# Whom: Tom Hukins <tom@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= FreeBSD-Ports
PORTVERSION= 0.03
CATEGORIES= textproc perl5
MASTER_SITES= http://people.FreeBSD.org/~tom/portpm/
PKGNAMEPREFIX= p5-
MAINTAINER= tom@FreeBSD.org
USE_BZIP2= yes
PERL_CONFIGURE= yes
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= FreeBSD::Ports::Port.3 \
FreeBSD::Ports.3
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (FreeBSD-Ports-0.03.tar.bz2) = ca874e00cff23d7ec946abdadc761720

View file

@ -0,0 +1 @@
Perl modules for parsing FreeBSD's Ports INDEX file

View file

@ -0,0 +1,17 @@
FreeBSD::Ports and FreeBSD::Ports::Port are modules for parsing
FreeBSD's Ports INDEX file and selecting ports that match certain
criteria.
For example, you might want to list ports maintained by tom@FreeBSD.org
sorted alphabetically:
my $ports = tie my %port, 'FreeBSD::Ports', '/usr/ports/INDEX';
$ports->maintainer('tom@FreeBSD.org');
$ports->sort('alpha');
foreach my $p (keys %port) {
print $p->as_ascii,"\n";
}
WWW: http://people.FreeBSD.org/~tom/portpm/
- Tom
tom@FreeBSD.org

View file

@ -0,0 +1,7 @@
lib/perl5/site_perl/%%PERL_VER%%/FreeBSD/Ports/Port.pm
lib/perl5/site_perl/%%PERL_VER%%/FreeBSD/Ports.pm
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/FreeBSD/Ports/.packlist
@dirrm lib/perl5/site_perl/%%PERL_VER%%/FreeBSD/Ports
@dirrm lib/perl5/site_perl/%%PERL_VER%%/FreeBSD
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/FreeBSD/Ports
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/FreeBSD

View file

@ -93,6 +93,7 @@
SUBDIR += openjade
SUBDIR += opensched
SUBDIR += p5-DelimMatch
SUBDIR += p5-FreeBSD-Ports
SUBDIR += p5-HTML-Format
SUBDIR += p5-LJ-SpellCheck
SUBDIR += p5-Lingua-Ispell

View file

@ -0,0 +1,22 @@
# New ports collection makefile for: p5-FreeBSD-Ports
# Date created: 12 September 2001
# Whom: Tom Hukins <tom@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= FreeBSD-Ports
PORTVERSION= 0.03
CATEGORIES= textproc perl5
MASTER_SITES= http://people.FreeBSD.org/~tom/portpm/
PKGNAMEPREFIX= p5-
MAINTAINER= tom@FreeBSD.org
USE_BZIP2= yes
PERL_CONFIGURE= yes
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= FreeBSD::Ports::Port.3 \
FreeBSD::Ports.3
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (FreeBSD-Ports-0.03.tar.bz2) = ca874e00cff23d7ec946abdadc761720

View file

@ -0,0 +1 @@
Perl modules for parsing FreeBSD's Ports INDEX file

View file

@ -0,0 +1,17 @@
FreeBSD::Ports and FreeBSD::Ports::Port are modules for parsing
FreeBSD's Ports INDEX file and selecting ports that match certain
criteria.
For example, you might want to list ports maintained by tom@FreeBSD.org
sorted alphabetically:
my $ports = tie my %port, 'FreeBSD::Ports', '/usr/ports/INDEX';
$ports->maintainer('tom@FreeBSD.org');
$ports->sort('alpha');
foreach my $p (keys %port) {
print $p->as_ascii,"\n";
}
WWW: http://people.FreeBSD.org/~tom/portpm/
- Tom
tom@FreeBSD.org

View file

@ -0,0 +1,7 @@
lib/perl5/site_perl/%%PERL_VER%%/FreeBSD/Ports/Port.pm
lib/perl5/site_perl/%%PERL_VER%%/FreeBSD/Ports.pm
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/FreeBSD/Ports/.packlist
@dirrm lib/perl5/site_perl/%%PERL_VER%%/FreeBSD/Ports
@dirrm lib/perl5/site_perl/%%PERL_VER%%/FreeBSD
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/FreeBSD/Ports
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/FreeBSD