1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/lang/py-mx-base/Makefile
Sunpoet Po-Chuan Hsieh 669b77a493 - Update to 3.2.7
Changes:	http://www.egenix.com/products/python/mxBase/changelog.html
PR:		188310
Submitted by:	Muhammad Moinur Rahman <5u623l20@gmail.com> (maintainer)
2014-04-07 10:12:58 +00:00

57 lines
1.9 KiB
Makefile

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= mx-base
PORTVERSION= 3.2.7
CATEGORIES= lang python
MASTER_SITES= https://downloads.egenix.com/python/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= egenix-${PORTNAME}-${PORTVERSION}
MAINTAINER= 5u623l20@gmail.com
COMMENT= eGenix mx-Extension Series for Python
USE_PYTHON= 2
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= egenix-mx-base
PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME:C/[^A-Za-z0-9.]+/_/g}-${PYDISTUTILS_PKGVERSION:C/[^A-Za-z0-9.]+/_/g}-py${PYTHON_VER}-nspkg.pth
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options
OPTIONS_DEFINE= DOCS ZOPE EXAMPLES
ZOPE_USES= zope
TXTDOCS= COPYRIGHT MANIFEST README LICENSE PKG-INFO
PDFDOCS= mx/DateTime/Doc/mxDateTime.pdf \
mx/Proxy/Doc/mxProxy.pdf \
mx/Queue/Doc/mxQueue.pdf \
mx/Stack/Doc/mxStack.pdf \
mx/TextTools/Doc/mxTextTools.pdf \
mx/Tools/Doc/mxTools.pdf \
mx/BeeBase/Doc/mxBeeBase.pdf \
mx/URL/Doc/mxURL.pdf \
mx/UID/Doc/mxUID.pdf
PORTDOCS= *
PORTEXAMPLES= *
post-patch:
@${REINPLACE_CMD} -e '/pdf/d' ${WRKSRC}/egenix_mx_base.py
@${REINPLACE_CMD} -e '/Examples/d' ${WRKSRC}/egenix_mx_base.py
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${TXTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PDFDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${SED} -e "s;%%PYTHON_SITELIBDIR%%;${PYTHON_SITELIBDIR};g" \
< ${FILESDIR}/index.html.in > ${STAGEDIR}${DOCSDIR}/index.html
@${CHMOD} 644 ${STAGEDIR}${DOCSDIR}/index.html
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/mx/DateTime
${INSTALL_DATA} ${WRKSRC}/mx/DateTime/Examples/* ${STAGEDIR}${EXAMPLESDIR}/mx/DateTime
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/mx/TextTools
${INSTALL_DATA} ${WRKSRC}/mx/TextTools/Examples/* ${STAGEDIR}${EXAMPLESDIR}/mx/TextTools
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/mx/Tools
${INSTALL_DATA} ${WRKSRC}/mx/Tools/Examples/* ${STAGEDIR}${EXAMPLESDIR}/mx/Tools
.include <bsd.port.mk>