source: trunk/dports/gnome/gpodder/Portfile

Last change on this file was 148719, checked in by elelay@…, 19 months ago

gpodder update to 3.9.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- 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
2# $Id: Portfile 148719 2016-05-15 13:47:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gpodder
7version             3.9.0
8categories          gnome audio
9license             GPL-3
10maintainers         elelay
11platforms           darwin
12description         A media aggregator and podcast client
13
14long_description    gPodder is a standalone podcast manager. \
15                    It provides anything to manage feeds and podcasts \
16                    but requires an external player to actually listen/view \
17                    the content, e.g. Apple QuickTime Player.
18
19homepage            http://gpodder.org
20master_sites        http://gpodder.org/src/
21
22checksums           md5     e10acfd6d3eb03c46ff9d02efe4b920f \
23                    rmd160  7eb00751c428f4e149ba9cfe89f3a7cc45bfb339
24
25
26depends_build       port:help2man\
27                    port:intltool
28
29depends_lib         port:vorbis-tools\
30                    port:lame \
31                    port:py27-feedparser \
32                    port:dbus-python27 \
33                    port:py27-mygpoclient \
34                    port:py27-pygtk
35
36set python.version  27
37set python.branch   "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
38set my_python "${frameworks_dir}/Python.framework/Versions/${python.branch}"
39
40post-patch {
41    reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile
42}
43
44# install in python 2.7 prefix
45destroot.args PREFIX=${my_python}
46
47# Install the apps in the standard path :
48post-destroot {
49    foreach {app} {gpodder gpo gpodder-backup gpodder-migrate2tres} {
50        ln -s ${my_python}/bin/${app} ${destroot}${prefix}/bin/${app}
51    }
52}
53
54variant quartz {
55    depends_lib-append  port:py27-gtk-osx-application-gtk2
56
57    post-destroot {
58        # Command-XX shortcuts in gPodder menus
59        system "/usr/bin/xsltproc -o ${destroot}${my_python}/share/gpodder/ui/gtk/gpodder.ui \
60                ${filespath}/adjust-modifiers.xsl ${worksrcpath}/share/gpodder/ui/gtk/gpodder.ui"
61    }
62}
63
64variant html_notes description {Use WebkitGtk+ to show episode notes in HTML format} {
65                depends_lib-append  port:py${python.version}-webkitgtk
66}
67
68use_configure       no
69
70build {}
71
72post-destroot {
73
74    # build a MacOS X application
75    set install_path "${my_python}"
76
77        system "cd ${worksrcpath}/tools/mac-osx && make \
78                GPODDERSCRIPT=\"${install_path}/bin/gpodder\"\
79                APPLICATIONSDIR=\"${destroot}${applications_dir}\"\
80                VERSION=\"${version}\"\
81                OSXVERSION=\"${os.platform}${os.major}\" all"
82       
83    # ticket #39613 gPodder +x11 keeps bouncing otherwise
84    if {![variant_isset quartz]} {
85        reinplace -E {s|(<string>org.gpodder.gpodder</string>)|\1 <key>LSUIElement</key><string>1</string>|} \
86                 "${destroot}${applications_dir}/gPodder.app/Contents/Info.plist"
87    }
88}
89
90notes "
91To subscribe to YouTube user feeds (e.g. yt:gobelins),
92you must enter a google API key.
93See http://wiki.gpodder.org/wiki/Youtube for detailed instructions.
94"
95
96livecheck.type      regex
97livecheck.url       ${master_sites}
98livecheck.regex     "gpodder-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.