blob: 580bf1699141e4f9d04a860a433d304abf76093b (
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
|
# Ports collection Makefile for: py-websvcs
# Date created: August 19 2001
# Whom: Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#
PORTNAME= websvcs
PORTVERSION= 0.9.7
PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= py${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= SOAPpy${PORTVERSION:S/.//g}
EXTRACT_SUFX= .tgz
MAINTAINER= perky@FreeBSD.org
COMMENT= Web service libraries includes SOAP, WSDL, UDDI, etc
USE_PYTHON= yes
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+= EXAMPLESDIR=${EXAMPLESDIR:S,^${PREFIX}/,,g} \
DOCSDIR=${DOCSDIR:S,^${PREFIX}/,,g}
NO_BUILD= yes
TOOLS= interop2html
PY_FILES= SOAP
do-patch:
.for i in ${TOOLS}
@${MV} ${WRKSRC}/tools/$i.py ${WRKSRC}/tools/$i
.endfor
do-install:
${MKDIR} ${EXAMPLESDIR}
${MKDIR} ${DOCSDIR}
.for f in ${PY_FILES}
${INSTALL_DATA} ${WRKSRC}/${f}.py ${PYTHON_SITELIBDIR}
@${PYTHON_CMD} -c "import py_compile; py_compile.compile('${PYTHON_SITELIBDIR}/${f}.py')"
@${PYTHON_CMD} -O -c "import py_compile; py_compile.compile('${PYTHON_SITELIBDIR}/${f}.py')"
.endfor
.for i in ${TOOLS}
${INSTALL_SCRIPT} ${WRKSRC}/tools/$i ${PREFIX}/bin
.endfor
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/tests/*.py ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|