diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2016-04-02 13:07:15 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2016-04-02 13:07:15 +0000 |
commit | f7c6f786fb024417d74f9a7bf52282b19c628e3a (patch) | |
tree | b9d87e75941b1b76e6d378b6ebc21b5811a6c5d9 | |
parent | Add two patches from upstream to support llvm37. And switch to using llvm37 (diff) |
Update to 2016.3.28, this version works with both python 2 and python 3
Notes
Notes:
svn path=/head/; revision=412406
-rw-r--r-- | devel/py-pefile/Makefile | 21 | ||||
-rw-r--r-- | devel/py-pefile/distinfo | 4 | ||||
-rw-r--r-- | devel/py-pefile/files/patch-pefile.py | 11 | ||||
-rw-r--r-- | devel/py-pefile/pkg-descr | 2 |
4 files changed, 23 insertions, 15 deletions
diff --git a/devel/py-pefile/Makefile b/devel/py-pefile/Makefile index 78052923bbab..7060158e3411 100644 --- a/devel/py-pefile/Makefile +++ b/devel/py-pefile/Makefile @@ -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 -USE_PYTHON= distutils autoplist - -DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} -PORTDOCS= README +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future -OPTIONS_DEFINE= DOCS - -post-install: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} +NO_ARCH= yes +USES= python +USE_PYTHON= distutils autoplist .include <bsd.port.mk> diff --git a/devel/py-pefile/distinfo b/devel/py-pefile/distinfo index 2ba7bc6bc2eb..ee0d47adbdd7 100644 --- a/devel/py-pefile/distinfo +++ b/devel/py-pefile/distinfo @@ -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 diff --git a/devel/py-pefile/files/patch-pefile.py b/devel/py-pefile/files/patch-pefile.py new file mode 100644 index 000000000000..62111a841db9 --- /dev/null +++ b/devel/py-pefile/files/patch-pefile.py @@ -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 diff --git a/devel/py-pefile/pkg-descr b/devel/py-pefile/pkg-descr index 5df570ef8c56..8e74cdcabcbb 100644 --- a/devel/py-pefile/pkg-descr +++ b/devel/py-pefile/pkg-descr @@ -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 |