2005-12-29 05:25:46 +00:00
|
|
|
# New ports collection makefile for: py-kid
|
|
|
|
# Date created: 2005-11-02
|
|
|
|
# Whom: Choe, Cheng-Dae
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kid
|
2006-12-02 00:04:11 +00:00
|
|
|
PORTVERSION= 0.9.4
|
2007-01-07 10:06:10 +00:00
|
|
|
PORTREVISION= 1
|
2005-12-29 05:25:46 +00:00
|
|
|
CATEGORIES= devel python
|
2007-01-07 10:06:10 +00:00
|
|
|
MASTER_SITES= http://www.kid-templating.org/dist/${PORTVERSION}/ \
|
|
|
|
http://nivi.interfree.it/distfiles/${PORTNAME}/
|
2005-12-29 05:25:46 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2006-12-15 19:48:24 +00:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2005-12-29 05:25:46 +00:00
|
|
|
COMMENT= A simple template language for XML based written in Python
|
|
|
|
|
2007-01-07 10:06:10 +00:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree \
|
|
|
|
easy_install:${PORTSDIR}/devel/py-setuptools
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
|
|
|
PLIST_SUB+= PYKID_EGG=${PYKID_EGG} \
|
|
|
|
PYTHON_OLD=${PYTHON_OLD}
|
|
|
|
|
|
|
|
SUB_FILES+= pkg-deinstall pkg-install
|
|
|
|
SUB_LIST+= EGG="kid==${PYKID_VER}" \
|
|
|
|
PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
|
2005-12-29 05:25:46 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS=yes
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2007-01-17 18:03:07 +00:00
|
|
|
PYKID_EGG= ${PORTNAME}-${PYKID_VER}-py${PYTHON_VER}.egg
|
2007-01-07 10:06:10 +00:00
|
|
|
PYKID_VER= ${PORTVERSION}
|
|
|
|
|
|
|
|
SETUP_CFG= setup.cfg
|
2006-12-02 00:04:11 +00:00
|
|
|
|
2007-01-07 10:06:10 +00:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/${SETUP_CFG} ${WRKSRC}
|
2006-12-02 00:04:11 +00:00
|
|
|
|
2007-01-07 10:06:10 +00:00
|
|
|
post-install:
|
2005-12-29 05:25:46 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} ; ${CP} README HISTORY COPYING misc/* ${DOCSDIR}
|
|
|
|
${CP} -r ${WRKSRC}/doc/* ${DOCSDIR}
|
|
|
|
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${CP} -r ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
|
2007-01-07 10:06:10 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PYTHON_REL} >= 250
|
2007-01-17 18:03:07 +00:00
|
|
|
PYTHON_OLD= "@comment "
|
2007-01-07 10:06:10 +00:00
|
|
|
.else
|
2007-01-17 18:03:07 +00:00
|
|
|
PYTHON_OLD= ""
|
2007-01-07 10:06:10 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|