2005-11-25 20:16:12 +00:00
|
|
|
# New ports collection makefile for: django
|
|
|
|
# Date created: 2005-11-19
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2007-04-05 07:01:51 +00:00
|
|
|
PORTNAME= django
|
2011-02-13 03:18:06 +00:00
|
|
|
PORTVERSION= 1.1.4
|
2005-11-25 20:16:12 +00:00
|
|
|
CATEGORIES= www python
|
2008-09-07 19:49:04 +00:00
|
|
|
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION}/ \
|
2009-10-16 16:47:20 +00:00
|
|
|
CHEESESHOP
|
2005-11-25 20:16:12 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2009-07-30 11:37:38 +00:00
|
|
|
DISTNAME= Django-${PORTVERSION}
|
2007-02-15 14:04:16 +00:00
|
|
|
DIST_SUBDIR= python
|
2005-11-25 20:16:12 +00:00
|
|
|
|
2007-04-18 05:51:30 +00:00
|
|
|
MAINTAINER= lwhsu@FreeBSD.org
|
2005-11-25 20:16:12 +00:00
|
|
|
COMMENT= High-level Python Web framework
|
|
|
|
|
2010-05-27 01:33:33 +00:00
|
|
|
LATEST_LINK= ${PYTHON_PKGNAMEPREFIX}django11
|
|
|
|
|
2006-08-01 23:49:52 +00:00
|
|
|
USE_GETTEXT= yes
|
2007-03-31 06:50:11 +00:00
|
|
|
USE_PYTHON= yes
|
2005-11-25 20:16:12 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 09:42:28 +00:00
|
|
|
PYDISTUTILS_PKGNAME= Django
|
2007-02-15 14:04:16 +00:00
|
|
|
|
2007-04-05 07:01:51 +00:00
|
|
|
CONFLICTS= py2[0-9]-django-devel-[0-9]*
|
|
|
|
|
2005-11-25 20:16:12 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-django
|
2007-02-15 14:04:16 +00:00
|
|
|
|
2005-11-25 20:16:12 +00:00
|
|
|
OPTIONS= MOD_PYTHON3 "Install Apache2 with mod_python3" off \
|
|
|
|
POSTGRESQL "PostgreSQL support" off \
|
|
|
|
MYSQL "MySQL support" off \
|
2007-02-14 08:03:05 +00:00
|
|
|
SQLITE "SQLite support" off \
|
2008-09-07 19:49:04 +00:00
|
|
|
FASTCGI "FastCGI support" off \
|
|
|
|
DOCS "Install HTML documentation (requires Sphinx)" off
|
|
|
|
|
|
|
|
MAN1= daily_cleanup.1 django-admin.1 gather_profile_stats.1
|
2005-11-25 20:16:12 +00:00
|
|
|
|
|
|
|
# bypass infrastructure bug
|
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_MOD_PYTHON3)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/mod_python/_psp.so:${PORTSDIR}/www/mod_python3
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POSTGRESQL)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
2010-10-09 08:58:43 +00:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
|
2005-11-25 20:16:12 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SQLITE)
|
2008-09-07 19:49:04 +00:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
|
|
|
|
.endif
|
2005-11-25 20:16:12 +00:00
|
|
|
|
2007-02-14 08:03:05 +00:00
|
|
|
.if defined(WITH_FASTCGI)
|
2008-04-17 11:16:17 +00:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup
|
2007-02-14 08:03:05 +00:00
|
|
|
.endif
|
|
|
|
|
2008-09-07 19:49:04 +00:00
|
|
|
.if defined(WITH_DOCS)
|
|
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if defined(WITH_DOCS)
|
2010-05-26 08:11:15 +00:00
|
|
|
. if defined(NOPORTDOCS)
|
|
|
|
IGNORE= you cannot build documentation while setting NOPORTDOCS
|
|
|
|
. endif
|
2008-09-07 19:49:04 +00:00
|
|
|
cd ${WRKSRC}/docs && ${MAKE} html
|
|
|
|
.endif
|
|
|
|
|
2005-11-25 20:16:12 +00:00
|
|
|
post-install:
|
2008-09-07 19:49:04 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/man/* ${MAN1PREFIX}/man/man1
|
2005-11-25 20:16:12 +00:00
|
|
|
@${ECHO_MSG} ""
|
2008-09-07 19:49:04 +00:00
|
|
|
@${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation"
|
2005-11-25 20:16:12 +00:00
|
|
|
@${ECHO_MSG} ""
|
2008-09-07 19:49:04 +00:00
|
|
|
.if defined(WITH_DOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
|
2005-11-25 20:16:12 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|