Skip to content
Permalink
Browse files

py-pylibmc: update to 1.6.0, add py37

- add explicit dependency on zlib
- refresh patch
- update hompage
- use default PyPI livecheck
- install files in post-destroot
  • Loading branch information
reneeotten authored and cjones051073 committed Apr 4, 2019
1 parent 768bc6a commit 37768de323fa264e153f32e985c45811ce7b7baf
Showing with 21 additions and 13 deletions.
  1. +17 −9 python/py-pylibmc/Portfile
  2. +4 −4 python/py-pylibmc/files/patch-pylibmcmodule.c.diff
@@ -4,7 +4,8 @@ PortSystem 1.0
PortGroup python 1.0

name py-pylibmc
version 1.5.1
version 1.6.0
revision 0
license BSD
platforms darwin

@@ -15,26 +16,33 @@ long_description pylibmc is a Python wrapper around the accompanying \
C Python extension _pylibmc, which is a wrapper around \
libmemcached from TangentOrg

homepage https://pypi.python.org/pypi/pylibmc
homepage http://sendapatch.se/projects/pylibmc/
master_sites pypi:p/pylibmc/
distname pylibmc-${version}

checksums rmd160 24ff2977e97eef5446dbc491ada668baa02c5ff3 \
sha256 ecba261859c3e1ba3365389cb4f4dfffb7e02120a9f57a288cacf2f42c45cdd6
checksums rmd160 d427f286e6a8ea7c9daacce0f2b16b01f5314293 \
sha256 5ef97be4ca5527d5b87dbe77cfdd94b427028caf4136feff7da23c40e1ded6d8 \
size 65925

python.versions 27 34 35 36
python.versions 27 34 35 36 37

if {${name} ne ${subport}} {
depends_lib-append port:libmemcached
depends_lib-append port:libmemcached \
port:zlib

if {${os.platform} eq "darwin" && ${os.major} <= 10} {
patchfiles-append patch-pylibmcmodule.c.diff
}

build.target build_ext
build.args --with-libmemcached=${prefix}
build.args-append --with-libmemcached=${prefix}

post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
${destroot}${docdir}
}

livecheck.type none
} else {
livecheck.type pypi
}
@@ -1,5 +1,5 @@
--- _pylibmcmodule.c.orig 2012-03-07 11:00:09.000000000 -0500
+++ _pylibmcmodule.c 2012-03-07 11:03:21.000000000 -0500
--- src/_pylibmcmodule.c.orig 2018-11-09 12:42:08.000000000 -0500
+++ src/_pylibmcmodule.c 2019-04-04 20:47:03.000000000 -0400
@@ -46,6 +46,25 @@
{ Py_INCREF(obj); \
PyModule_AddObject(mod, nam, obj); }
@@ -24,5 +24,5 @@
+ return r;
+}

/* {{{ Type methods */
static PylibMC_Client *PylibMC_ClientType_new(PyTypeObject *type,
/* Some Python 3 porting stuff */
#ifndef Py_TYPE

0 comments on commit 37768de

Please sign in to comment.
You can’t perform that action at this time.