mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Update to 2016.3.28, this version works with both python 2 and python 3
This commit is contained in:
parent
28fefac85f
commit
f7c6f786fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=412406
4 changed files with 23 additions and 15 deletions
|
@ -2,26 +2,23 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= pefile
|
||||
DISTVERSION= 1.2.10-139
|
||||
PORTVERSION= 2016.3.28
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= GOOGLE_CODE
|
||||
MASTER_SITES= CHEESESHOP \
|
||||
https://github.com/erocarrera/pefile/files/192316/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= antoine@FreeBSD.org
|
||||
COMMENT= Python module to read and work with PE files
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= python:2
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
||||
PORTDOCS= README
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (pefile-1.2.10-139.tar.gz) = 8b7c5d853c97a923d0f6e128d0ae76b962aa75fd608d552f5a32e46276908a16
|
||||
SIZE (pefile-1.2.10-139.tar.gz) = 57322
|
||||
SHA256 (pefile-2016.3.28.tar.gz) = f24021085b5c3ef7b0898bb1f1d93eecd3839e03512769e22b0c5a10d9095f7b
|
||||
SIZE (pefile-2016.3.28.tar.gz) = 58110
|
||||
|
|
11
devel/py-pefile/files/patch-pefile.py
Normal file
11
devel/py-pefile/files/patch-pefile.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- pefile.py.orig 2016-03-28 18:56:29 UTC
|
||||
+++ pefile.py
|
||||
@@ -5303,7 +5303,7 @@ class PE(object):
|
||||
# [ Microsoft Portable Executable and Common Object File Format Specification ]
|
||||
# "The alignment factor (in bytes) that is used to align the raw data of sections in
|
||||
# the image file. The value should be a power of 2 between 512 and 64 K, inclusive.
|
||||
- # The default is 512. If the SectionAlignment is less than the architecture’s page
|
||||
+ # The default is 512. If the SectionAlignment is less than the architecture's page
|
||||
# size, then FileAlignment must match SectionAlignment."
|
||||
#
|
||||
# The following is a hard-coded constant if the Windows loader
|
|
@ -2,4 +2,4 @@ pefile is a Python module to read and work with PE files. Most of the
|
|||
information in the PE Header is accessible, as well as all the sections,
|
||||
section's information and data.
|
||||
|
||||
WWW: http://code.google.com/p/pefile/
|
||||
WWW: https://github.com/erocarrera/pefile
|
||||
|
|
Loading…
Add table
Reference in a new issue