2001-08-08 06:02:50 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2001/08/08 10:02:50 shell Exp $
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2001-08-08 06:02:50 -04:00
|
|
|
COMMENT= "python module for writing basic XML applications"
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2001-08-08 06:02:50 -04:00
|
|
|
VERSION= 0.6.6
|
2001-05-05 19:20:18 -04:00
|
|
|
DISTNAME= PyXML-${VERSION}
|
|
|
|
PKGNAME= py-xml-${VERSION}
|
2001-08-08 06:02:50 -04:00
|
|
|
CATEGORIES= textproc devel
|
|
|
|
NEED_VERSION= 1.434
|
2001-05-05 19:20:18 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= pyxml
|
|
|
|
|
|
|
|
HOMEPAGE= http://pyxml.sourceforge.net/topic/
|
|
|
|
|
|
|
|
MAINTAINER= Shell Hung <shell@openbsd.org>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2001-08-08 06:02:50 -04:00
|
|
|
FLAVORS= python1
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpython1}
|
|
|
|
PYTHON_VER= 1.5
|
|
|
|
PYTHON_EXT= 15
|
|
|
|
PYTHON_PATH= ${LOCALBASE}/lib/python${PYTHON_VER}
|
|
|
|
RUN_DEPENDS= ${PYTHON_PATH}/site-packages/distutils::devel/py-Distutils
|
|
|
|
.else
|
|
|
|
PYTHON_VER= 2.1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
RUN_DEPENDS+= python${PYTHON_VER}::lang/python${PYTHON_EXT}
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
|
|
|
|
SUBST_VARS= PYTHON_VER
|
2001-05-05 19:20:18 -04:00
|
|
|
|
|
|
|
DOC_DIR= ${PREFIX}/share/doc/PyXML
|
2001-08-08 06:02:50 -04:00
|
|
|
SRC_DOCDIR= ${WRKSRC}/doc
|
|
|
|
SRC_DOCMOD= 4DOM xmlproc
|
|
|
|
SRC_DOCFILES= package-summary.txt xml-howto.tex \
|
|
|
|
xml-howto.txt xml-ref.tex xml-ref.txt
|
2001-05-05 19:20:18 -04:00
|
|
|
|
|
|
|
do-build:
|
2001-08-08 06:02:50 -04:00
|
|
|
cd ${WRKSRC}; python${PYTHON_VER} ./setup.py build \
|
|
|
|
--build-base=${WRKSRC}
|
2001-05-05 19:20:18 -04:00
|
|
|
|
|
|
|
do-install:
|
2001-08-08 06:02:50 -04:00
|
|
|
cd ${WRKSRC}; python${PYTHON_VER} ./setup.py install \
|
|
|
|
--prefix=${PREFIX}
|
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
|
|
|
.for i in ${SRC_DOCMOD}
|
2001-05-05 19:20:18 -04:00
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}/$i
|
2001-08-08 06:02:50 -04:00
|
|
|
${INSTALL_DATA} ${SRC_DOCDIR}/$i/* ${DOC_DIR}/$i/
|
2001-05-05 19:20:18 -04:00
|
|
|
.endfor
|
2001-08-08 06:02:50 -04:00
|
|
|
.for i in ${SRC_DOCFILES}
|
|
|
|
${INSTALL_DATA} ${SRC_DOCDIR}/$i ${DOC_DIR}/$i
|
2001-05-05 19:20:18 -04:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|