www/py27-django-mezzanine: Django content management platform [NEW PORT]

Mezzanine is a content management platform built using the Django framework. It
resembles tools like Wordpress, with an intuitive interface for managing pages,
blog posts, form data, store products, or any other type of content you can
imagine.

WWW: https://github.com/stephenmcd/mezzanine

PR:		ports/168491
Approved by:	eadler, rm (mentors, implicit)
This commit is contained in:
koobs
2013-05-09 21:38:13 +00:00
parent 82a8c15535
commit 3765f8a4ac
7 changed files with 2465 additions and 0 deletions
+1
View File
@@ -1488,6 +1488,7 @@
SUBDIR += py-django-json-rpc
SUBDIR += py-django-keyedcache
SUBDIR += py-django-livesettings
SUBDIR += py-django-mezzanine
SUBDIR += py-django-mezzanine-filebrowser
SUBDIR += py-django-mezzanine-grappelli
SUBDIR += py-django-mptt
+35
View File
@@ -0,0 +1,35 @@
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= django-mezzanine
PORTVERSION= 1.4.6
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Mezzanine-${PORTVERSION}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Content management platform built using the Django framework
LICENSE= BSD
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django>=1.4:${PORTSDIR}/www/py-django \
${PYTHON_PKGNAMEPREFIX}south>=0.7.3:${PORTSDIR}/databases/py-south \
${PYTHON_PKGNAMEPREFIX}pillow>=1.3.1:${PORTSDIR}/graphics/py-pillow \
${PYTHON_PKGNAMEPREFIX}bleach>=0:${PORTSDIR}/www/py-bleach \
${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
${PYTHON_PKGNAMEPREFIX}django-mezzanine-filebrowser>=0.2.27:${PORTSDIR}/www/py-django-mezzanine-filebrowser \
${PYTHON_PKGNAMEPREFIX}django-mezzanine-grappelli>=0.2.21:${PORTSDIR}/www/py-django-mezzanine-grappelli
USES= gettext
USE_PYTHON= -2.7
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= Mezzanine
pre-patch:
@${TOUCH} ${WRKSRC}/runtests.py.orig
regression-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
.include <bsd.port.mk>
+2
View File
@@ -0,0 +1,2 @@
SHA256 (Mezzanine-1.4.6.tar.gz) = 0e124e93e074d19f9cb690021bbdb5e1bcefcc120082c7f6a27a021e270c8ce5
SIZE (Mezzanine-1.4.6.tar.gz) = 5323231
@@ -0,0 +1,21 @@
--- ./runtests.py.orig 2013-05-08 16:44:02.511996517 +1000
+++ ./runtests.py 2013-05-08 16:44:02.511996517 +1000
@@ -0,0 +1,18 @@
+
+def runtests():
+
+ import os, sys, shutil, atexit
+ from mezzanine.utils.importing import path_for_import
+
+ os.environ["DJANGO_SETTINGS_MODULE"] = "project_template.settings"
+ mezz_path = path_for_import("mezzanine")
+ sys.path.insert(0, mezz_path)
+
+ project_path = os.path.join(mezz_path, "project_template")
+ local_settings_path = os.path.join(project_path, "local_settings.py")
+ if not os.path.exists(local_settings_path):
+ shutil.copy(local_settings_path + ".template", local_settings_path)
+ atexit.register(lambda: os.remove(local_settings_path))
+
+ from django.core.management.commands import test
+ sys.exit(test.Command().execute(verbosity=1))
@@ -0,0 +1,30 @@
--- ./setup.py.orig 2013-04-28 08:33:45.000000000 +1000
+++ ./setup.py 2013-05-08 16:44:15.222197315 +1000
@@ -6,6 +6,8 @@
exclude = ["mezzanine/project_template/dev.db",
"mezzanine/project_template/local_settings.py"]
+if sys.argv == ["setup.py", "test"]:
+ exclude = []
exclude = dict([(e, None) for e in exclude])
for e in exclude:
if e.endswith(".py"):
@@ -63,6 +65,8 @@
[console_scripts]
mezzanine-project=mezzanine.bin.mezzanine_project:create_project
""",
+ test_suite="runtests.runtests",
+ tests_require=["pyflakes==0.6.1", "pep8==1.4.1"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
@@ -77,7 +81,8 @@
"Topic :: Software Development :: Libraries :: "
"Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
- ])
+ ],
+ )
finally:
for e in exclude:
+6
View File
@@ -0,0 +1,6 @@
Mezzanine is a content management platform built using the Django framework. It
resembles tools like Wordpress, with an intuitive interface for managing pages,
blog posts, form data, store products, or any other type of content you can
imagine.
WWW: https://github.com/stephenmcd/mezzanine
File diff suppressed because it is too large Load Diff