[99758] trunk/dports/multimedia/mythtv-core.25/Portfile
pixilla at macports.org
pixilla at macports.org
Fri Nov 16 09:43:28 PST 2012
Revision: 99758
https://trac.macports.org/changeset/99758
Author: pixilla at macports.org
Date: 2012-11-16 09:43:27 -0800 (Fri, 16 Nov 2012)
Log Message:
-----------
multimedia/mythtv-core.25:
- Maintainer patch.
- Correct Python installation; detab 4 lines. Closes #36783
Modified Paths:
--------------
trunk/dports/multimedia/mythtv-core.25/Portfile
Modified: trunk/dports/multimedia/mythtv-core.25/Portfile
===================================================================
--- trunk/dports/multimedia/mythtv-core.25/Portfile 2012-11-16 17:33:50 UTC (rev 99757)
+++ trunk/dports/multimedia/mythtv-core.25/Portfile 2012-11-16 17:43:27 UTC (rev 99758)
@@ -13,6 +13,7 @@
github.setup MythTV mythtv ${shorthash}
name mythtv-core${majorversion}
version 0${majorversion}${minorversion}-Fixes-20121025
+revision 1
categories multimedia
platforms darwin
license GPL-2
@@ -108,7 +109,7 @@
post-patch {
set sedPath ${worksrcpath}/mythtv/
- ui_info "Make Myth utils use MacPorts Perl"
+ ui_info "Make Myth utils use MacPorts Perl <<<<"
reinplace -locale C "s|#!/usr/bin/env perl|#!${perlbin}|" \
${sedPath}programs/scripts/internetcontent/topdocumentaryfilm.pl \
${sedPath}programs/scripts/internetcontent/twit.tv.pl
@@ -125,13 +126,34 @@
${sedPath}programs/scripts/database/mythconverg_backup.pl \
${sedPath}programs/scripts/database/mythconverg_restore.pl
- ui_info "Record Myth version strings"
+ ui_info "Record Myth version strings <<<<"
reinplace -locale C "s#\${SOURCE_VERSION}#${mythverstring}#g" ${sedPath}version.sh
reinplace -locale C "s#\${BRANCH}#${mythbranch}#g" ${sedPath}version.sh
- ui_info "Install Myth Python stuff to ${prefix}"
+ ui_info "Make Myth scripts use MacPorts Python <<<<"
+ # Hack to install Python bindings in ${prefix}/Library/Frameworks/Python.framework/Versions/2.6
+ reinplace -locale C "s|\$(ROOT_FLAGS) \$(PREFIX_FLAGS)|\$(ROOT_FLAGS) \--prefix=\"${frameworks_dir}/Python.framework/Versions/2.6\"|" \
+ ${sedPath}/bindings/python/Makefile
reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythtv/bindings/python/MythTV/static.py
+ reinplace -locale C "s|#!python|#!${pythonbin}|" \
+ ${worksrcpath}/mythtv/bindings/python/scripts/mythpython \
+ ${worksrcpath}/mythtv/bindings/python/scripts/mythwikiscripts
+ fs-traverse f ${sedPath}/bindings/python/ {
+ if [string equal [ file extension ${f} ] ".py" ] {
+ reinplace -locale C "s|^#! */usr/bin/env python\$|#!${pythonbin}|" ${f}
+ }
+ }
+ fs-traverse f ${sedPath}/programs/scripts/ {
+ if [string equal [ file extension ${f} ] ".py" ] {
+ reinplace -locale C "s|^#! */usr/bin/env python\$|#!${pythonbin}|" ${f}
+ }
+ }
+ foreach f [glob -directory ${sedPath}/programs/scripts/hardwareprofile *.py] {
+ # fix even though they're currently non-functional on OS X
+ reinplace -locale C "s|^#!/usr/bin/python\$|#!${pythonbin}|" ${f}
+ }
+ ui_info "Customize other port files <<<<"
foreach {applescript} ${applescripts} {
reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${applescript}.applescript
reinplace -locale C "s|@APPLICATIONS_DIR@|${applications_dir}|" ${worksrcpath}/macports/${applescript}.applescript
@@ -320,10 +342,10 @@
universal_variant no
post-activate {
- # delete leftover file, if any
- if [file exists /Library/LaunchDaemons/${plistfile}] {
- file delete -force /Library/LaunchDaemons/${plistfile}
- }
+ # delete leftover file, if any
+ if [file exists /Library/LaunchDaemons/${plistfile}] {
+ file delete -force /Library/LaunchDaemons/${plistfile}
+ }
# The startupitem.install keyword does not exist in MacPorts < 2.1.
if {![info exists startupitem.install]} {
set startupitem.install yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121116/a63993cf/attachment.html>
More information about the macports-changes
mailing list