# -*- 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 PortSystem 1.0 PortGroup python 1.0 name gpodder version 3.11.0 categories gnome audio license GPL-3 maintainers nomaintainer platforms {darwin any} supported_archs noarch description A media aggregator and podcast client long_description gPodder is a standalone podcast manager. \ It provides anything to manage feeds and podcasts \ but requires an external player to actually listen/view \ the content, e.g. Apple QuickTime Player. homepage http://gpodder.org master_sites https://github.com/gpodder/gpodder/archive/refs/tags distfiles ${version}.tar.gz checksums rmd160 62e9e284c3c154b640b32735c764706b77f57bf3 \ sha256 c96a3332e61e8277475497ec24fe0918c5cafc580a2f85fc7b34c2fd989873de \ size 1155120 depends_build port:help2man\ port:intltool depends_lib port:vorbis-tools\ port:lame \ path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \ path:lib/pkgconfig/librsvg-2.0.pc:librsvg # python group overrides destroot.cmd make destroot.destdir DESTDIR=${destroot} variant python38 conflicts python39 python310 python311 description {Use Python 3.8} {} variant python39 conflicts python38 python310 python311 description {Use Python 3.9} {} variant python310 conflicts python38 python39 python311 description {Use Python 3.10} {} variant python311 conflicts python38 python39 python310 description {Use Python 3.11} {} if {![variant_isset python38] && ![variant_isset python39] && ![variant_isset python310]} { default_variants +python311 } if {[variant_isset python38]} { python.default_version 38 } elseif {[variant_isset python39]} { python.default_version 39 } elseif {[variant_isset python310]} { python.default_version 310 } else { python.default_version 311 } python.pep517 no set my_python "${frameworks_dir}/Python.framework/Versions/${python.branch}" depends_lib-append \ port:py${python.version}-gobject3 \ port:dbus-python${python.version} \ port:py${python.version}-mutagen \ port:py${python.version}-mygpoclient \ port:py${python.version}-podcastparser \ port:youtube-dl post-patch { reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/makefile } # install in python prefix destroot.args PREFIX=${my_python} variant quartz { post-destroot { # Command-XX shortcuts in gPodder menus system "/usr/bin/xsltproc -o ${destroot}${my_python}/share/gpodder/ui/gtk/gpodder.ui \ ${filespath}/adjust-modifiers.xsl ${worksrcpath}/share/gpodder/ui/gtk/gpodder.ui" } } build {} post-destroot { set install_path "${my_python}" set contents "${destroot}${applications_dir}/gPodder.app/Contents" file mkdir ${contents}/MacOS ${contents}/Resources copy ${worksrcpath}/tools/mac-osx/icon.icns ${contents}/Resources/gPodder.icns copy ${worksrcpath}/tools/mac-osx/Info.plist ${contents} reinplace "s|__VERSION__|${version}|g" ${contents}/Info.plist reinplace "s|__COPYRIGHT__|© 2005-2022 The gPodder Team|g" ${contents}/Info.plist ln -s ${install_path}/bin/gpodder ${contents}/MacOS/gpodder # ticket #39613 gPodder +x11 keeps bouncing otherwise if {![variant_isset quartz]} { reinplace -E {s|(org.gpodder.gpodder)|\1 LSUIElement1|} \ "${destroot}${applications_dir}/gPodder.app/Contents/Info.plist" } } livecheck.type regex livecheck.url ${master_sites} livecheck.regex "gpodder-(\\d+(?:\\.\\d+)*)${extract.suffix}"