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:
parent
c6a59c716e
commit
6711cae4ac
42
net/p5-MaxMind-DB-Reader-XS/Makefile
Normal file
42
net/p5-MaxMind-DB-Reader-XS/Makefile
Normal 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>
|
2
net/p5-MaxMind-DB-Reader-XS/distinfo
Normal file
2
net/p5-MaxMind-DB-Reader-XS/distinfo
Normal 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
|
14
net/p5-MaxMind-DB-Reader-XS/patches/patch-Build_PL
Normal file
14
net/p5-MaxMind-DB-Reader-XS/patches/patch-Build_PL
Normal 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' );
|
||||
|
2
net/p5-MaxMind-DB-Reader-XS/pkg/DESCR
Normal file
2
net/p5-MaxMind-DB-Reader-XS/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
This module causes MaxMind::DB::Reader to use the XS implementation, which
|
||||
is much faster than the Perl implementation.
|
12
net/p5-MaxMind-DB-Reader-XS/pkg/PLIST
Normal file
12
net/p5-MaxMind-DB-Reader-XS/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user