aboutsummaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2006-09-27 08:04:50 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2006-09-27 08:04:50 +0000
commitd106e93a8787158092b94c56a749ba7118839743 (patch)
tree8f8b112bc04304c57408404ed97642b9be96fc0b /converters
parent89953b8da8e0ba44eafc43f9c832a79523ffac41 (diff)
downloadports-d106e93a8787158092b94c56a749ba7118839743.tar.gz
ports-d106e93a8787158092b94c56a749ba7118839743.zip
Notes
Diffstat (limited to 'converters')
-rw-r--r--converters/Makefile1
-rw-r--r--converters/p5-Convert-Bencode_XS/Makefile34
-rw-r--r--converters/p5-Convert-Bencode_XS/distinfo3
-rw-r--r--converters/p5-Convert-Bencode_XS/pkg-descr10
-rw-r--r--converters/p5-Convert-Bencode_XS/pkg-plist11
5 files changed, 59 insertions, 0 deletions
diff --git a/converters/Makefile b/converters/Makefile
index 8c46047eac8a..37403f2f9db0 100644
--- a/converters/Makefile
+++ b/converters/Makefile
@@ -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
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%%