[99027] trunk/dports/multimedia

pixilla at macports.org pixilla at macports.org
Wed Oct 24 07:05:42 PDT 2012


Revision: 99027
          http://trac.macports.org//changeset/99027
Author:   pixilla at macports.org
Date:     2012-10-24 07:05:42 -0700 (Wed, 24 Oct 2012)
Log Message:
-----------
multimedia/mythweb.25:
- New port mythweb.25 version 0.25.3.

Added Paths:
-----------
    trunk/dports/multimedia/mythweb.25/
    trunk/dports/multimedia/mythweb.25/Portfile
    trunk/dports/multimedia/mythweb.25/files/
    trunk/dports/multimedia/mythweb.25/files/class_autoload.patch
    trunk/dports/multimedia/mythweb.25/files/patch_mythweb.conf.diff

Added: trunk/dports/multimedia/mythweb.25/Portfile
===================================================================
--- trunk/dports/multimedia/mythweb.25/Portfile	                        (rev 0)
+++ trunk/dports/multimedia/mythweb.25/Portfile	2012-10-24 14:05:42 UTC (rev 99027)
@@ -0,0 +1,90 @@
+# -*- 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           github 1.0
+
+github.setup        MythTV mythweb 0.25.3 v
+name                mythweb.25
+categories          multimedia www
+platforms           darwin
+license             GPL-2 LGPL-2.1
+maintainers         cogeco.ca:ctreleaven openmaintainer
+supported_archs     noarch
+
+description         Control your Myth system via the Web.
+long_description    MythWeb provides a frontend to MythTV using a web browser. \
+                    Review program listings, schedule recordings, browse previous recordings, \
+                    check on the status of your system and much more.  Note that this is an \
+                    INSECURE installation intended for local network access only.  Take steps to \
+                    secure if access from the internet is to be allowed.  This port does not \
+                    install MythTV since it is possible to have the web server and Myth backend \
+                    on different machines.
+
+homepage            http://www.mythtv.org/
+checksums           rmd160  84d1bf375ff73554f5e112e9f0a8fb42cdec30aa \
+                    sha256  e07dba17920ece1d796a0d308d955214e3c0a5193974fd8e7f8e769f26a80f76
+
+set perlver         perl5.12
+set perlbin         ${prefix}/bin/${perlver}
+set perlmodver      p5.12
+
+depends_run         port:php5-mysql
+
+depends_lib         port:${perlmodver}-http-request-ascgi \
+                    port:${perlmodver}-dbd-mysql
+
+patchfiles          patch_mythweb.conf.diff
+
+# Re class_autoload, see http://code.mythtv.org/trac/ticket/10600
+patchfiles-append   class_autoload.patch
+
+use_configure       no
+build               {}
+
+pre-patch {
+    copy ${worksrcpath}/mythweb.conf.apache ${worksrcpath}/mythweb.conf
+}
+
+post-patch {
+    reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/mythweb.conf
+    reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythweb.php
+
+    reinplace -locale C "s|#!/usr/bin/perl|#!${perlbin}|" \
+         ${worksrcpath}/mythweb.pl \
+         ${worksrcpath}/modules/_shared/lang/build_translation.pl \
+         ${worksrcpath}/modules/coverart/handler.pl \
+         ${worksrcpath}/modules/stream/handler.pl \
+         ${worksrcpath}/modules/stream/stream_asx.pl \
+         ${worksrcpath}/modules/stream/stream_flv.pl \
+         ${worksrcpath}/modules/stream/stream_flvp.pl \
+         ${worksrcpath}/modules/stream/stream_mp4.pl \
+         ${worksrcpath}/modules/stream/stream_raw.pl \
+         ${worksrcpath}/modules/stream/tv.pl
+}
+
+destroot {
+    xinstall -d ${destroot}${prefix}/apache2/htdocs
+    copy ${worksrcpath} ${destroot}${prefix}/apache2/htdocs
+    file rename ${destroot}${prefix}/apache2/htdocs/mythweb-${version} \
+        ${destroot}${prefix}/apache2/htdocs/MythWeb
+    system "chown -R _www:_www ${destroot}${prefix}/apache2/htdocs/MythWeb/data"
+
+    destroot.violate_mtree yes
+
+    destroot.keepdirs \
+        ${destroot}${prefix}/apache2/htdocs/MythWeb/data/cache \
+        ${destroot}${prefix}/apache2/htdocs/MythWeb/data/tv_icons
+}
+
+notes "\
+############################################################################
+#
+# If this is the first time installing MythWeb, please see
+# http://www.mythtv.org/wiki/MythWeb_via_MacPorts for information
+# essential to finishing the installation of MythWeb!
+#
+############################################################################"
+
+livecheck.version           ${version}
+livecheck.regex             "tarball/v(0.25\[^\"\]+)"


