SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
17
devel/p5-Class-Virtual/Makefile
Normal file
17
devel/p5-Class-Virtual/Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
COMMENT= base class for virtual base classes
|
||||
|
||||
MODULES= cpan
|
||||
PKG_ARCH= *
|
||||
DISTNAME = Class-Virtual-0.08
|
||||
CATEGORIES= devel
|
||||
REVISION = 0
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= devel/p5-Class-Data-Inheritable \
|
||||
devel/p5-Carp-Assert \
|
||||
devel/p5-Class-ISA
|
||||
|
||||
# perl
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Class-Virtual/distinfo
Normal file
2
devel/p5-Class-Virtual/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (Class-Virtual-0.08.tar.gz) = xkmbQtO05cZIil6C+8KGmObJhgFlBy3d+mdJNVqc+7I=
|
||||
SIZE (Class-Virtual-0.08.tar.gz) = 6864
|
20
devel/p5-Class-Virtual/pkg/DESCR
Normal file
20
devel/p5-Class-Virtual/pkg/DESCR
Normal file
|
@ -0,0 +1,20 @@
|
|||
This is a base class for implementing virtual base classes (what
|
||||
some people call an abstract class). Kinda kooky. It allows you to
|
||||
explicitly declare what methods are virtual and that must be
|
||||
implemented by subclasses. This might seem silly, since your program
|
||||
will halt and catch fire when an unimplemented virtual method is
|
||||
hit anyway, but there's some benefits.
|
||||
|
||||
The error message is more informative. Instead of the usual "Can't
|
||||
locate object method" error, you'll get one explaining that a virtual
|
||||
method was left unimplemented.
|
||||
|
||||
Subclass authors can explicitly check to make sure they've implemented
|
||||
all the necessary virtual methods. When used as part of a regression
|
||||
test, it will shield against the virtual method requirements changing
|
||||
out from under the subclass.
|
||||
|
||||
Finally, subclass authors can get an explicit list of everything
|
||||
they're expected to implement.
|
||||
|
||||
Doesn't hurt and it doesn't slow you down.
|
5
devel/p5-Class-Virtual/pkg/PLIST
Normal file
5
devel/p5-Class-Virtual/pkg/PLIST
Normal file
|
@ -0,0 +1,5 @@
|
|||
${P5SITE}/Class/Virtual.pm
|
||||
${P5SITE}/Class/Virtually/
|
||||
${P5SITE}/Class/Virtually/Abstract.pm
|
||||
@man man/man3p/Class::Virtual.3p
|
||||
@man man/man3p/Class::Virtually::Abstract.3p
|
Loading…
Add table
Add a link
Reference in a new issue