[145431] trunk/dports/multimedia/mythtv.27/Portfile

ctreleaven at macports.org ctreleaven at macports.org
Thu Feb 4 17:28:30 PST 2016


Revision: 145431
          https://trac.macports.org/changeset/145431
Author:   ctreleaven at macports.org
Date:     2016-02-04 17:28:30 -0800 (Thu, 04 Feb 2016)
Log Message:
-----------
mythtv.27: workaround empty meta port, fix subport names

Modified Paths:
--------------
    trunk/dports/multimedia/mythtv.27/Portfile

Modified: trunk/dports/multimedia/mythtv.27/Portfile
===================================================================
--- trunk/dports/multimedia/mythtv.27/Portfile	2016-02-04 22:09:59 UTC (rev 145430)
+++ trunk/dports/multimedia/mythtv.27/Portfile	2016-02-05 01:28:30 UTC (rev 145431)
@@ -12,6 +12,7 @@
 set minorversion    .5
 set lastcommit      20160122
 github.setup        MythTV mythtv ${shorthash}
+name                mythtv${majorversion}
 checksums           rmd160  8095a5d4dee289d1f1a889c369aee4ae9cb2e0f3 \
                     sha256  dea36afe5f32fb35e5882a6c103528b9db959a14b75b2dc0fcab19811d81b341
 
@@ -28,6 +29,7 @@
 livecheck.version       ${majorversion}${minorversion}
 livecheck.regex         "archive/v(0.27\[\\.\\d\]?)${extract.suffix}"
 
+
 set perlver         perl5.22
 set perlbin         ${prefix}/bin/${perlver}
 set perlmodver      p5.22
@@ -35,7 +37,30 @@
 set pythonbin       ${prefix}/bin/${pythonver}
 set pymodver        py27
 
-subport mythtv-core.${majorversion} {
+if { ${subport} eq ${name} } {
+    description         personal video recorder (PVR) and media centre system
+    long_description    ${description}, please install mythtv-core${majorversion} or mythtv-plugins${majorversion} rather than this meta-port
+    master_sites
+    distfiles
+    installs_libs no
+    use_configure no
+    build {}
+
+    # create a dummy file so the port can be successfully activated
+    destroot {
+        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${subport}
+        set docfile   [open ${destroot}${prefix}/share/doc/${subport}/README.txt "w"]
+        puts ${docfile} "Meta-port for ${name}"
+        puts ${docfile} "${long_description}"
+        close ${docfile}
+    }
+#	pre-fetch {
+#		ui_error "Please install mythtv-core${majorversion} or mythtv-plugins${majorversion} rather than this meta-port."
+#        return -code error "specify an installable port"
+#	}
+}
+
+subport mythtv-core${majorversion} {
 	name                mythtv-core${majorversion}
 	version             0${majorversion}${minorversion}-Fixes-${lastcommit}
 
@@ -440,7 +465,7 @@
 	############################################################################"
 }
 
-subport mythtv-plugins.${majorversion} {
+subport mythtv-plugins${majorversion} {
 	name                mythtv-plugins${majorversion}
 	version             0${majorversion}${minorversion}-Fixes-${lastcommit}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160204/2a608e42/attachment.html>


More information about the macports-changes mailing list