Fix USES=python: does not work with Python 3

- Add NO_ARCH
- Remove PROJECTHOST
- Use USE_PYTHON=autoplist
- Remove PYDISTUTILS_PKGNAME
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-01-23 18:51:29 +00:00
parent 240b5deff9
commit 2d2cda271c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432275
2 changed files with 4 additions and 10 deletions

View file

@ -10,12 +10,9 @@ DISTNAME= sitemap_gen_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Script to analyze web server and generate Google Sitemap files COMMENT= Script to analyze web server and generate Google Sitemap files
PROJECTHOST= sitemap-generators NO_ARCH= yes
NO_WRKSUBDIR= yes
NO_WRKSUBDIR= USES= python:2
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= distutils
PYDISTUTILS_PKGNAME= sitemap_gen
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,3 +0,0 @@
%%PYTHON_SITELIBDIR%%/sitemap_gen.py
%%PYTHON_SITELIBDIR%%/sitemap_gen.pyc
%%PYTHON_SITELIBDIR%%/sitemap_gen.pyo