source: trunk/dports/audio/lastmp/Portfile

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

lastmp: Switch from Python 2.5 to 2.7

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 126846 2014-10-16 05:48:55Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name            lastmp
7version         0.35
8revision        1
9description     LastFM Music Submitter for MPD
10categories      audio
11maintainers     nomaintainer
12long_description \
13    lastmp is a plugin for lastfmsubmitd. It submits tracks played from MPD to \
14    lastfmsubmitd, which will in turn submit them to last.fm
15
16distname        lastfmsubmitd-${version}
17homepage        http://www.red-bean.com/~decklin/software/lastfmsubmitd/
18platforms       darwin
19master_sites    ${homepage}
20use_bzip2       yes
21checksums       md5 0da502e0ecbbaef373c9849e33187367 \
22                sha1 98fb020a54f8e49b16090fb1af07912a12351d8f \
23                rmd160 c6a06aa3931b823ee8de2e863812b1a8542ffa47
24
25python.default_version 27
26
27depends_lib-append  port:py${python.version}-mpdclient2 \
28                    port:lastfmsubmitd
29
30set conf lastmp.conf.sample
31set user lastfm
32
33post-extract {
34    file copy ${filespath}/${conf} ${worksrcpath}
35}
36
37patchfiles      patch-setup.py.diff \
38                patch-lastmp.1.diff
39post-patch {
40    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/doc/lastmp.1 \
41                                      ${worksrcpath}/${conf}
42}
43
44post-destroot {
45    xinstall -m 600 -o ${user} -g ${user} ${worksrcpath}/${conf} ${destroot}${prefix}/etc/${conf}
46}
Note: See TracBrowser for help on using the repository browser.