44 lines
1 KiB
Makefile
44 lines
1 KiB
Makefile
# New ports collection makefile for: py-distutils-extra
|
|
# Date created: 07 Mar 2010
|
|
# Whom: Ju Pengfei <jupengfei@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= distutils-extra
|
|
PORTVERSION= 2.31
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= https://launchpadlibrarian.net/84711319/ \
|
|
LOCAL/sunpoet
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= python-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Add support for i18n, documentation, and icons to distutils
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= easy_install
|
|
PYDISTUTILS_PKGNAME= python_distutils_extra
|
|
PYDISTUTILS_NOEGGINFO= yes
|
|
|
|
PLIST_SUB= PYTHON_SUFFIX=${PYTHON_SUFFIX}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} >= 320
|
|
PLIST_SUB+= PYTHON32=""
|
|
.else
|
|
PLIST_SUB+= PYTHON32="@comment "
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PYTHON_REL} >= 320
|
|
.for py in __init__.py command/__init__.py command/build_extra.py
|
|
${PYTHON_CMD} -m compileall ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}/DistUtilsExtra/${py}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|