aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2013-06-18 03:32:44 +0800
committerantoine <antoine@FreeBSD.org>2013-06-18 03:32:44 +0800
commitc44c8e3ad039ae3d3c3954b37f266934c6a1fede (patch)
tree1e902637c1d3ba0b4646d63d00c374f6b023c70d /devel
parentd09fc98bf7f9201fff1ffd961d75e89709b27798 (diff)
downloadfreebsd-ports-gnome-c44c8e3ad039ae3d3c3954b37f266934c6a1fede.tar.gz
freebsd-ports-gnome-c44c8e3ad039ae3d3c3954b37f266934c6a1fede.tar.zst
freebsd-ports-gnome-c44c8e3ad039ae3d3c3954b37f266934c6a1fede.zip
- Trim Makefile header, update my email address
- Remove article from COMMENT - Use PORTDOCS and convert to PORT_OPTIONS - Remove tab from pkg-descr
Diffstat (limited to 'devel')
-rw-r--r--devel/py-pefile/Makefile17
-rw-r--r--devel/py-pefile/pkg-descr2
-rw-r--r--devel/py-pefile/pkg-plist2
3 files changed, 10 insertions, 11 deletions
diff --git a/devel/py-pefile/Makefile b/devel/py-pefile/Makefile
index cffa8d7201cb..9c98a37911a4 100644
--- a/devel/py-pefile/Makefile
+++ b/devel/py-pefile/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: pefile
-# Date created: 16 July 2006
-# Whom: antoine.brodin@laposte.net
-#
+# Created by: Antoine Brodin <antoine@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= pefile
DISTVERSION= 1.2.10-123
@@ -12,7 +8,7 @@ MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= antoine@FreeBSD.org
-COMMENT= A python module to read and work with PE files
+COMMENT= Python module to read and work with PE files
LICENSE= MIT
@@ -20,12 +16,17 @@ USE_PYTHON= -2.7
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGVERSION= ${DISTVERSION:C,-,_,g}
+OPTIONS_DEFINE= DOCS
+
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+PORTDOCS= README
+
+.include <bsd.port.options.mk>
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/devel/py-pefile/pkg-descr b/devel/py-pefile/pkg-descr
index 625526dce124..5df570ef8c56 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: http://code.google.com/p/pefile/
diff --git a/devel/py-pefile/pkg-plist b/devel/py-pefile/pkg-plist
index ddc03aa8f579..ab49b1b3b221 100644
--- a/devel/py-pefile/pkg-plist
+++ b/devel/py-pefile/pkg-plist
@@ -5,5 +5,3 @@
%%PYTHON_SITELIBDIR%%/peutils.py
%%PYTHON_SITELIBDIR%%/peutils.pyc
%%PYTHON_SITELIBDIR%%/peutils.pyo
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%