freebsd-ports/devel/py-icalendar/Makefile

49 lines
1.3 KiB
Makefile
Raw Normal View History

# Ports collection makefile for: py-icalendar
# Date created: May 17, 2005
# Whom: Kevin Lo <kevlo@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= icalendar
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= http://codespeak.net/icalendar/ \
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
2005-11-25 07:35:29 +01:00
DISTNAME= iCalendar-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= Parser and generator of iCalender files for Python
BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PYTHON= yes
2005-11-25 07:35:29 +01:00
USE_PYDISTUTILS= yes
PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to bsd.python.mk's
2005-11-25 07:35:29 +01:00
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
PYDISTUTILS_BUILD_TARGET= bdist_egg
PYDISTUTILS_INSTALL_TARGET= easy_install
PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PYICALENDAR_EGG}
PYICALENDAR_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
PYICALENDAR_EGG=${PYICALENDAR_EGG} \
PYICALENDAR_EGG_VER="${PORTNAME}==${PORTVERSION}"
2005-11-25 07:35:29 +01:00
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
.endif
.include <bsd.port.mk>