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