Date: Tue, 1 Sep 2015 07:34:24 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r395748 - in head/www: . py-cactus py-cactus/files Message-ID: <201509010734.t817YO1Y064146@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Tue Sep 1 07:34:24 2015 New Revision: 395748 URL: https://svnweb.freebsd.org/changeset/ports/395748 Log: [NEW] www/py-cactus: Static site generator for designers Cactus is a simple but powerful static website generator using Python and the Django template system. Cactus also makes it easy to develop locally and deploy your site to S3 directly. It works great for company, portfolio, personal, support websites and blogs. To get a quick overview watch this short video tutorial: https://vimeo.com/46999791 WWW: http://github.com/koenbok/Cactus Added: head/www/py-cactus/ head/www/py-cactus/Makefile (contents, props changed) head/www/py-cactus/distinfo (contents, props changed) head/www/py-cactus/files/ head/www/py-cactus/files/patch-cactus_site.py (contents, props changed) head/www/py-cactus/files/patch-setup.py (contents, props changed) head/www/py-cactus/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Tue Sep 1 07:19:33 2015 (r395747) +++ head/www/Makefile Tue Sep 1 07:34:24 2015 (r395748) @@ -1500,6 +1500,7 @@ SUBDIR += py-blogofile SUBDIR += py-bottle SUBDIR += py-bottle-cork + SUBDIR += py-cactus SUBDIR += py-cherrypy SUBDIR += py-cherrypy-old SUBDIR += py-clientform Added: head/www/py-cactus/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-cactus/Makefile Tue Sep 1 07:34:24 2015 (r395748) @@ -0,0 +1,39 @@ +# Created by: Kubilay Kocak <koobs@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= cactus +PORTVERSION= 3.0.2 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= Cactus-${PORTVERSION} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= Static site generator for designers + +LICENSE= BSD3CLAUSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django16>0:${PORTSDIR}/www/py-django16 \ + ${PYTHON_PKGNAMEPREFIX}markdown2>0:${PORTSDIR}/textproc/py-markdown2 \ + ${PYTHON_PKGNAMEPREFIX}argparse>0:${PORTSDIR}/devel/py-argparse \ + ${PYTHON_PKGNAMEPREFIX}boto>=2.4.1:${PORTSDIR}/devel/py-boto \ + ${PYTHON_PKGNAMEPREFIX}tornado>=3.2:${PORTSDIR}/www/py-tornado \ + ${PYTHON_PKGNAMEPREFIX}django-markwhat>0:${PORTSDIR}/www/py-django-markwhat +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \ + ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock \ + ${PYTHON_PKGNAMEPREFIX}unittest2>0:${PORTSDIR}/devel/py-unittest2 + +USES= python:-2.7 +USE_PYTHON= autoplist concurrent distutils + +OPTIONS_DEFINE= TESTS + +TESTS_DESC= Install test suite requirements + +TESTS_BUILD_DEPENDS= ${RUN_DEPENDS} \ + ${TEST_DEPENDS} + +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include <bsd.port.mk> Added: head/www/py-cactus/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-cactus/distinfo Tue Sep 1 07:34:24 2015 (r395748) @@ -0,0 +1,2 @@ +SHA256 (Cactus-3.0.2.tar.gz) = d65bb84d7a60bc7a17a0f240920b6358e39231001f46562cbc956d158e5dfe3f +SIZE (Cactus-3.0.2.tar.gz) = 266607 Added: head/www/py-cactus/files/patch-cactus_site.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-cactus/files/patch-cactus_site.py Tue Sep 1 07:34:24 2015 (r395748) @@ -0,0 +1,28 @@ +--- cactus/site.py.orig 2015-03-22 19:28:26 UTC ++++ cactus/site.py +@@ -7,8 +7,11 @@ import traceback + import socket + + import django.conf +-from django.template.loader import add_to_builtins +- ++# BACKPORT https://github.com/koenbok/Cactus/pull/106 ++try: ++ from django.template.loader import add_to_builtins ++except ImportError: # Django < 1.8 ++ from django.template import add_to_builtins + from cactus import ui as ui_module + from cactus.config.router import ConfigRouter + from cactus.deployment import get_deployment_engine_class +@@ -138,9 +141,10 @@ class Site(SiteCompatibilityLayer): + to look for included templates. + """ + ++# BACKPORT https://github.com/jezdez/django-hosts/issues/31 + settings = { + "TEMPLATE_DIRS": [self.template_path, self.page_path], +- "INSTALLED_APPS": ['django.contrib.markup'], ++ "INSTALLED_APPS": ['django_markwhat'], + } + + if self.locale is not None: Added: head/www/py-cactus/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-cactus/files/patch-setup.py Tue Sep 1 07:34:24 2015 (r395748) @@ -0,0 +1,22 @@ +--- setup.py.orig 2015-04-05 13:19:03 UTC ++++ setup.py +@@ -118,7 +118,7 @@ setup( + ], + }, + install_requires=[ +- 'Django==1.5.5', ++ 'Django>=1.5.5,<1.7', + 'markdown2', + 'argparse', + 'keyring', +@@ -132,8 +132,8 @@ setup( + 'Mac Native FSEvents': ['macfsevents'], + }, + zip_safe=False, +- setup_requires=['nose'], +- tests_require=['nose', 'mock', 'tox', 'unittest2'], ++ tests_require=['nose', 'mock', 'unittest2'], ++ test_suite="nose.collector", + classifiers=[ + "Development Status :: 4 - Beta", + "Environment :: Console", Added: head/www/py-cactus/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-cactus/pkg-descr Tue Sep 1 07:34:24 2015 (r395748) @@ -0,0 +1,10 @@ +Cactus is a simple but powerful static website generator using Python +and the Django template system. Cactus also makes it easy to develop +locally and deploy your site to S3 directly. It works great for +company, portfolio, personal, support websites and blogs. + +To get a quick overview watch this short video tutorial: + + https://vimeo.com/46999791 + +WWW: http://github.com/koenbok/Cactus
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509010734.t817YO1Y064146>