Changeset 145431


Ignore:
Timestamp:
Feb 5, 2016, 1:28:30 AM (3 years ago)
Author:
ctreleaven@…
Message:

mythtv.27: workaround empty meta port, fix subport names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/mythtv.27/Portfile

    r145430 r145431  
    1313set lastcommit      20160122
    1414github.setup        MythTV mythtv ${shorthash}
     15name                mythtv${majorversion}
    1516checksums           rmd160  8095a5d4dee289d1f1a889c369aee4ae9cb2e0f3 \
    1617                    sha256  dea36afe5f32fb35e5882a6c103528b9db959a14b75b2dc0fcab19811d81b341
     
    2930livecheck.regex         "archive/v(0.27\[\\.\\d\]?)${extract.suffix}"
    3031
     32
    3133set perlver         perl5.22
    3234set perlbin         ${prefix}/bin/${perlver}
     
    3638set pymodver        py27
    3739
    38 subport mythtv-core.${majorversion} {
     40if { ${subport} eq ${name} } {
     41    description         personal video recorder (PVR) and media centre system
     42    long_description    ${description}, please install mythtv-core${majorversion} or mythtv-plugins${majorversion} rather than this meta-port
     43    master_sites
     44    distfiles
     45    installs_libs no
     46    use_configure no
     47    build {}
     48
     49    # create a dummy file so the port can be successfully activated
     50    destroot {
     51        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${subport}
     52        set docfile   [open ${destroot}${prefix}/share/doc/${subport}/README.txt "w"]
     53        puts ${docfile} "Meta-port for ${name}"
     54        puts ${docfile} "${long_description}"
     55        close ${docfile}
     56    }
     57#       pre-fetch {
     58#               ui_error "Please install mythtv-core${majorversion} or mythtv-plugins${majorversion} rather than this meta-port."
     59#        return -code error "specify an installable port"
     60#       }
     61}
     62
     63subport mythtv-core${majorversion} {
    3964        name                mythtv-core${majorversion}
    4065        version             0${majorversion}${minorversion}-Fixes-${lastcommit}
     
    441466}
    442467
    443 subport mythtv-plugins.${majorversion} {
     468subport mythtv-plugins${majorversion} {
    444469        name                mythtv-plugins${majorversion}
    445470        version             0${majorversion}${minorversion}-Fixes-${lastcommit}
Note: See TracChangeset for help on using the changeset viewer.