source: trunk/dports/multimedia/mythweb.25/Portfile

Last change on this file was 154076, checked in by mojca@…, 11 months ago

mythtv, mythweb: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# -*- 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
2# $Id: Portfile 154076 2016-10-20 01:27:50Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        MythTV mythweb 0.25.3 v
8revision            4
9name                mythweb.25
10categories          multimedia www
11platforms           darwin
12license             GPL-2 LGPL-2.1
13maintainers         ctreleaven openmaintainer
14supported_archs     noarch
15conflicts           mythweb.26 mythweb.27
16
17description         control your Myth system via a web browser
18long_description    MythWeb provides a frontend to MythTV using a web browser. \
19                    Review program listings, schedule recordings, browse previous recordings, \
20                    check on the status of your system and much more.  Note that this is an \
21                    INSECURE installation intended for local network access only.  Take steps to \
22                    secure if access from the internet is to be allowed.
23
24homepage            http://www.mythtv.org/
25checksums           rmd160  84d1bf375ff73554f5e112e9f0a8fb42cdec30aa \
26                    sha256  e07dba17920ece1d796a0d308d955214e3c0a5193974fd8e7f8e769f26a80f76
27
28set perlver         perl5.24
29set perlbin         ${prefix}/bin/${perlver}
30set perlmodver      p5.24
31
32depends_run         port:php54-mysql \
33                    port:php54-apache2handler
34
35depends_lib         port:mythtv-core.25 \
36                    port:${perlmodver}-http-request-ascgi \
37                    port:${perlmodver}-dbd-mysql
38
39patchfiles          patch_mythweb.conf.diff
40
41# Re class_autoload, see http://code.mythtv.org/trac/ticket/10600
42patchfiles-append   class_autoload.patch
43
44use_configure       no
45build               {}
46
47pre-patch {
48    copy ${worksrcpath}/mythweb.conf.apache ${worksrcpath}/mythweb.conf
49}
50
51post-patch {
52    reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/mythweb.conf
53    reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythweb.php
54
55    reinplace -locale C "s|#!/usr/bin/perl|#!${perlbin}|" \
56         ${worksrcpath}/mythweb.pl \
57         ${worksrcpath}/modules/_shared/lang/build_translation.pl \
58         ${worksrcpath}/modules/coverart/handler.pl \
59         ${worksrcpath}/modules/stream/handler.pl \
60         ${worksrcpath}/modules/stream/stream_asx.pl \
61         ${worksrcpath}/modules/stream/stream_flv.pl \
62         ${worksrcpath}/modules/stream/stream_flvp.pl \
63         ${worksrcpath}/modules/stream/stream_mp4.pl \
64         ${worksrcpath}/modules/stream/stream_raw.pl \
65         ${worksrcpath}/modules/stream/tv.pl
66}
67
68destroot {
69    xinstall -d ${destroot}${prefix}/apache2/htdocs
70    copy ${worksrcpath} ${destroot}${prefix}/apache2/htdocs
71    file rename ${destroot}${prefix}/apache2/htdocs/mythweb-${version} \
72        ${destroot}${prefix}/apache2/htdocs/MythWeb
73    system "chown -R _www:_www ${destroot}${prefix}/apache2/htdocs/MythWeb/data"
74
75    destroot.violate_mtree yes
76
77    destroot.keepdirs \
78        ${destroot}${prefix}/apache2/htdocs/MythWeb/data/cache \
79        ${destroot}${prefix}/apache2/htdocs/MythWeb/data/tv_icons
80}
81
82notes "\
83############################################################################
84#
85# If this is the first time installing MythWeb, please see
86# http://www.mythtv.org/wiki/MythWeb_via_MacPorts for information
87# essential to finishing the installation of MythWeb!
88#
89# Upgrading after September 23, 2014?  The change to PHP 5.4 requires certain
90# configuration changes.  Check your configuration with the above wiki page.
91#
92############################################################################"
93
94livecheck.version           ${version}
95livecheck.regex             "tarball/v(0.25\[^\"\]+)"
Note: See TracBrowser for help on using the repository browser.