mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
add p5-Class-Contract
Design-by-Contract OO in Perl PR: 31782 Submitted by: Sergey Skvortsov <skv@protey.ru>
This commit is contained in:
parent
fe9678fff2
commit
acaf2d28e6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50169
@ -314,6 +314,7 @@
|
||||
SUBDIR += p5-C-Scan
|
||||
SUBDIR += p5-Cache-Cache
|
||||
SUBDIR += p5-Cdk
|
||||
SUBDIR += p5-Class-Contract
|
||||
SUBDIR += p5-Class-Date
|
||||
SUBDIR += p5-Class-Loader
|
||||
SUBDIR += p5-Class-MethodMaker
|
||||
|
38
devel/p5-Class-Contract/Makefile
Normal file
38
devel/p5-Class-Contract/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# New ports collection makefile for: Class::Contract
|
||||
# Date created: 5 Nov 2001
|
||||
# Whom: Sergey Skvortsov <skv@protey.ru>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Class-Contract
|
||||
PORTVERSION= 1.14
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= Class
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= skv@protey.ru
|
||||
|
||||
BUILD_DEPENDS= dos2unix:${PORTSDIR}/converters/unix2dos
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
||||
MAN3= Class::Contract.3 Class::Contract::Production.3
|
||||
|
||||
post-extract:
|
||||
@find ${WRKSRC} -type f -name "*.p[lm]" | xargs dos2unix -p
|
||||
|
||||
pre-configure:
|
||||
${MKDIR} ${WRKSRC}/examples
|
||||
${MV} ${WRKSRC}/demo.pl ${WRKSRC}/examples
|
||||
|
||||
post-install:
|
||||
.ifndef(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/examples/* \
|
||||
${PREFIX}/share/examples/${PORTNAME}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
devel/p5-Class-Contract/distinfo
Normal file
1
devel/p5-Class-Contract/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (Class-Contract-1.14.tar.gz) = fef5c44e6a76d59e12a3b52edcce9a53
|
8
devel/p5-Class-Contract/files/patch-demo.pl
Normal file
8
devel/p5-Class-Contract/files/patch-demo.pl
Normal file
@ -0,0 +1,8 @@
|
||||
--- demo.pl.orig Mon Nov 5 17:24:22 2001
|
||||
+++ demo.pl Mon Nov 5 17:24:29 2001
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/local/bin/perl -w
|
||||
+#!/usr/bin/perl -w
|
||||
|
||||
# NOTES:
|
||||
# Invariants and pre- and post-conditions are expected
|
1
devel/p5-Class-Contract/pkg-comment
Normal file
1
devel/p5-Class-Contract/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Design-by-Contract OO in Perl
|
8
devel/p5-Class-Contract/pkg-descr
Normal file
8
devel/p5-Class-Contract/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
The Class::Contract module implements strong encapsulation, static
|
||||
inheritance, and design-by-contract condition checking for
|
||||
object-oriented Perl. The module provides a declarative syntax for
|
||||
attribute, method, constructor, and destructor definitions at both
|
||||
the object and class level. Pre-conditions, post-conditions, and
|
||||
class invariants are also fully supported.
|
||||
|
||||
WWW: http://search.cpan.org/search?dist=Class-Contract
|
9
devel/p5-Class-Contract/pkg-plist
Normal file
9
devel/p5-Class-Contract/pkg-plist
Normal file
@ -0,0 +1,9 @@
|
||||
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class/Contract/.packlist
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Class/Contract.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Class/Contract/Production.pm
|
||||
%%PORTDOCS%%share/examples/Class-Contract/demo.pl
|
||||
%%PORTDOCS%%@dirrm share/examples/Class-Contract
|
||||
@dirrm lib/perl5/site_perl/%%PERL_VER%%/Class/Contract
|
||||
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class/Contract
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Class 2>/dev/null || true
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user