Add p5-Convert-Bencode_XS 0.05, faster conversions to/from Bencode

format.

PR:		ports/102395
Submitted by:	Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
Cheng-Lung Sung 2006-09-27 08:04:50 +00:00
parent 89953b8da8
commit d106e93a87
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173951
5 changed files with 59 additions and 0 deletions

View file

@ -40,6 +40,7 @@
SUBDIR += p5-Convert-ASN1
SUBDIR += p5-Convert-BER
SUBDIR += p5-Convert-Bencode
SUBDIR += p5-Convert-Bencode_XS
SUBDIR += p5-Convert-BinHex
SUBDIR += p5-Convert-Binary-C
SUBDIR += p5-Convert-IBM390

View file

@ -0,0 +1,34 @@
# New ports collection makefile for: p5-Convert-Bencode_XS
# Date created: 2006-08-23
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= Convert-Bencode_XS
PORTVERSION= 0.05
CATEGORIES= converters perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Convert
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@FreeBSD.org
COMMENT= Faster conversions to/from Bencode format
RUN_DEPENDS= ${SITE_PERL}/Convert/Bencode.pm:${PORTSDIR}/converters/p5-Convert-Bencode
PERL_CONFIGURE= yes
MAN3= Convert::Bencode_XS.3
post-install:
${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/extras/* ${EXAMPLESDIR}
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
IGNORE= requires perl 5.6.x or later. Install lang/perl5.8 then try again
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,3 @@
MD5 (Convert-Bencode_XS-0.05.tar.gz) = 7b43b2f3dae4273e8e6b3d7106e1ad29
SHA256 (Convert-Bencode_XS-0.05.tar.gz) = de29b16a3d8c7cdbb7de6fc706f53b9fb4504c48c9be71b05674b2aeb3b3e0d1
SIZE (Convert-Bencode_XS-0.05.tar.gz) = 8826

View file

@ -0,0 +1,10 @@
Convert::Bencode_XS exists for a couple of reasons, first of all
performance. Especially bdecode() is between 10 and 200 times faster
than Convert::Bencode version (depending on file): the great speed
increase is in part due to the iterative algorithm used. bencode() is
written in C for better performance, but it still uses a recursive
algorithm. It manages to be around 3 to 5 times faster than
Convert::Bencode version. Check out the "extras" directory in this
distribution for benchmarks.
WWW: http://search.cpan.org/dist/Convert-Bencode_XS/

View file

@ -0,0 +1,11 @@
@comment $FreeBSD$
%%EXAMPLESDIR%%/bench_decode.pl
%%EXAMPLESDIR%%/bench_encode.pl
%%SITE_PERL%%/%%PERL_ARCH%%/Convert/Bencode_XS.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Convert/Bencode_XS/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Convert/Bencode_XS/Bencode_XS.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Convert/Bencode_XS/Bencode_XS.so
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Convert/Bencode_XS
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Convert
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Convert
@dirrmtry %%EXAMPLESDIR%%