1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Adding port lang/p5-Quantum-Superpositions, QM-like superpositions in Perl.

Approved by:	tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-06-01 07:25:40 +00:00
parent d554909b42
commit d478ddb277
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164142
5 changed files with 66 additions and 0 deletions

View File

@ -179,6 +179,7 @@
SUBDIR += p5-JavaScript-Squish
SUBDIR += p5-List-MoreUtils
SUBDIR += p5-Perl6-Subs
SUBDIR += p5-Quantum-Superpositions
SUBDIR += p5-Scalar-List-Utils
SUBDIR += p5-Switch
SUBDIR += p5-Tcl

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: p5-Quantum-Superpositions
# Date created: 01 Jun 2006
# Whom: Aaron Dalton <aaron@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Quantum-Superpositions
PORTVERSION= 2.02
CATEGORIES= lang science perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Quantum
PKGNAMEPREFIX= p5-
MAINTAINER= aaron@FreeBSD.org
COMMENT= QM-like superpositions in Perl
BUILD_DEPENDS= ${SITE_PERL}/Class/Multimethods.pm:${PORTSDIR}/devel/p5-Class-Multimethods
RUN_DEPENDS= ${BUILD_DEPENDS}
MAN3= Quantum::Superpositions.3
PERL_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
post-patch:
@${PERL} -pi -e 's/^our (\$$VERSION)/use vars qw($$1); $$1/;' \
-e '$$_ = "" if /use warnings/;' \
${WRKSRC}/lib/Quantum/Superpositions.pm
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (Quantum-Superpositions-2.02.tar.gz) = 40a3a398ca24be6de510667d92c02f5e
SHA256 (Quantum-Superpositions-2.02.tar.gz) = 52861934839451090e64d460513fec8606773191b5252f67d1a6480263d38473
SIZE (Quantum-Superpositions-2.02.tar.gz) = 13742

View File

@ -0,0 +1,23 @@
The Quantum::Superpositions module adds two new operators to Perl: any and
all.
Each of these operators takes a list of values (states) and superimposes
them into a single scalar value (a superposition), which can then be
stored in a standard scalar variable.
The any and all operators produce two distinct kinds of superposition. The
any operator produces a disjunctive superposition, which may (notionally)
be in any one of its states at any time, according to the needs of the
algorithm that uses it.
In contrast, the all operator creates a conjunctive superposition, which
is always in every one of its states simultaneously.
Superpositions are scalar values and hence can participate in arithmetic
and logical operations just like any other type of scalar. However, when
an operation is applied to a superposition, it is applied (notionally) in
parallel to each of the states in that superposition.
WWW: http://search.cpan.org/dist/Quantum-Superpositions
Authors: Damian Conway <damian@conway.org>
Steven Lembark <lembark@wrkhors.com>

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/Quantum/Superpositions.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Quantum/Superpositions/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Quantum/Superpositions
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Quantum
@dirrmtry %%SITE_PERL%%/Quantum