openbsd-ports/textproc/py-xml/Makefile

53 lines
1.2 KiB
Makefile
Raw Normal View History

2001-12-31 04:41:29 -05:00
# $OpenBSD: Makefile,v 1.10 2001/12/31 09:41:29 shell Exp $
COMMENT= "python module for writing basic XML applications"
2001-12-31 04:41:29 -05:00
VERSION= 0.7
DISTNAME= PyXML-${VERSION}
PKGNAME= py-xml-${VERSION}
CATEGORIES= textproc devel
2001-12-31 04:41:29 -05:00
NEED_VERSION= 1.503
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyxml
HOMEPAGE= http://pyxml.sourceforge.net/
MAINTAINER= Shell Hung <shell@openbsd.org>
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PYTHON_VER= 2.1
LIB_DEPENDS= expat.2::textproc/expat
2001-11-05 12:04:11 -05:00
BUILD_DEPENDS= ::lang/python
RUN_DEPENDS= ${BUILD_DEPENDS}
SUBST_VARS= PYTHON_VER
2001-11-05 12:04:11 -05:00
NO_REGRESS= Yes
PY_CMD= cd ${WRKSRC}; python${PYTHON_VER} ./setup.py
DOC_DIR= ${PREFIX}/share/doc/PyXML/
SRC_DOCDIR= ${WRKSRC}/doc
DOCEXT= *.txt *.tex
do-build:
${PY_CMD} build \
--build-base=${WRKSRC} \
--with-libexpat=${LOCALBASE}
do-install:
${PY_CMD} install --prefix=${PREFIX}
${INSTALL_DATA_DIR} ${DOC_DIR}
${INSTALL_DATA_DIR} ${DOC_DIR}/4DOM
${INSTALL_DATA_DIR} ${DOC_DIR}/xmlproc
${INSTALL_DATA} ${SRC_DOCDIR}/4DOM/* ${DOC_DIR}/4DOM/
${INSTALL_DATA} ${SRC_DOCDIR}/xmlproc/* ${DOC_DIR}/xmlproc/
@cd ${SRC_DOCDIR}/ && ${INSTALL_DATA} ${DOCEXT} ${DOC_DIR}
.include <bsd.port.mk>