mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
mail/archivemail: Limit to Python 2.7, level up port compliance
archivemail fails to build with Python 3.x [1]: print too_old_error ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(too_old_error)? Limit to Python 2.7 accordingly. While I'm here, level up port compliance: - Update COMMENT to match setup.py:description - Use distutils/autoplist/concurrent (package uses a setup.py). Remove NO_BUILD, do-install target, amend pkg-plist accordingly. - Patch setup.py to install man pages in /usr/local not /usr/local/share - Add test target to assist QA PR: 237179 [1] Reported by: Helge Oldach <freebsd oldach net> [1] MFH: 2019Q2
This commit is contained in:
parent
70da122aee
commit
421f817592
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498876
@ -3,30 +3,29 @@
|
||||
|
||||
PORTNAME= archivemail
|
||||
PORTVERSION= 0.9.0
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= SF/${PORTNAME}/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Archive or delete mail older than N days
|
||||
COMMENT= Archive and compress old email
|
||||
|
||||
LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USES= python shebangfix
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
SHEBANG_FILES= archivemail \
|
||||
test_archivemail
|
||||
USES= python:2.7 shebangfix
|
||||
|
||||
USE_PYTHON= distutils concurrent autoplist
|
||||
|
||||
SHEBANG_FILES= test_archivemail
|
||||
|
||||
DOCS= CHANGELOG FAQ NEWS README TODO
|
||||
EXAMPLES= test_archivemail examples/archivemail_all
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/archivemail ${STAGEDIR}${PREFIX}/bin/archivemail
|
||||
${INSTALL_MAN} ${WRKSRC}/archivemail.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
NO_ARCH= yes
|
||||
|
||||
do-install-EXAMPLES-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
@ -36,4 +35,7 @@ do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} test_archivemail
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
9
mail/archivemail/files/patch-setup.py
Normal file
9
mail/archivemail/files/patch-setup.py
Normal file
@ -0,0 +1,9 @@
|
||||
--- setup.py.orig 2019-04-14 08:03:17 UTC
|
||||
+++ setup.py
|
||||
@@ -29,5 +29,5 @@ setup(name="archivemail",
|
||||
maintainer="Nikolaus Schulz, Peter Poeml",
|
||||
maintainer_email="nikosch@users.sourceforge.net, poeml@users.sourceforge.net",
|
||||
scripts=["archivemail"],
|
||||
- data_files=[("share/man/man1", ["archivemail.1"])],
|
||||
+ data_files=[("man/man1", ["archivemail.1"])],
|
||||
)
|
@ -1,5 +1,3 @@
|
||||
bin/archivemail
|
||||
man/man1/archivemail.1.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
|
||||
%%PORTDOCS%%%%DOCSDIR%%/FAQ
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||
|
Loading…
Reference in New Issue
Block a user