2006-07-20 12:54:30 +02:00
|
|
|
# New ports collection makefile for: django-devel
|
|
|
|
# Date created: Jul 04 2006
|
|
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2007-05-25 16:22:49 +02:00
|
|
|
PORTNAME= django
|
2009-05-22 20:30:25 +02:00
|
|
|
PORTVERSION= ${REVISION}
|
|
|
|
PORTEPOCH= 1
|
2007-04-05 08:59:53 +02:00
|
|
|
CATEGORIES= www python
|
2011-12-24 15:22:17 +01:00
|
|
|
MASTER_SITES= http://people.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
|
2007-04-05 08:59:53 +02:00
|
|
|
MASTER_SITE_SUBDIR= lwhsu/django
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2007-05-25 16:22:49 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
2009-05-22 20:30:25 +02:00
|
|
|
DISTNAME= Django-r${REVISION}
|
2007-04-05 08:59:53 +02:00
|
|
|
DIST_SUBDIR= python
|
2006-07-20 12:54:30 +02:00
|
|
|
|
2007-04-18 07:51:30 +02:00
|
|
|
MAINTAINER= lwhsu@FreeBSD.org
|
2006-07-20 12:54:30 +02:00
|
|
|
COMMENT= High-level Python Web framework
|
|
|
|
|
2012-04-18 20:06:06 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
|
|
|
REVISION= 17914
|
2007-10-29 15:47:20 +01:00
|
|
|
|
2011-03-27 17:04:41 +02:00
|
|
|
USE_XZ= yes
|
2007-04-05 08:59:53 +02:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= Django
|
2012-04-18 20:06:06 +02:00
|
|
|
PYDISTUTILS_PKGVERSION= 1.5
|
2007-07-30 11:42:28 +02:00
|
|
|
|
2006-07-20 12:54:30 +02:00
|
|
|
CONFLICTS= py2[0-9]-django-[0-9]*
|
|
|
|
|
2007-04-05 08:59:53 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-django
|
|
|
|
|
2011-03-27 17:04:41 +02:00
|
|
|
OPTIONS= POSTGRESQL "PostgreSQL support" off \
|
2007-04-05 08:59:53 +02:00
|
|
|
MYSQL "MySQL support" off \
|
|
|
|
SQLITE "SQLite support" off \
|
2008-10-14 22:22:50 +02:00
|
|
|
FASTCGI "FastCGI support" off \
|
2009-05-22 20:34:05 +02:00
|
|
|
DOCS "Install HTML documentation (requires Sphinx)" off
|
2007-04-05 08:59:53 +02:00
|
|
|
|
2008-10-14 22:22:50 +02:00
|
|
|
MAN1= daily_cleanup.1 django-admin.1 gather_profile_stats.1
|
2007-10-29 15:47:20 +01:00
|
|
|
|
2007-04-05 08:59:53 +02:00
|
|
|
# bypass infrastructure bug
|
2009-05-22 20:30:25 +02:00
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}-devel/options
|
2007-04-05 08:59:53 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_POSTGRESQL)
|
2010-06-11 17:30:24 +02:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/_psycopg.so:${PORTSDIR}/databases/py-psycopg2
|
2007-04-05 08:59:53 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
2010-10-09 10:58:43 +02:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
|
2007-04-05 08:59:53 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SQLITE)
|
2008-10-14 22:22:50 +02:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
|
|
|
|
.endif
|
2007-04-05 08:59:53 +02:00
|
|
|
|
|
|
|
.if defined(WITH_FASTCGI)
|
2008-04-17 13:16:58 +02:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup
|
2007-04-05 08:59:53 +02:00
|
|
|
.endif
|
|
|
|
|
2008-10-14 22:22:50 +02:00
|
|
|
.if defined(WITH_DOCS)
|
2009-05-22 21:12:08 +02:00
|
|
|
. if defined(NOPORTDOCS)
|
|
|
|
IGNORE= you cannot build documentation while setting NOPORTDOCS
|
|
|
|
. endif
|
2008-10-14 22:22:50 +02:00
|
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if defined(WITH_DOCS)
|
|
|
|
cd ${WRKSRC}/docs && ${MAKE} html
|
|
|
|
.endif
|
|
|
|
|
2007-04-05 08:59:53 +02:00
|
|
|
post-install:
|
2007-10-29 15:47:20 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/man/* ${MAN1PREFIX}/man/man1
|
2007-04-05 08:59:53 +02:00
|
|
|
@${ECHO_MSG} ""
|
2008-10-14 22:22:50 +02:00
|
|
|
@${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation"
|
2007-04-05 08:59:53 +02:00
|
|
|
@${ECHO_MSG} ""
|
2008-10-14 22:22:50 +02:00
|
|
|
.if defined(WITH_DOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
|
2007-04-05 08:59:53 +02:00
|
|
|
.endif
|
2006-07-20 12:54:30 +02:00
|
|
|
|
2007-04-05 08:59:53 +02:00
|
|
|
.include <bsd.port.post.mk>
|