mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
www/py-django-mezzanine: Update to 1.4.7
- Update to 1.4.7 - Update pkg-plist - Remove patches (now upstream) - Remove pre-patch: target - Regression-test target needs build: first - Tweak RUN_DEPENDS version for bleach Changes: http://mezzanine.jupo.org/docs/colophon.html#version-1-4-7-may-18-2013
This commit is contained in:
parent
66e5b9368a
commit
d83f0e7f06
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319635
5 changed files with 8 additions and 59 deletions
|
@ -2,7 +2,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= django-mezzanine
|
||||
PORTVERSION= 1.4.6
|
||||
PORTVERSION= 1.4.7
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -16,7 +16,7 @@ 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}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
|
||||
|
@ -26,10 +26,7 @@ USE_PYTHON= -2.7
|
|||
USE_PYDISTUTILS= easy_install
|
||||
PYDISTUTILS_PKGNAME= Mezzanine
|
||||
|
||||
pre-patch:
|
||||
@${TOUCH} ${WRKSRC}/runtests.py.orig
|
||||
|
||||
regression-test:
|
||||
regression-test: build
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (Mezzanine-1.4.6.tar.gz) = 0e124e93e074d19f9cb690021bbdb5e1bcefcc120082c7f6a27a021e270c8ce5
|
||||
SIZE (Mezzanine-1.4.6.tar.gz) = 5323231
|
||||
SHA256 (Mezzanine-1.4.7.tar.gz) = dc4b9b3d7fef933fb978e69f0508d958675e0909ab3a1507e8f5433cb73d20d4
|
||||
SIZE (Mezzanine-1.4.7.tar.gz) = 5354435
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
--- ./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))
|
|
@ -1,30 +0,0 @@
|
|||
--- ./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:
|
|
@ -561,6 +561,9 @@ bin/mezzanine-project
|
|||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/0004_set_site_permissions.py
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/0004_set_site_permissions.pyc
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/0004_set_site_permissions.pyo
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/0005_auto__chg_field_sitepermission_user__del_unique_sitepermission_user.pyc
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/0005_auto__chg_field_sitepermission_user__del_unique_sitepermission_user.py
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/0005_auto__chg_field_sitepermission_user__del_unique_sitepermission_user.pyo
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/__init__.pyc
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mezzanine/core/migrations/__init__.pyo
|
||||
|
|
Loading…
Add table
Reference in a new issue