aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-websvcs/Makefile
blob: c23e52362ddb2fdaa11d3925e92358201606bfba (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
# 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
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@python.or.kr

USE_PYTHON= yes
EXAMPLESDIR=    ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
DOCSDIR=    ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
        EXAMPLESDIR=${EXAMPLESDIR:S,^${PREFIX}/,,g} \
        DOCSDIR=${DOCSDIR:S,^${PREFIX}/,,g}
TOOLS=      interop2html

do-patch:
.for i in ${TOOLS}
    @${MV} ${WRKSRC}/tools/$i.py ${WRKSRC}/tools/$i
.endfor

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

do-install:
    ${MKDIR} ${EXAMPLESDIR}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/SOAP.py* ${PYTHON_SITELIBDIR}
.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>