mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
databases/p5-Memcached-libmemcached: update to 1.001801
While here, patch out the bundled libmemcached and use the one from ports
This commit is contained in:
parent
ef2a451323
commit
3f87275c8d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390986
5 changed files with 67 additions and 16 deletions
|
@ -2,22 +2,31 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Memcached-libmemcached
|
||||
PORTVERSION= 0.44.06
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.001801
|
||||
CATEGORIES= databases devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
MASTER_SITE_SUBDIR= CPAN:TIMB
|
||||
PKGNAMEPREFIX= p5-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
|
||||
|
||||
MAINTAINER= swills@FreeBSD.org
|
||||
COMMENT= Thin fast full interface to the libmemcached client API
|
||||
|
||||
LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= configure
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/my $$configure_args/ s|--disable-shared|& --without-memcached --disable-dtrace|' ${WRKSRC}/Makefile.PL
|
||||
post-extract:
|
||||
@${RM} -r ${WRKDIR}/src
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD
|
||||
.if ${OSVERSION} > 1000000
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile.PL-10
|
||||
.else
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile.PL-9
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (Memcached-libmemcached-0.4406.tar.gz) = def5f5c43ebcf49bd60b7b8cebe67c20ca21e03328fe5854f36d7f539bed21e3
|
||||
SIZE (Memcached-libmemcached-0.4406.tar.gz) = 837725
|
||||
SHA256 (Memcached-libmemcached-1.001801.tar.gz) = aa07972fdb74cffde6b7fee648a3a58d3129af22e06a073d1388d778f6e8dca5
|
||||
SIZE (Memcached-libmemcached-1.001801.tar.gz) = 1162993
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
--- Makefile.PL.orig 2015-05-07 17:56:22 UTC
|
||||
+++ Makefile.PL
|
||||
@@ -30,7 +30,7 @@ $Data::Dumper::Indent = 1;
|
||||
$Data::Dumper::Sortkeys = 1;
|
||||
|
||||
my $lmcd_api_ver = "1.0"; # eg $lmcd_src/libmemcached-$lmcd_api_ver/
|
||||
-my $lmcd_inst = getcwd()."/src_inst";
|
||||
+my $lmcd_inst = "/usr/local";
|
||||
my $lmcd_built_lib = "$lmcd_inst/lib/libmemcached$Config{lib_ext}";
|
||||
my $is_developer = (-d ".svn" || -d ".git");
|
||||
|
||||
@@ -54,7 +54,7 @@ if (my $gccversion = $Config{gccversion}
|
||||
$opts{DEFINE} .= ' -Wmissing-prototypes';
|
||||
}
|
||||
}
|
||||
-$opts{LIBS} = ["-lstdc++"]; # else error: libmemcached.so: undefined symbol: __gxx_personality_v0
|
||||
+$opts{LIBS} = ["-lc++"]; # else error: libmemcached.so: undefined symbol: __gxx_personality_v0
|
||||
$opts{OPTIMIZE} = "-g" if $opt_g;
|
||||
$opts{CCFLAGS} = "-pg" if $opt_pg;
|
||||
my $coverage_flags = "";
|
||||
@@ -76,7 +76,7 @@ WriteMakefile(
|
||||
AUTHOR => 'Tim Bunce <Tim.Bunce@pobox.com>',
|
||||
VERSION_FROM => 'libmemcached.pm',
|
||||
ABSTRACT_FROM => 'libmemcached.pm',
|
||||
- INC => "-I$lmcd_inst/include",
|
||||
+ INC => "-I$lmcd_inst/include/",
|
||||
# We want to link to *our* private libmemcached and not one that
|
||||
# might already be installed on the system. The LIBS config gets
|
||||
# appended to the link command line, so if we used "-L$dir -lmemcached"
|
|
@ -0,0 +1,20 @@
|
|||
--- Makefile.PL.orig 2015-05-07 17:56:22 UTC
|
||||
+++ Makefile.PL
|
||||
@@ -30,7 +30,7 @@ $Data::Dumper::Indent = 1;
|
||||
$Data::Dumper::Sortkeys = 1;
|
||||
|
||||
my $lmcd_api_ver = "1.0"; # eg $lmcd_src/libmemcached-$lmcd_api_ver/
|
||||
-my $lmcd_inst = getcwd()."/src_inst";
|
||||
+my $lmcd_inst = "/usr/local";
|
||||
my $lmcd_built_lib = "$lmcd_inst/lib/libmemcached$Config{lib_ext}";
|
||||
my $is_developer = (-d ".svn" || -d ".git");
|
||||
|
||||
@@ -76,7 +76,7 @@ WriteMakefile(
|
||||
AUTHOR => 'Tim Bunce <Tim.Bunce@pobox.com>',
|
||||
VERSION_FROM => 'libmemcached.pm',
|
||||
ABSTRACT_FROM => 'libmemcached.pm',
|
||||
- INC => "-I$lmcd_inst/include",
|
||||
+ INC => "-I$lmcd_inst/include/",
|
||||
# We want to link to *our* private libmemcached and not one that
|
||||
# might already be installed on the system. The LIBS config gets
|
||||
# appended to the link command line, so if we used "-L$dir -lmemcached"
|
|
@ -1,7 +0,0 @@
|
|||
--- ./src/libmemcached/docs/memslap.pod.orig 2014-09-19 23:41:45.618347308 +0400
|
||||
+++ ./src/libmemcached/docs/memslap.pod 2014-09-19 23:41:57.086346149 +0400
|
||||
@@ -1,3 +1,4 @@
|
||||
+=encoding utf8
|
||||
=head1 NAME
|
||||
|
||||
memslap - Load testing and benchmarking tool for memcached
|
Loading…
Add table
Reference in a new issue