adding files manually to fix my botched import, port was already in the attic.

Import ports/devel/p5-Class-ISA. This is currently present in core perl,
but triggers a warning "Class::ISA will be removed from the Perl core
distribution in the next major release. Please install it from CPAN.
It is being used at [...]".

ok jasper@
This commit is contained in:
sthen 2010-11-17 22:45:40 +00:00
parent a006330971
commit 2426162927
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# $OpenBSD: Makefile,v 1.3 2010/11/17 22:45:40 sthen Exp $
COMMENT = report the search path for a class's ISA tree
MODULES = cpan
DISTNAME = Class-ISA-0.36
CPAN_AUTHOR = SMUELLER
CATEGORIES = devel
USE_GROFF = Yes
# Perl
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (Class-ISA-0.36.tar.gz) = OirSA8jch9bJ3hYhXQCvRw==
RMD160 (Class-ISA-0.36.tar.gz) = XEHWJZqteYfjftR7AEKPXvwOqRc=
SHA1 (Class-ISA-0.36.tar.gz) = 5IfxuJYVHQ29i57Xn5GLDQC3gi0=
SHA256 (Class-ISA-0.36.tar.gz) = iBbzTpo46EmhDfdWAw3M+f4GGhlsEaw/qv1xE8kpuWQ=
SIZE (Class-ISA-0.36.tar.gz) = 6056

View File

@ -0,0 +1,16 @@
Suppose you have a class (like Food::Fish::Fishstick) that is derived,
via its @ISA, from one or more superclasses (as Food::Fish::Fishstick is
from Food::Fish, Life::Fungus, and Chemicals), and some of those
superclasses may themselves each be derived, via its @ISA, from one or
more superclasses (as above).
When, then, you call a method in that class ($fishstick->calories), Perl
first searches there for that method, but if it's not there, it goes
searching in its superclasses, and so on, in a depth-first (or maybe
"height-first" is the word) search. In the above example, it'd first
look in Food::Fish, then Food, then Matter, then Life::Fungus, then
Life, then Chemicals.
This library, Class::ISA, provides functions that return that list --
the list (in order) of names of classes Perl would search to find a
method, with no duplicates.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.3 2010/11/17 22:45:40 sthen Exp $
${P5SITE}/Class/
${P5SITE}/Class/ISA.pm
@man man/man3p/Class::ISA.3p