aboutsummaryrefslogtreecommitdiff
path: root/www/py-formencode/Makefile
blob: c129a1f3ecfa90ed434f498000db5874abf20b18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:	py-formencode
# Date created:		2005-11-16
# Whom:			Choe, Cheng-Dae
#
# $FreeBSD$
#

PORTNAME=	formencode
PORTVERSION=	0.9
PORTREVISION=	1
CATEGORIES=	www python
MASTER_SITES=	http://cheeseshop.python.org/packages/source/F/FormEncode/ \
		${MASTER_SITE_LOCAL} \
		http://dryice.name/computer/FreeBSD/distfiles/
MASTER_SITE_SUBDIR=	dryice
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	FormEncode-${PORTVERSION}

MAINTAINER=	dryice@FreeBSD.org
COMMENT=	HTML form validation, generation, and conversion package

BUILD_DEPENDS=	easy_install:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS=	${BUILD_DEPENDS}

USE_PYTHON=	yes
USE_PYDISTUTILS=yes
USE_GETTEXT=	yes

PYDISTUTILS_PKGNAME=	FormEncode
PYDISTUTILS_NOEGGINFO=	yes # XXX convert easy_install support to bsd.python.mk's

DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESSDIR=	${PREFIX}/share/examples/py-${PORTNAME}
FORMENCODEVER?=	${PORTVERSION}
PYTHONVER?=	${PYTHON_VERSION:S/^python//}
PLIST_SUB=	PYFORMENCODE_EGG=${PYFORMENCODE_EGG}

SUB_FILES+=	pkg-deinstall pkg-install
SUB_LIST+=	EGG="FormEncode==${FORMENCODEVER}" \
		PYTHON_SITELIBDIR="${PYTHON_SITELIBDIR}"

PORTDOCS=	*

PYFORMENCODE_EGG=	FormEncode-${FORMENCODEVER}-py${PYTHONVER}.egg

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${CP} ${WRKSRC}/docs/* ${DOCSDIR}

	${MKDIR} ${EXAMPLESDIR}
	${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>