source: trunk/dports/gnome/gpodder/Portfile @ 73957

Last change on this file since 73957 was 73957, checked in by elelay@…, 7 years ago

gPodder 2.10

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 73957 2010-11-30 06:28:59Z elelay@macports.org $
3
4PortSystem          1.0
5
6name                gpodder
7version             2.10
8categories          gnome audio
9license             GPLv3
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://download.berlios.de/gpodder/
21
22checksums           md5     3bb577ccb2c57fab8514bde7485faa93 \
23                    sha1    d2d9f5fd2b2056f8446d872d346def1c42027381 \
24                    rmd160  df79a9c2d1031694b796e27db0950bcab1a193fb
25
26depends_build       port:help2man\
27                    port:intltool
28
29depends_lib         port:vorbis-tools\
30                    port:lame
31
32variant python25 conflicts python26 description {Use Python 2.5} {
33    depends_lib-append  port:py25-feedparser\
34                        port:py25-pil\
35                        port:dbus-python25\
36                        port:py25-mygpoclient
37
38    post-patch {
39        reinplace s|python|${prefix}/bin/python2.5|g ${worksrcpath}/Makefile
40    }
41
42    destroot.args PREFIX=${prefix}
43}
44
45
46set my_python "DUMMY_VALUE_WILL_BE_OVERWRITTEN"
47
48variant python26 conflicts python25 description {Use Python 2.6} {
49    depends_lib-append  port:py26-feedparser\
50                        port:py26-pil\
51                        port:dbus-python26\
52                        port:py26-mygpoclient
53   
54    set my_python "${frameworks_dir}/Python.framework/Versions/2.6"
55
56    post-patch {
57        reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile
58    }
59   
60    # install in python 2.6 prefix, see bug #22522
61    destroot.args PREFIX=${frameworks_dir}/Python.framework/Versions/2.6
62   
63    # Install the 2.6 apps in the standard path :
64    # the 2 variants can't be active simultaneously.
65    post-destroot {
66        foreach {app} {gpodder gpo gpodder-backup} {
67                ln -s ${my_python}/bin/${app} ${destroot}${prefix}/bin/${app}
68        }
69    }
70}
71
72variant python27 conflicts python26 conflicts python25 description {Use Python 2.7} {
73    depends_lib-append  port:py27-feedparser\
74                        port:py27-pil\
75                        port:dbus-python27\
76                        port:py27-mygpoclient
77
78    set my_python "${frameworks_dir}/Python.framework/Versions/2.7"
79   
80    post-patch {
81        reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile
82    }
83
84    # install in python 2.7 prefix, see bug #22522
85    destroot.args PREFIX=${frameworks_dir}/Python.framework/Versions/2.7
86
87    # Install the 2.7 apps in the standard path :
88    # the 2 variants can't be active simultaneously.
89    post-destroot {
90        foreach {app} {gpodder gpo gpodder-backup} {
91            ln -s ${my_python}/bin/${app} ${destroot}${prefix}/bin/${app}
92        }
93    }
94}
95
96if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} {
97    default_variants +python26
98}
99
100variant quartz {
101    depends_lib-append  port:gtk-osx-application
102}
103
104variant html_notes description {Use WebkitGtk+ to show episode notes in HTML format} {
105        if {[variant_isset python25]} {
106                depends_lib-append  port:py25-webkitgtk
107        } else if {[variant_isset python26]} {
108                depends_lib-append  port:py26-webkitgtk
109        } else {
110                depends_lib-append  port:py27-webkitgtk
111        }
112}
113
114use_configure       no
115
116build {}
117
118post-destroot {
119
120    # build a MacOS X application
121        if {[variant_isset python26]} {
122                set install_path "${my_python}"
123        } else {
124                set install_path "${prefix}"
125        }
126
127        system "cd ${worksrcpath}/data/osx && make \
128                GPODDERSCRIPT=\"${install_path}/bin/gpodder\"\
129                APPLICATIONSDIR=\"${destroot}${applications_dir}\"\
130                VERSION=\"${version}\"\
131                OSXVERSION=\"${os.platform}${os.major}\" all"
132}
133
134livecheck.type      regex
135livecheck.url       ${master_sites}
136livecheck.regex     "gpodder-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.