mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Modernize port
- Sort USE_PYTHON - Remove no-op PLIST_SUB - Remove post-patch: - Regenerate patch file with makepatch: - Pass maintainership to python@
This commit is contained in:
parent
786a782517
commit
3a2328b883
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448560
2 changed files with 8 additions and 14 deletions
|
@ -10,24 +10,18 @@ MASTER_SITES= http://launchpadlibrarian.net/30388120/ \
|
|||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= python-${PORTNAME}_${PORTVERSION}.orig
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= python@FreeBSD.org
|
||||
COMMENT= Twisted Python library for the AMQP messaging protocol
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}thrift>0:devel/py-thrift \
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}thrift>=0:devel/py-thrift \
|
||||
${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python:2
|
||||
USE_PYTHON= distutils autoplist
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
WRKSRC= ${WRKDIR}/python-${PORTNAME}-${PORTVERSION}
|
||||
|
||||
PLIST_SUB= PORTNAME="${PORTNAME}"
|
||||
|
||||
# TODO: Install txAMQP examples.
|
||||
|
||||
# Don't try to install Twisted yourself, txAMQP. thx!
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/install_requires/s/^/#/' ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- ./src/txamqp/codec.py.orig 2009-08-16 19:25:45.000000000 +0800
|
||||
+++ ./src/txamqp/codec.py 2013-05-30 13:54:50.000000000 +0800
|
||||
@@ -25,12 +25,12 @@
|
||||
--- src/txamqp/codec.py.orig 2009-08-16 11:25:45 UTC
|
||||
+++ src/txamqp/codec.py
|
||||
@@ -25,12 +25,12 @@ fields.
|
||||
"""
|
||||
|
||||
from cStringIO import StringIO
|
||||
|
@ -15,7 +15,7 @@
|
|||
|
||||
def __init__(self, stream):
|
||||
self.stream = stream
|
||||
@@ -153,6 +153,13 @@
|
||||
@@ -153,6 +153,13 @@ class Codec:
|
||||
def decode_longstr(self):
|
||||
return self.dec_str("!L")
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
# table
|
||||
def encode_table(self, tbl):
|
||||
enc = StringIO()
|
||||
@@ -180,6 +187,10 @@
|
||||
@@ -180,6 +187,10 @@ class Codec:
|
||||
value = self.decode_longstr()
|
||||
elif type == "I":
|
||||
value = self.decode_long()
|
||||
|
|
Loading…
Add table
Reference in a new issue