# -*- 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 # $Id: Portfile 148719 2016-05-15 13:47:19Z elelay@macports.org $ PortSystem 1.0 name gpodder version 3.9.0 categories gnome audio license GPL-3 maintainers elelay platforms darwin 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 http://gpodder.org/src/ checksums md5 e10acfd6d3eb03c46ff9d02efe4b920f \ rmd160 7eb00751c428f4e149ba9cfe89f3a7cc45bfb339 depends_build port:help2man\ port:intltool depends_lib port:vorbis-tools\ port:lame \ port:py27-feedparser \ port:dbus-python27 \ port:py27-mygpoclient \ port:py27-pygtk set python.version 27 set python.branch "[string range ${python.version} 0 end-1].[string index ${python.version} end]" set my_python "${frameworks_dir}/Python.framework/Versions/${python.branch}" post-patch { reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile } # install in python 2.7 prefix destroot.args PREFIX=${my_python} # Install the apps in the standard path : post-destroot { foreach {app} {gpodder gpo gpodder-backup gpodder-migrate2tres} { ln -s ${my_python}/bin/${app} ${destroot}${prefix}/bin/${app} } } variant quartz { depends_lib-append port:py27-gtk-osx-application-gtk2 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" } } variant html_notes description {Use WebkitGtk+ to show episode notes in HTML format} { depends_lib-append port:py${python.version}-webkitgtk } use_configure no build {} post-destroot { # build a MacOS X application set install_path "${my_python}" system "cd ${worksrcpath}/tools/mac-osx && make \ GPODDERSCRIPT=\"${install_path}/bin/gpodder\"\ APPLICATIONSDIR=\"${destroot}${applications_dir}\"\ VERSION=\"${version}\"\ OSXVERSION=\"${os.platform}${os.major}\" all" # 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" } } notes " To subscribe to YouTube user feeds (e.g. yt:gobelins), you must enter a google API key. See http://wiki.gpodder.org/wiki/Youtube for detailed instructions. " livecheck.type regex livecheck.url ${master_sites} livecheck.regex "gpodder-(\\d+(?:\\.\\d+)*)${extract.suffix}"