# -*- 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$ PortSystem 1.0 PortGroup active_variants 1.1 name gpodder version 3.6.1 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 f4765a8ecf4f216fe634709ed66417cb \ sha1 203ecfbe37ad2b6dc8de00c88eabc99e9194253f \ rmd160 0ad803005b455a0934445ad5a0079291f37629b6 depends_build port:help2man\ port:intltool depends_lib port:vorbis-tools\ port:lame set my_python "DUMMY_VALUE_WILL_BE_OVERWRITTEN" variant python26 conflicts description {Use Python 2.6} { depends_lib-append port:py26-feedparser\ port:py26-pil\ port:dbus-python26\ port:py26-mygpoclient \ port:py26-pygtk set my_python "${frameworks_dir}/Python.framework/Versions/2.6" post-patch { reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile } # install in python 2.6 prefix, see bug #22522 destroot.args PREFIX=${frameworks_dir}/Python.framework/Versions/2.6 # Install the 2.6 apps in the standard path : # the 2 variants can't be active simultaneously. post-destroot { foreach {app} {gpodder gpo gpodder-backup} { ln -s ${my_python}/bin/${app} ${destroot}${prefix}/bin/${app} } } } variant python27 conflicts python26 conflicts description {Use Python 2.7} { depends_lib-append port:py27-feedparser\ port:py27-pil\ port:dbus-python27\ port:py27-mygpoclient \ port:py27-pygtk set my_python "${frameworks_dir}/Python.framework/Versions/2.7" post-patch { reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile } # install in python 2.7 prefix, see bug #22522 destroot.args PREFIX=${frameworks_dir}/Python.framework/Versions/2.7 # Install the 2.7 apps in the standard path : # the 2 variants can't be active simultaneously. post-destroot { foreach {app} {gpodder gpo gpodder-backup gpodder-migrate2tres} { ln -s ${my_python}/bin/${app} ${destroot}${prefix}/bin/${app} } } } if {![variant_isset python26] && ![variant_isset python27]} { default_variants +python27 } variant quartz { depends_lib-append port:gtk-osx-application # gPodder is still using pygtk, not the gtk3 bindings require_active_variants gtk-osx-application "" gtk3 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} { if {[variant_isset python26]} { depends_lib-append port:py26-webkitgtk } else { depends_lib-append port:py27-webkitgtk } } use_configure no build {} post-destroot { # build a MacOS X application if {[variant_isset python26] || [variant_isset python27]} { set install_path "${my_python}" } else { set install_path "${prefix}" } 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 " **** **** With release 3.0, gPodder file structure has changed: instead of storing **** the database in \$HOME/.config/gpodder and the downloads in \$HOME/gpodder-downloads **** everything is now stored in the \$HOME/gPodder directory. **** The database structure has also changed, so you'll have to run this **** command to convert to the new format. **** **** ${prefix}/bin/gpodder-migrate2tres **** " livecheck.type regex livecheck.url ${master_sites} livecheck.regex "gpodder-(\\d+(?:\\.\\d+)*)${extract.suffix}"