[107077] trunk/dports/python

aronnax at macports.org aronnax at macports.org
Mon Jun 17 13:45:28 PDT 2013


Revision: 107077
          https://trac.macports.org/changeset/107077
Author:   aronnax at macports.org
Date:     2013-06-17 13:45:28 -0700 (Mon, 17 Jun 2013)
Log Message:
-----------
py-django-htmlmin: new port, html minify for django

Added Paths:
-----------
    trunk/dports/python/django-htmlmin_select/
    trunk/dports/python/django-htmlmin_select/Portfile
    trunk/dports/python/py-django-htmlmin/
    trunk/dports/python/py-django-htmlmin/Portfile
    trunk/dports/python/py-django-htmlmin/files/
    trunk/dports/python/py-django-htmlmin/files/django-htmlmin27

Added: trunk/dports/python/django-htmlmin_select/Portfile
===================================================================
--- trunk/dports/python/django-htmlmin_select/Portfile	                        (rev 0)
+++ trunk/dports/python/django-htmlmin_select/Portfile	2013-06-17 20:45:28 UTC (rev 107077)
@@ -0,0 +1,34 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           select 1.0
+
+name                django-htmlmin_select
+version             0.1
+revision            0
+categories          python
+license             BSD
+
+maintainers         aronnax openmaintainer
+
+description         common files for selecting default django-htmlmin version
+long_description \
+   This port installs files that allow 'port select' to be used to \
+   create links to the preferred default version of django-htmlmin
+
+platforms           darwin
+supported_archs     noarch
+
+homepage            http://www.macports.org/
+
+distfiles
+
+use_configure       no
+build               {}
+destroot {
+    select::install django-htmlmin ${filespath}/base
+    select::install django-htmlmin ${filespath}/none
+}
+
+livecheck.type      none


Property changes on: trunk/dports/python/django-htmlmin_select/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py-django-htmlmin/Portfile
===================================================================
--- trunk/dports/python/py-django-htmlmin/Portfile	                        (rev 0)
+++ trunk/dports/python/py-django-htmlmin/Portfile	2013-06-17 20:45:28 UTC (rev 107077)
@@ -0,0 +1,56 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+PortGroup select 1.0
+
+set realname        django-htmlmin
+name                py-${realname}
+version             0.6.2
+python.versions     27
+license             BSD
+platforms           darwin
+supported_archs     noarch
+maintainers         aronnax openmaintainer
+description         html minify for django
+long_description \
+    django-html in an HTML minifier for Python with full support for HTML 5. \
+    It supports Django, Flask and any other Python web framework. It also \
+    provides a command line tool that can be used for static websites or \
+    deployment scripts.
+homepage            http://pypi.python.org/pypi/${realname}/
+master_sites        http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}/
+distname            ${realname}-${version}
+
+checksums           md5     baa995bb18268c80586c5590465cdfba \
+                    sha1    60ac69f31dce4e1625d20c4df259f8a916ca6d0d \
+                    rmd160  362f2af001167d20eea4d6d25b15efad38cbd149
+
+if {${subport} == ${name}} {
+    livecheck.type  regex
+    livecheck.regex [format "%s-%s" ${realname} {(\d+(?:\.\d+)*)}]
+} else {
+    depends_build-append \
+                    port:py${python.version}-setuptools
+
+    depends_lib-append \
+                    port:py${python.version}-django \
+                    port:py${python.version}-beautifulsoup4 \
+                    port:py${python.version}-html5lib
+
+    depends_run-append \
+                    port:${realname}_select
+
+    select.group    ${realname}
+    select.file     ${filespath}/${select.group}${python.version}
+
+    notes "
+To make the Python ${python.branch} version of bpython the one that is run\
+when you execute the commands without a version suffix, e.g. 'pyminify', run:
+
+port select --set ${select.group} [file tail ${select.file}]
+"
+
+    livecheck.type  none
+}


Property changes on: trunk/dports/python/py-django-htmlmin/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py-django-htmlmin/files/django-htmlmin27
===================================================================
--- trunk/dports/python/py-django-htmlmin/files/django-htmlmin27	                        (rev 0)
+++ trunk/dports/python/py-django-htmlmin/files/django-htmlmin27	2013-06-17 20:45:28 UTC (rev 107077)
@@ -0,0 +1 @@
+bin/pyminify-2.7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130617/98ac1f97/attachment.html>


More information about the macports-changes mailing list