1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/www/py-satchmo/Makefile
Frederic Culot f05646d0ed - Update to 0.9.1
PR:		ports/156938
Submitted by:	Kevin Golding <ports@caomhin.org> (maintainer)
2011-05-11 14:54:36 +00:00

59 lines
2.2 KiB
Makefile

# New ports collection makefile for: py-satchmo
# Date created: 12 December 2009
# Whom: Kevin Golding <ports@caomhin.org>
#
# $FreeBSD$
#
PORTNAME= satchmo
PORTVERSION= 0.9.1
CATEGORIES= www python
MASTER_SITES= http://www.caomhin.org/geek/ports/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@caomhin.org
COMMENT= Shopping cart application for Django
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/django/bin/django-admin.py:${PORTSDIR}/www/py-django \
${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto \
${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab\
${PYTHON_SITELIBDIR}/trml2pdf/__init__.py:${PORTSDIR}/print/py-trml2pdf \
${PYTHON_SITELIBDIR}/registration/__init__.py:${PORTSDIR}/www/py-django-registration \
${PYTHON_SITELIBDIR}/yaml/__init__.py:${PORTSDIR}/devel/py-yaml \
${LOCALBASE}/bin/pildriver.py:${PORTSDIR}/graphics/py-imaging \
${PYTHON_SITELIBDIR}/sorl/thumbnail/__init__.py:${PORTSDIR}/graphics/py-sorl-thumbnail
WRKSRC= ${WRKDIR}/chris1610-satchmo-86134417a87b
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYEASYINSTALL_EGG= Satchmo-${PORTVERSION:C/([[:digit:]]\.[[:digit:]])\./\1_/g}-${PYTHON_VERSION:S/thon//}.egg
PYEASYINSTALL_UNINSTALLARGS= -q -m -S ${PYTHON_SITELIBDIR} \
${PYDISTUTILS_PKGNAME}==${PYDISTUTILS_PKGVERSION:C/([[:digit:]]\.[[:digit:]])\./\1_/g}
.include <bsd.port.pre.mk>
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}django-app-plugins>=0:${PORTSDIR}/www/py-django-app-plugins \
${PYTHON_PKGNAMEPREFIX}django-keyedcache>=0:${PORTSDIR}/www/py-django-keyedcache \
${PYTHON_PKGNAMEPREFIX}django-livesettings>=0:${PORTSDIR}/www/py-django-livesettings \
${PYTHON_PKGNAMEPREFIX}django-signals-ahoy>=0:${PORTSDIR}/www/py-django-signals-ahoy \
${PYTHON_PKGNAMEPREFIX}django-threaded-multihost>=0:${PORTSDIR}/www/py-django-threaded-multihost
.if defined(WITH_DOCS)
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
BUILD_DEPENDS+= rst2xml>0:${PORTSDIR}/textproc/py-docutils
.endif
post-build:
.if defined(WITH_DOCS)
cd ${WRKSRC}/docs && ${MAKE} html
.endif
post-install:
.if defined(WITH_DOCS)
${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>