[35186] trunk/dports/audio
sfiera at macports.org
sfiera at macports.org
Wed Mar 19 16:58:31 PDT 2008
Revision: 35186
http://trac.macosforge.org/projects/macports/changeset/35186
Author: sfiera at macports.org
Date: 2008-03-19 16:58:30 -0700 (Wed, 19 Mar 2008)
Log Message:
-----------
New port lastmp
Added Paths:
-----------
trunk/dports/audio/lastmp/
trunk/dports/audio/lastmp/Portfile
trunk/dports/audio/lastmp/files/
trunk/dports/audio/lastmp/files/lastmp.conf.sample
trunk/dports/audio/lastmp/files/patch-lastmp.1.diff
trunk/dports/audio/lastmp/files/patch-setup.py.diff
Added: trunk/dports/audio/lastmp/Portfile
===================================================================
--- trunk/dports/audio/lastmp/Portfile (rev 0)
+++ trunk/dports/audio/lastmp/Portfile 2008-03-19 23:58:30 UTC (rev 35186)
@@ -0,0 +1,44 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+
+name lastmp
+version 0.35
+description LastFM Music Submitter for MPD
+categories audio
+maintainers sfiera
+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
+
+depends_lib-append port:py25-mpdclient2 \
+ port:py25-hashlib \
+ 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}|" doc/lastmp.1
+ reinplace "s|@PREFIX@|${prefix}|" ${conf}
+}
+
+post-destroot {
+ xinstall -m 600 -o ${user} -g ${user} ${worksrcpath}/${conf} ${destroot}${prefix}/etc/${conf}
+}
Property changes on: trunk/dports/audio/lastmp/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/audio/lastmp/files/lastmp.conf.sample
===================================================================
--- trunk/dports/audio/lastmp/files/lastmp.conf.sample (rev 0)
+++ trunk/dports/audio/lastmp/files/lastmp.conf.sample 2008-03-19 23:58:30 UTC (rev 35186)
@@ -0,0 +1,11 @@
+[mpd]
+host: localhost
+port: 6600
+# password: **********
+
+# [daemon]
+# sleep_time: 5
+# debug: False
+# log: @PREFIX@/var/log/lastfm/lastfm.log
+# pidfile: @PREFIX@/var/run/lastfm/daemon_name.pid
+# spool: @PREFIX@/var/spool/lastfm
Added: trunk/dports/audio/lastmp/files/patch-lastmp.1.diff
===================================================================
--- trunk/dports/audio/lastmp/files/patch-lastmp.1.diff (rev 0)
+++ trunk/dports/audio/lastmp/files/patch-lastmp.1.diff 2008-03-19 23:58:30 UTC (rev 35186)
@@ -0,0 +1,11 @@
+--- doc/lastmp.1 2006-06-23 17:30:23.000000000 -0400
++++ doc/lastmp.1.new 2008-03-05 01:59:47.000000000 -0500
+@@ -31,7 +31,7 @@
+ Write the serialized song information to standard output.
+ .SH FILES
+ .TP
+-.B /etc/lastfmsubmitd.conf
++.B @PREFIX@/etc/lastfmsubmitd.conf
+ The configuration file.
+ .SH SEE ALSO
+ .IR mpd (1).
Added: trunk/dports/audio/lastmp/files/patch-setup.py.diff
===================================================================
--- trunk/dports/audio/lastmp/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/audio/lastmp/files/patch-setup.py.diff 2008-03-19 23:58:30 UTC (rev 35186)
@@ -0,0 +1,37 @@
+--- setup.py 2007-03-29 12:35:34.000000000 -0400
++++ setup.py.new 2008-03-19 19:48:37.000000000 -0400
+@@ -3,7 +3,7 @@
+ from distutils.core import setup
+
+ setup(
+- name='lastfmsubmitd',
++ name='lastmp',
+ version='0.35',
+ description='Last.fm submit daemon and example MPD/MusicBrainz clients',
+ author='Decklin Foster',
+@@ -18,25 +18,12 @@
+ 'Environment :: No Input/Output (Daemon)',
+ 'Programming Language :: Python',
+ ],
+- package_dir = {'': 'lib'},
+- packages = ['lastfm'],
+ scripts = [
+- 'lastfmsubmitd',
+ 'lastmp',
+- 'lastcd',
+- 'mbfind',
+- 'mbget',
+- 'mbsubmit',
+- 'peel',
+ ],
+ data_files=[
+ ('share/man/man1', [
+- 'doc/lastfmsubmitd.1',
+ 'doc/lastmp.1',
+- 'doc/mbget.1',
+- ]),
+- ('lib/lastfmsubmitd', [
+- 'lastfmsubmit',
+ ]),
+ ],
+ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080319/df03a2ac/attachment.html
More information about the macports-changes
mailing list