Changeset 98186
- Timestamp:
- Sep 27, 2012, 10:02:07 PM (12 years ago)
- Location:
- trunk/dports/multimedia/mythtv-core.25
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/multimedia/mythtv-core.25/Portfile
r98178 r98186 5 5 PortGroup github 1.0 6 6 PortGroup qt4 1.0 7 8 set shorthash 46cab935 9 # set fullhash 46cab93562429cd19029402a2387f63a72aeb898 7 PortGroup conflicts_build 1.0 8 9 set shorthash 099533da 10 # set fullhash 099533dacc0faef47aadfbe7b45ab93ff57f5125 10 11 set majorversion .25 11 12 set minorversion .2 12 github.setup MythTV mythtv ${shorthash} v13 github.setup MythTV mythtv ${shorthash} 13 14 name mythtv-core${majorversion} 14 version 0${majorversion}${minorversion}-Fixes-20120731 15 revision 1 15 version 0${majorversion}${minorversion}-Fixes-20120918 16 16 categories multimedia 17 17 platforms darwin … … 30 30 31 31 homepage http://www.mythtv.org/ 32 checksums rmd160 b 8c21681d02085f6b541e307a9e4c2a7ee0fe6e9\33 sha256 a829b7abc0c3860700427b3a73be44ac0c8a0b3d10d56992c7214f59a7b0b61d32 checksums rmd160 b68e1bbe4364dc2d4fbba49c412aee644455053f \ 33 sha256 79cb7a1c2242c8b0c1a9e349117b85b58a7205e0a3ef1e49b2fa1a5ef72b21c6 34 34 35 35 set nick mythtv … … 58 58 port:x264 \ 59 59 port:qt4-mac-${mysqlver}-plugin \ 60 port:libpng \ 60 61 port:${pymodver}-mysql \ 61 62 port:${pymodver}-lxml \ … … 65 66 port:${perlmodver}-lwp-useragent-determined \ 66 67 port:${perlmodver}-io-socket-inet6 \ 68 port:${perlmodver}-datemanip \ 67 69 port:${perlmodver}-net-upnp 68 70 69 depends_build port:yasm 71 depends_build port:yasm port:pkgconfig 72 73 conflicts_build libdvdnav 74 75 depends_run port:logrotate 70 76 71 77 patchfiles patch-bindings-python-mythtv-utility.diff \ … … 73 79 patch-util-osx-objC.diff 74 80 75 # http://trac.macports.org/ticket/35934 76 compiler.blacklist macports-clang-3.1 llvm-gcc-4.2 81 # Run time failures with XCode 4.4.x and 4.5.0 82 # See https://trac.macports.org/ticket/35934 83 compiler.blacklist llvm-gcc-4.2 macports-llvm-gcc-4.2 macports-clang-3.1 \ 84 dragonegg-3.0 dragonegg-3.1 77 85 compiler.fallback-append macports-clang-3.0 78 86 if {[vercmp $xcodeversion 4.4] >= 0} { 79 compiler.blacklist-append clang 80 } 81 82 # TODO: This should be done by base 83 # https://trac.macports.org/ticket/32542 84 if {${configure.compiler} == "macports-clang-3.0"} { 85 depends_build-append port:macports-clang-3.0 87 depends_build-append port:clang-3.0 88 configure.compiler=macports-clang-3.0 86 89 depends_skip_archcheck-append macports-clang-3.0 87 90 } … … 93 96 } 94 97 copy ${filespath}/${plistfile} ${worksrcpath}/macports/${plistfile} 98 copy ${filespath}/logrotate.mythtv ${worksrcpath}/macports/logrotate.mythtv 95 99 } 96 100 … … 98 102 set sedPath ${worksrcpath}/mythtv/ 99 103 ui_info "Make Myth utils use MacPorts Perl" 104 reinplace -locale C "s|#!/usr/bin/env perl|#!${perlbin}|" \ 105 ${sedPath}programs/scripts/internetcontent/topdocumentaryfilm.pl \ 106 ${sedPath}programs/scripts/internetcontent/twit.tv.pl 107 100 108 reinplace -locale C "s|#!/usr/bin/perl|#!${perlbin}|" \ 101 109 ${sedPath}bindings/perl/Makefile.PL \ 102 110 ${sedPath}bindings/perl/MythTV.pm \ 103 ${sedPath}programs/scripts/internetcontent/topdocumentaryfilm.pl \104 ${sedPath}programs/scripts/internetcontent/twit.tv.pl \105 111 ${sedPath}contrib/maintenance/optimize_mythdb.pl \ 106 112 ${sedPath}contrib/user_jobs/mythlink.pl \ … … 130 136 reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|" ${worksrcpath}/macports/${plistfile} 131 137 reinplace -locale C "s|@MYTHTVPIDFILE@|${mythtvpidfile}|" ${worksrcpath}/macports/${plistfile} 138 reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|g" ${worksrcpath}/macports/logrotate.mythtv 132 139 reinplace -locale C "s|xxxyyyzzz|${mythtvpidfile}|" ${worksrcpath}/mythtv/configure 133 140 } … … 138 145 --cc=${configure.cc} \ 139 146 --cxx=${configure.cxx} \ 147 --qmake=${qt_qmake_cmd} \ 140 148 --extra-ldflags='-F/System/Library/Frameworks' \ 141 149 --python=${pythonbin} \ … … 145 153 --enable-libmp3lame --enable-libx264 146 154 155 if {${configure.ccache} != "yes"} { 156 configure.args-append --disable-ccache 157 } 158 159 if {${configure.distcc} != "yes"} { 160 configure.args-append --disable-distcc 161 } 162 147 163 build.dir ${worksrcpath}/mythtv 148 164 … … 161 177 162 178 post-destroot { 179 # make some directories myth will need 180 xinstall -d -m 666 ${destroot}${mythtvhomedir} 181 xinstall -d -m 666 ${destroot}${mythtvlogdir} 182 xinstall -d -m 666 ${destroot}${mythtvlogdir}/old 183 xinstall -d -m 666 ${destroot}${prefix}/etc/logrotate.d 184 xinstall -d -m 644 ${destroot}${mythtvrundir} 185 186 destroot.keepdirs \ 187 ${destroot}${mythtvhomedir} \ 188 ${destroot}${mythtvlogdir} \ 189 ${destroot}${mythtvlogdir}/old \ 190 ${destroot}${mythtvrundir} 191 192 # install logrotate.mythtv 193 xinstall -m 400 ${worksrcpath}/macports/logrotate.mythtv ${destroot}${prefix}/etc/logrotate.d/ 194 163 195 # install the launchd plist for the backend 164 196 ui_info "Installing startupitem/launchd plist..." … … 192 224 copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${destroot}${applications_dir}/MythTV/Myth_Frontend.app/Contents/Resources/applet.icns 193 225 copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${destroot}${applications_dir}/MythTV/Myth_Stop_Start.app/Contents/Resources/applet.icns 194 195 # make other directories myth will need196 xinstall -d -m 755 ${destroot}${mythtvhomedir}197 xinstall -d -m 755 ${destroot}${mythtvlogdir}198 xinstall -d -m 755 ${destroot}${mythtvrundir}199 200 destroot.keepdirs \201 ${destroot}${mythtvhomedir} \202 ${destroot}${mythtvlogdir} \203 ${destroot}${mythtvrundir}204 226 205 227 # Fix up library entries in dylibs and executables ... … … 291 313 292 314 post-activate { 293 315 # delete leftover file, if any 316 if [file exists /Library/LaunchDaemons/${plistfile}] { 317 file delete -force /Library/LaunchDaemons/${plistfile} 318 } 294 319 # The startupitem.install keyword does not exist in MacPorts < 2.1. 295 320 if {![info exists startupitem.install]} { -
trunk/dports/multimedia/mythtv-core.25/files/Myth_Setup.applescript
r96917 r98186 4 4 Myth Version: 0.25.0 5 5 Modified: 2012May17 6 2012Sep08 Force working themepainter 6 7 7 8 *) 8 9 property MSUappPath : "@PREFIX@/bin/mythtv-setup" 9 property MSUlogArg : "- -logpath @MYTHTVLOGDIR@"10 property MSUlogArg : "-O ThemePainter=qt --logpath @MYTHTVLOGDIR@" 10 11 property MSUlogLevel : "info" -- single string 11 12 property MSUverboseLevel : {"general"} -- a list, can be multiple strings -
trunk/dports/multimedia/mythtv-core.25/files/Myth_Stop_Start.applescript
r96917 r98186 2 2 For use with MacPorts install of Myth 3 3 Author: Craig Treleaven, ctreleaven at cogeco.ca 4 Version: 0.25.1 5 Modified: 2012Jul11 4 Version: 0.25.2 5 Modified: 2012Jul11 - new 6 2012Sep21 - log rotation 6 7 7 8 NB - if mbe is running, we only stop it if it was launched under launchd 8 9 *) 9 10 set mysqld to " not running on this machine. Is it on another machine on your network?" 11 set rotatorStatus to "" 12 set logrotButton to "" 10 13 set mythbackend to "" 11 14 set mythbackendButton to "Donno" 12 --set mythmaintenance to " stopped."13 15 set newline to " 14 16 " … … 17 19 18 20 repeat until (myResult contains "Close") 21 if (do shell script "sudo launchctl list" with administrator privileges) contains ".logrotate" then 22 set rotatorStatus to "runs daily" 23 set logrotButton to "Disable log rotation" 24 else 25 set rotatorStatus to "is not scheduled" 26 set logrotButton to "Schedule log rotation" 27 end if 28 19 29 set processes to do shell script "ps -Ac" 20 30 if the processes contains "mysqld" then … … 35 45 end if 36 46 37 set myResult to display dialog "Simple tool to start and stop some Myth's background processes" & newline & newline & "Currently... " & ¬ 38 newline & newline & indent & "MySQL is" & mysqld & ¬ 39 newline & indent & "MythBackend is" & mythbackend & newline ¬ 40 with icon note with title ¬ 41 "Stop/Start Myth-related programs" buttons {mythbackendButton, "Close"} ¬ 47 set myResult to display dialog newline & "Simple tool to start and stop Myth's background processes" &  48 newline & newline & newline & "Currently... " &  49 newline & newline & indent & "Log rotation " & rotatorStatus &  50 newline & newline & indent & "MySQL is" & mysqld &  51 newline & newline & indent & "MythBackend is" & mythbackend & newline & newline  52 with icon note with title  53 "Stop/Start Myth-related programs" buttons {logrotButton, mythbackendButton, "Close"}  42 54 default button "Close" -- cancel button "Close" 43 55 set myResult to button returned of myResult … … 52 64 end if 53 65 set myResult to "Close" 66 else if myResult contains "Schedule log rotation" then 67 --check for existence of 68 if (FileExists("@PREFIX@/etc/logrotate.conf") and  69 FileExists("@PREFIX@/etc/logrotate.d/logrotate.mythtv")) then 70 do shell script "sudo launchctl load -w /Library/LaunchDaemons/org.macports.logrotate.plist" with administrator privileges 71 else 72 display dialog "logrotate is not configured. Please see http://www.mythtv.org/wiki/MacPorts for instructions." buttons {"Close"} 73 set myResult to "Close" 74 end if 75 else if myResult contains "Disable log rotation" then 76 do shell script "sudo launchctl unload -w /Library/LaunchDaemons/org.macports.logrotate.plist" with administrator privileges 54 77 end if 55 78 end repeat 79 80 on FileExists(theFile) -- (String) as Boolean 81 tell application "System Events" to return (exists file theFile) 82 end FileExists
Note: See TracChangeset
for help on using the changeset viewer.