SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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>

View file

@ -0,0 +1,2 @@
SHA256 (Class-Virtual-0.08.tar.gz) = xkmbQtO05cZIil6C+8KGmObJhgFlBy3d+mdJNVqc+7I=
SIZE (Class-Virtual-0.08.tar.gz) = 6864

View 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.

View 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