Ticket #47132: Portfile

File Portfile, 2.1 KB (added by RJVB (René Bertin), 10 years ago)
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# kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4;
3
4PortSystem          1.0
5
6fetch.type          bzr
7bzr.url             lp:qarte
8bzr.revision        146
9
10name                qarte
11version             2.1.0
12
13categories          python kde kde4
14
15description         Qarte allow you to browse the archives of the Arte+7 and ArteLiveWeb \
16                    sites and download the available videos.
17long_description    ${description}
18
19platforms           darwin
20license             GPL-3
21maintainers         gmail.com:rjvbertin
22
23homepage            https://launchpad.net/qarte
24
25depends_run-append  port:python27 port:py27-pykde4 port:rtmpdump
26
27variant notify description {Runtime support for desktop notifications} {
28    # specify py27-pygtk as an explicit dependency so interested users
29    # know they will potentially be pulling in GTk2
30    depends_run-append  port:py27-pygtk port:py27-notify-python
31}
32
33use_configure       no
34
35patchfiles-append   fix_unicode_issues.diff
36
37post-patch {
38    reinplace -W ${build.dir} "s|/usr/bin/qarte|${prefix}/bin/qarte|g" differedTask.py
39    reinplace -W ${build.dir} "s|#\!/usr/bin/env python|#\!${prefix}/bin/python2.7|" qarte.py
40    reinplace -W ${build.dir} "s|#\! /usr/bin/python|#\!${prefix}/bin/python2.7|" qarte
41    reinplace -W ${build.dir} "s|\"/usr/share|\"${prefix}/share|" qarte
42    reinplace -W ${build.dir} "s|'/usr/share|'${prefix}/share|" qarte qarte.py
43}
44
45build {}
46
47destroot {
48    copy ${build.dir} ${destroot}${prefix}/share/qarte
49    delete ${destroot}${prefix}/share/qarte/qarte
50    delete -force ${destroot}${prefix}/share/qarte/.bzr
51    xinstall -m 0755 ${build.dir}/qarte ${destroot}${prefix}/bin
52}
53
54livecheck.type      regex
55livecheck.url       https://code.launchpad.net/~vincent-vandevyvre/qarte/trunk
56livecheck.version   ${bzr.revision}
57livecheck.regex     >(\\d+)<