source: trunk/dports/audio/lastfmsubmitd/Portfile

Last change on this file was 126847, checked in by larryv@…, 3 years ago

lastfmsubmitd: Switch from Python 2.5 to 2.7

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 126847 2014-10-16 05:48:57Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name            lastfmsubmitd
7version         0.35
8revision        1
9description     LastFM Music Submitter
10categories      audio
11maintainers     nomaintainer
12long_description \
13     lastfmsubmitd is a replacement for the traditional Last.fm plugin model. \
14     Instead of re-implementing networking and caching code in each plugin, \
15     player plugins can simply send song information to the daemon, which will \
16     take care of the rest.
17
18homepage        http://www.red-bean.com/~decklin/software/lastfmsubmitd/
19platforms       darwin
20master_sites    ${homepage} http://distfiles.macports.org/python/
21use_bzip2       yes
22checksums       md5 0da502e0ecbbaef373c9849e33187367 \
23                sha1 98fb020a54f8e49b16090fb1af07912a12351d8f \
24                rmd160 c6a06aa3931b823ee8de2e863812b1a8542ffa47
25
26python.default_version 27
27
28set dirs { /var/spool/lastfm /var/run/lastfm /var/log/lastfm }
29set conf lastfmsubmitd.conf.sample
30set user "lastfm"
31
32post-extract {
33    file copy ${filespath}/${conf} ${worksrcpath}
34}
35
36patchfiles      patch-config.py.diff \
37                patch-setup.py.diff \
38                patch-lastfmsubmitd.1.diff
39post-patch {
40    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/doc/lastfmsubmitd.1
41    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/lib/lastfm/config.py
42    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/${conf}
43}
44
45post-destroot {
46    addgroup ${user}
47    set gid [existsgroup ${user}]
48    adduser ${user} gid=${gid} realname=LastFM\ Submit\ Daemon
49
50    foreach dir ${dirs} {
51        xinstall -m 755 -o ${user} -g ${user} -d ${destroot}${prefix}${dir}
52        destroot.keepdirs-append ${destroot}${prefix}${dir}
53    }
54    xinstall -m 600 -o ${user} -g ${user} ${worksrcpath}/${conf} ${destroot}${prefix}/etc/${conf}
55}
Note: See TracBrowser for help on using the repository browser.