Files
Lawrence VelázquezandMojca Miklavec 34b3070336 Remove all $Id$ lines
for pf in */*/Portfile
do
    ed -s "$pf" <<-'EOF'
	1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
	1g/^[[:space:]]*$/d
	w
	q
	EOF
done
2016-12-28 18:14:04 +01:00

45 lines
1.3 KiB
Plaintext

PortSystem 1.0
PortGroup python 1.0
name lastmp
version 0.35
revision 1
description LastFM Music Submitter for MPD
categories audio
maintainers nomaintainer
long_description \
lastmp is a plugin for lastfmsubmitd. It submits tracks played from MPD to \
lastfmsubmitd, which will in turn submit them to last.fm
distname lastfmsubmitd-${version}
homepage http://www.red-bean.com/~decklin/software/lastfmsubmitd/
platforms darwin
master_sites ${homepage}
use_bzip2 yes
checksums md5 0da502e0ecbbaef373c9849e33187367 \
sha1 98fb020a54f8e49b16090fb1af07912a12351d8f \
rmd160 c6a06aa3931b823ee8de2e863812b1a8542ffa47
python.default_version 27
depends_lib-append port:py${python.version}-mpdclient2 \
port:lastfmsubmitd
set conf lastmp.conf.sample
set user lastfm
post-extract {
file copy ${filespath}/${conf} ${worksrcpath}
}
patchfiles patch-setup.py.diff \
patch-lastmp.1.diff
post-patch {
reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/doc/lastmp.1 \
${worksrcpath}/${conf}
}
post-destroot {
xinstall -m 600 -o ${user} -g ${user} ${worksrcpath}/${conf} ${destroot}${prefix}/etc/${conf}
}