aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-lxml/Makefile
blob: 28574541bcdd06bca2bfebd16fd48a55d3fd29d9 (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
# Ports collection makefile for:    py-lxml
# Date created:             Feb 18, 2007
# Whom:                 Robert Gogolok <gogo@cs.uni-sb.de>
#
# $FreeBSD$
#

PORTNAME=   lxml
PORTVERSION=    1.3.6
CATEGORIES= devel python
MASTER_SITES=   http://codespeak.net/lxml/ \
        http://cheeseshop.python.org/packages/source/l/lxml/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
EXTRACT_SUFX=   .tgz

MAINTAINER= gogo@cs.uni-sb.de
COMMENT=    Pythonic binding for the libxml2 and libxslt libraries

LIB_DEPENDS=    xslt.2:${PORTSDIR}/textproc/libxslt

USE_PYTHON= 2.4+
USE_PYDISTUTILS=    easy_install
PYEASYINSTALL_INSTALLARGS=  -N ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}
PYEASYINSTALL_UNINSTALLARGS=    -q -m -N ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}
PYEASYINSTALL_ARCHDEP=  yes

DOCSDIR=    ${PREFIX}/share/doc/py-${PORTNAME}

BASEDOCS=   CHANGES.txt \
        CREDITS.txt \
        LICENSES.txt \
        TODO.txt \
        README.txt

PYLXML_EGG=     ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}${PYEASYINSTALL_OSARCH}.egg

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
. for f in ${BASEDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
. endfor
    @${MKDIR} ${DOCSDIR}/doc
    ${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}/doc
.endif

.include <bsd.port.mk>