diff --git a/devel/p5-Class-ISA/Makefile b/devel/p5-Class-ISA/Makefile new file mode 100644 index 00000000000..026cee8fdd9 --- /dev/null +++ b/devel/p5-Class-ISA/Makefile @@ -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 diff --git a/devel/p5-Class-ISA/distinfo b/devel/p5-Class-ISA/distinfo new file mode 100644 index 00000000000..be648434172 --- /dev/null +++ b/devel/p5-Class-ISA/distinfo @@ -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 diff --git a/devel/p5-Class-ISA/pkg/DESCR b/devel/p5-Class-ISA/pkg/DESCR new file mode 100644 index 00000000000..50215555a35 --- /dev/null +++ b/devel/p5-Class-ISA/pkg/DESCR @@ -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. diff --git a/devel/p5-Class-ISA/pkg/PLIST b/devel/p5-Class-ISA/pkg/PLIST new file mode 100644 index 00000000000..e07e325de82 --- /dev/null +++ b/devel/p5-Class-ISA/pkg/PLIST @@ -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