Import net/p5-MaxMind-DB-Reader-XS.

This module causes MaxMind::DB::Reader to use the XS implementation, which
is much faster than the Perl implementation.

OK giovanni@
This commit is contained in:
fcambus 2019-02-20 09:04:33 +00:00
parent c6a59c716e
commit 6711cae4ac
5 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/02/20 09:04:33 fcambus Exp $
ONLY_FOR_ARCHS = ${LP64_ARCHS}
COMMENT = fast XS implementation of MaxMind DB reader
DISTNAME = MaxMind-DB-Reader-XS-1.000007
CATEGORIES = net
MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
# Artistic 2.0
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c maxminddb perl
COMPILER = base-clang ports-gcc
MODULES = cpan
LIB_DEPENDS = net/libmaxminddb
RUN_DEPENDS = devel/p5-Moo \
devel/p5-namespace-autoclean \
math/p5-Math-Int128 \
net/p5-MaxMind-DB-Common>=0.040001 \
net/p5-MaxMind-DB-Reader
TEST_DEPENDS = devel/p5-Module-Implementation \
devel/p5-Path-Class>=0.27 \
devel/p5-Test-Fatal \
devel/p5-Test-Number-Delta \
devel/p5-Test-Requires \
net/p5-MaxMind-DB-Common \
net/p5-Net-Works>=0.21
CONFIGURE_STYLE = modbuild
CPAN_AUTHOR = MAXMIND
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (MaxMind-DB-Reader-XS-1.000007.tar.gz) = GXkr0DHRnF1Ve4oMnNIsQT9mb8TOrWwsdFdVhW/o4fE=
SIZE (MaxMind-DB-Reader-XS-1.000007.tar.gz) = 355532

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-Build_PL,v 1.1.1.1 2019/02/20 09:04:33 fcambus Exp $
Index: Build.PL
--- Build.PL.orig
+++ Build.PL
@@ -14,7 +14,7 @@ my $mb = Module::Build->new(
$mb->extra_compiler_flags(
@{ $mb->extra_compiler_flags },
- qw(-std=c99 -fms-extensions -Wall -g)
+ qw(-std=c99 -Wall -g)
);
$mb->extra_linker_flags( @{ $mb->extra_linker_flags }, '-lmaxminddb' );

View File

@ -0,0 +1,2 @@
This module causes MaxMind::DB::Reader to use the XS implementation, which
is much faster than the Perl implementation.

View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/02/20 09:04:33 fcambus Exp $
${P5ARCH}/MaxMind/
${P5ARCH}/MaxMind/DB/
${P5ARCH}/MaxMind/DB/Reader/
${P5ARCH}/MaxMind/DB/Reader/XS.pm
${P5ARCH}/auto/MaxMind/
${P5ARCH}/auto/MaxMind/DB/
${P5ARCH}/auto/MaxMind/DB/Reader/
${P5ARCH}/auto/MaxMind/DB/Reader/XS/
${P5ARCH}/auto/MaxMind/DB/Reader/XS/XS.bs
${P5ARCH}/auto/MaxMind/DB/Reader/XS/XS.so
@man man/man3p/MaxMind::DB::Reader::XS.3p