- Cleanup

- bump NEED VERSION
- Fixes HOMEPAGE (Reported by Sebastian Stark <seb@todesplanet.de>)
This commit is contained in:
shell 2001-10-29 18:47:39 +00:00
parent af1f4513e7
commit 4e56cfc22f

View File

@ -1,19 +1,19 @@
# $OpenBSD: Makefile,v 1.6 2001/10/16 16:26:47 naddy Exp $
# $OpenBSD: Makefile,v 1.7 2001/10/29 18:47:39 shell Exp $
COMMENT= "python module for writing basic XML applications"
COMMENT= "python module for writing basic XML applications"
VERSION= 0.6.6
DISTNAME= PyXML-${VERSION}
PKGNAME= py-xml-${VERSION}
CATEGORIES= textproc devel
NEED_VERSION= 1.440
VERSION= 0.6.6
DISTNAME= PyXML-${VERSION}
PKGNAME= py-xml-${VERSION}
CATEGORIES= textproc devel
NEED_VERSION= 1.487
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyxml
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyxml
HOMEPAGE= http://pyxml.sourceforge.net/topic/
HOMEPAGE= http://pyxml.sourceforge.net/
MAINTAINER= Shell Hung <shell@openbsd.org>
MAINTAINER= Shell Hung <shell@openbsd.org>
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
@ -22,33 +22,30 @@ PERMIT_DISTFILES_CDROM= Yes
PYTHON_VER= 2.1
LIB_DEPENDS= expat.2::textproc/expat
LIB_DEPENDS= ::textproc/expat
RUN_DEPENDS= ::lang/python
BUILD_DEPENDS= ${RUN_DEPENDS}
SUBST_VARS= PYTHON_VER
DOC_DIR= ${PREFIX}/share/doc/PyXML
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
PY_CMD= cd ${WRKSRC}; python${PYTHON_VER} ./setup.py
DOC_DIR= ${PREFIX}/share/doc/PyXML/
SRC_DOCDIR= ${WRKSRC}/doc
DOCEXT= *.txt *.tex
do-build:
cd ${WRKSRC}; python${PYTHON_VER} ./setup.py build \
${PY_CMD} build \
--build-base=${WRKSRC} \
--with-libexpat=${LOCALBASE}
do-install:
cd ${WRKSRC}; python${PYTHON_VER} ./setup.py install \
--prefix=${PREFIX}
${PY_CMD} install --prefix=${PREFIX}
${INSTALL_DATA_DIR} ${DOC_DIR}
.for i in ${SRC_DOCMOD}
${INSTALL_DATA_DIR} ${DOC_DIR}/$i
${INSTALL_DATA} ${SRC_DOCDIR}/$i/* ${DOC_DIR}/$i/
.endfor
.for i in ${SRC_DOCFILES}
${INSTALL_DATA} ${SRC_DOCDIR}/$i ${DOC_DIR}/$i
.endfor
${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>