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

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