aboutsummaryrefslogtreecommitdiff
path: root/www/zope-portaltransforms/Makefile
blob: d33627f749b9fad350a0d8bedad35b67bb34ca91 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# New ports collection makefile for:	zope-cmftransforms
# Date created:				20 Mar 2004
# Whom:					Filippo Natali
#
# $FreeBSD$
#

PORTNAME=	portaltransforms
PORTVERSION=	1.3.7
PORTREVISION=	1
CATEGORIES=	www zope
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	archetypes
PKGNAMEPREFIX=	zope-
DISTNAME=	PortalTransforms-${PORTVERSION}-final01

MAINTAINER=	ports@FreeBSD.org
COMMENT=	PortalTransforms product for Zope/CMF

RUN_DEPENDS=	${LOCALBASE}/${SZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFDefault/__init__.py:${PORTSDIR}/www/zope-cmf \
		pdftohtml:${PORTSDIR}/textproc/pdftohtml \
		lynx:${PORTSDIR}/www/lynx \
		${PYTHON_SITELIBDIR}/docutils/__init__.py:${PORTSDIR}/textproc/py-docutils

NO_PACKAGE=	Double python dependency
USE_PYTHON=	yes
USE_ZOPE=	yes
DIST_SUBDIR=	zope

CONFLICTS=	plone-[0-9]*

ZOPEPRODUCTNAME=	PortalTransforms
WRKSRC=		${WRKDIR}/${ZOPEPRODUCTNAME}
PLIST=		${WRKDIR}/pkg-plist

OPTIONS=	WV "Add wv support" off \
		TIDY "Add tidy support" off \
		UNRTF "Add unrtf support" off \
		XLHTML "Add xlhtml support" off

.include <bsd.port.pre.mk>

.if defined(WITH_WV)
RUN_DEPENDS+=	wvHtml:${PORTSDIR}/textproc/wv
.endif

.if defined(WITH_TIDY)
RUN_DEPENDS+=	tidy:${PORTSDIR}/www/tidy
.endif

.if defined(WITH_UNRTF)
RUN_DEPENDS+=	unrtf:${PORTSDIR}/textproc/unrtf
.endif

.if defined(WITH_XLHTML)
RUN_DEPENDS+=	xlhtml:${PORTSDIR}/textproc/xlhtml
.endif

do-build:
	-@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/

pre-install:
	@${RM} -f ${PLIST}
	@${TOUCH} ${PLIST}
	@cd ${WRKDIR} && \
	for f in `${FIND} ${ZOPEPRODUCTNAME} -type f`; do \
		${ECHO_CMD} %%ZOPEPRODUCTDIR%%/$${f} >> ${PLIST}; \
	done; \
	for d in `${FIND} -d ${ZOPEPRODUCTNAME} -type d`; do \
		${ECHO_CMD} @dirrm %%ZOPEPRODUCTDIR%%/$${d} >> ${PLIST}; \
	done; \

do-install:
	@${MKDIR} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/
	@${CHMOD} -R og+rX ${WRKSRC}/
	@${CP} -R ${WRKSRC} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/

post-install:
.if !defined(BATCH)
	@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.post.mk>