diff options
author | clsung <clsung@FreeBSD.org> | 2006-09-27 16:04:50 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-09-27 16:04:50 +0800 |
commit | 9f261db7ab68806027d9a1b4429f85a3e65793ae (patch) | |
tree | 711f08d703709f61be81a95a6f54033cd64a3e90 /converters/p5-Convert-Bencode_XS | |
parent | e9e11b8605fabae424311a69d870e75305bedc66 (diff) | |
download | freebsd-ports-gnome-9f261db7ab68806027d9a1b4429f85a3e65793ae.tar.gz freebsd-ports-gnome-9f261db7ab68806027d9a1b4429f85a3e65793ae.tar.zst freebsd-ports-gnome-9f261db7ab68806027d9a1b4429f85a3e65793ae.zip |
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>
Diffstat (limited to 'converters/p5-Convert-Bencode_XS')
-rw-r--r-- | converters/p5-Convert-Bencode_XS/Makefile | 34 | ||||
-rw-r--r-- | converters/p5-Convert-Bencode_XS/distinfo | 3 | ||||
-rw-r--r-- | converters/p5-Convert-Bencode_XS/pkg-descr | 10 | ||||
-rw-r--r-- | converters/p5-Convert-Bencode_XS/pkg-plist | 11 |
4 files changed, 58 insertions, 0 deletions
diff --git a/converters/p5-Convert-Bencode_XS/Makefile b/converters/p5-Convert-Bencode_XS/Makefile new file mode 100644 index 000000000000..c4eb05277839 --- /dev/null +++ b/converters/p5-Convert-Bencode_XS/Makefile @@ -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> diff --git a/converters/p5-Convert-Bencode_XS/distinfo b/converters/p5-Convert-Bencode_XS/distinfo new file mode 100644 index 000000000000..987e53c6ffeb --- /dev/null +++ b/converters/p5-Convert-Bencode_XS/distinfo @@ -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 diff --git a/converters/p5-Convert-Bencode_XS/pkg-descr b/converters/p5-Convert-Bencode_XS/pkg-descr new file mode 100644 index 000000000000..156928185559 --- /dev/null +++ b/converters/p5-Convert-Bencode_XS/pkg-descr @@ -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/ diff --git a/converters/p5-Convert-Bencode_XS/pkg-plist b/converters/p5-Convert-Bencode_XS/pkg-plist new file mode 100644 index 000000000000..b1c1bf564164 --- /dev/null +++ b/converters/p5-Convert-Bencode_XS/pkg-plist @@ -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%% |