freebsd-ports/devel/py-pyutil/Makefile

35 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: py-pyutil
# Date created: 2007-5-31
# Whom: Chao Shin <quakelee@cn.FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pyutil
PORTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
MASTER_SITE_SUBDIR= source/p/pyutil
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= quakelee@cn.FreeBSD.org
COMMENT= A collection of mature utilities for Python programmers
USE_PYTHON= 2.4+
USE_PYDISTUTILS=easy_install
PYEASYINSTALL_ARCHDEP= yes
post-patch:
@${REINPLACE_CMD} -e 's|^from\ ez\_setup|#from\ ez\_setup|' \
-e 's|^use_setuptools|#use_setuptools|' ${WRKSRC}/${PYSETUP}
pre-build:
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-platlib -s lib.${PYEASYINSTALL_OSARCH:S/^-//}
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-temp -s temp.${PYEASYINSTALL_OSARCH:S/^-//}-${PYTHON_VER}
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist_egg -o plat-name -s ${PYEASYINSTALL_OSARCH:S/^-//}
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist -o plat-name -s ${PYEASYINSTALL_OSARCH:S/^-//}
.include <bsd.port.mk>