Property changes on: trunk/dports/multimedia/mythweb.25/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/multimedia/mythweb.25/files/class_autoload.patch
===================================================================
--- trunk/dports/multimedia/mythweb.25/files/class_autoload.patch	                        (rev 0)
+++ trunk/dports/multimedia/mythweb.25/files/class_autoload.patch	2012-10-24 14:05:42 UTC (rev 99027)
@@ -0,0 +1,48 @@
+commit f1f068e72d32c6df8c5d8f045b31611d632763f7
+Author: karog
+Date:   Fri Jun 1 17:31:26 2012 -0400
+
+    modified:   class_autoload.php
+    Moved search of include_path down since on OS X it prematurely found
+    case indpendent matching files.
+
+diff --git MythWeb/includes/class_autoload.php MythWeb/includes/class_autoload.php
+index 8ae760c..36b70d9 100644
+--- includes/class_autoload.php
++++ includes/class_autoload.php
+@@ -14,24 +14,24 @@
+     function autoload($className) {
+         global $Path;
+         $className = str_replace('_', '/', $className);
+-        if (file_exists("classes/$className.php")) {
++        if (file_exists("classes/$className.php"))
+             include_once "classes/$className.php";
+-            return true;
+-        }
+-        foreach (explode(PATH_SEPARATOR, ini_get('include_path')) as $path) {
+-            if (!file_exists("$path/$className.php"))
+-                continue;
+-            include_once "$path/$className.php";
+-            return true;
+-        }
+-        if (file_exists(modules_path.'/'.module."/classes/$className.php"))
++        elseif (file_exists(modules_path.'/'.module."/classes/$className.php"))
+             include_once modules_path.'/'.module."/classes/$className.php";
+         elseif (file_exists(modules_path.'/'.$Path[1]."/classes/$className.php"))
+             include_once modules_path.'/'.$Path[1]."/classes/$className.php";
+         elseif (file_exists(modules_path.'/'.$Path[0]."/classes/$className.php"))
+             include_once modules_path.'/'.$Path[0]."/classes/$className.php";
+-        else
++        else {
++            foreach (explode(PATH_SEPARATOR, ini_get('include_path')) as $path) {
++                if (!file_exists("$path/$className.php"))
++                    continue;
++                include_once "$path/$className.php";
++                return true;
++            }
+             return false;
++        }
++        return true;
+     }
+ 
+     spl_autoload_register('autoload');

Added: trunk/dports/multimedia/mythweb.25/files/patch_mythweb.conf.diff
===================================================================
--- trunk/dports/multimedia/mythweb.25/files/patch_mythweb.conf.diff	                        (rev 0)
+++ trunk/dports/multimedia/mythweb.25/files/patch_mythweb.conf.diff	2012-10-24 14:05:42 UTC (rev 99027)
@@ -0,0 +1,71 @@
+--- mythweb.conf	2012-10-16 09:35:15.000000000 -0400
++++ mythweb.conf	2012-10-16 16:59:01.000000000 -0400
+@@ -3,6 +3,8 @@
+ # requirements and troubleshooting, along with the comments in this file.
+ #
+ 
++Alias /MythWeb @PREFIX@/apache2/htdocs/MythWeb
++
+ ############################################################################
+ # If you intend to use authentication for MythWeb (see below), you will
+ # probably also want to uncomment the following rules, which disable
+@@ -26,10 +28,10 @@
+ #    /var/www/html/mythweb
+ #    /srv/www/htdocs/mythweb
+ #
+-    <Directory "/var/www/html/data">
++    <Directory @PREFIX@/apache2/htdocs/MythWeb/data>
+         Options -All +FollowSymLinks +IncludesNoExec
+     </Directory>
+-    <Directory "/var/www/html" >
++    <Directory @PREFIX@/apache2/htdocs/MythWeb>
+ 
+     ############################################################################
+     # I *strongly* urge you to turn on authentication for MythWeb.  It is disabled
+@@ -78,7 +80,7 @@
+         # (eg. for security reasons), set this variable to the directory that
+         # contains the directories like languages and templates.  eg.
+         #
+-        #   setenv include_path      "/usr/share/mythweb"
++           setenv include_path      "@PREFIX@/apache2/htdocs/MythWeb"
+ 
+         # If you want MythWeb to email php/database errors (and a backtrace) to you,
+         # uncomment and set the email address below.
+@@ -146,7 +148,7 @@
+     # If MythWeb is installed outside of the document root (eg. using Alias) then
+     # you will need to set this directive to the base URL that MythWeb is visible
+     # from externally.  If you do not, the web server will return 'not found'.
+-    #    RewriteBase    /mythweb
++        RewriteBase    /MythWeb
+ 
+     # Skip out early if we've already been through rewrites,
+     # or if this is a /css/, /js/ or /cache/ directory request.
+@@ -194,20 +196,20 @@
+     # to enable mod_deflate by default, but I strongly recommend that you
+     # enable this section.
+     #
+-    #    BrowserMatch ^Mozilla/4 gzip-only-text/html
+-    #    BrowserMatch ^Mozilla/4\.0[678] no-gzip
+-    #    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+-    #
+-    #    AddOutputFilterByType DEFLATE text/html
+-    #    AddOutputFilterByType DEFLATE text/css
+-    #    AddOutputFilterByType DEFLATE application/x-javascript
++        BrowserMatch ^Mozilla/4 gzip-only-text/html
++        BrowserMatch ^Mozilla/4\.0[678] no-gzip
++        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
++
++        AddOutputFilterByType DEFLATE text/html
++        AddOutputFilterByType DEFLATE text/css
++        AddOutputFilterByType DEFLATE application/x-javascript
+ 
+     # This is helpful for mod_deflate -- it prevents proxies from changing
+     # the user agent to/from this server, which can prevent compression from
+     # being enabled.  It is disabled here because many distros seem not to
+     # enable mod_headers by default, but I recommend that you enable it.
+     #
+-    #    Header append Vary User-Agent env=!dont-vary
++    Header append Vary User-Agent env=!dont-vary
+ 
+     # Set up the perl handler so we can stream properly.  Do not use mod_perl
+     # because it has a tendency to hold onto child processes, which causes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121024/5ae179dc/attachment-0001.html>


More information about the macports-changes mailing list