Code

Added binary package "ncmpc-lyrics". ncmpc-0.13-1
authorSebastian Harl <sh@tokkee.org>
Sun, 11 Jan 2009 20:41:00 +0000 (21:41 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 11 Jan 2009 20:41:00 +0000 (21:41 +0100)
This package includes the lyrics plugins, some of which depend on python or
ruby. By splitting them into a separate package, we avoid any kind of
dependency on python or ruby in the "ncmpc" package which now suggests
ncmpc-lyrics instead of python, ruby.

debian/changelog
debian/control
debian/rules

index 9e4e26299001efb4a177dd42d68779413e5b6554..c972fd72973fd86beefeca6c93f62d499e6e61f0 100644 (file)
@@ -8,8 +8,12 @@ ncmpc (0.13-1) experimental; urgency=low
       file. debian/changelog now refers to the AUTHORS file for a list of team
       members.
     - Use © instead of (C) to make lintian happy.
+  * Added binary package "ncmpc-lyrics". This package includes the lyrics
+    plugins, some of which depend on python or ruby. By splitting them into a
+    separate package, we avoid any kind of dependency on python or ruby in the
+    "ncmpc" package which now suggests ncmpc-lyrics instead of python, ruby.
 
- -- Sebastian Harl <sh@tokkee.org>  Sun, 11 Jan 2009 20:17:28 +0100
+ -- Sebastian Harl <sh@tokkee.org>  Sun, 11 Jan 2009 21:36:39 +0100
 
 ncmpc (0.12-1) experimental; urgency=low
 
index 0e277c3d0b3aca1890c2122dde3eee32ed143942..e79bef60d2d8a66d14f2941ca0af747c29264ebb 100644 (file)
@@ -11,7 +11,7 @@ Vcs-Browser: http://git.tokkee.org/?p=pkg-ncmpc.git
 Package: ncmpc
 Architecture: any
 Depends: ${shlibs:Depends}
-Suggests: mpd, python, ruby
+Suggests: mpd, ncmpc-lyrics
 Enhances: mpd
 Provides: mpd-client
 Description: ncurses-based audio player
@@ -28,3 +28,13 @@ Description: ncurses-based audio player
   - customizable key bindings and colors
   - tiny memory footprint, smaller than any other interactive MPD client
 
+Package: ncmpc-lyrics
+Architecture: all
+Depends: ncmpc, python, ruby
+Description: ncurses-based audio player (lyrics plugins)
+ ncmpc is a text-mode client for MPD, the Music Player Daemon. Its goal is to
+ provide a keyboard oriented and consistent interface to MPD, without wasting
+ resources.
+ .
+ This package contains plugins to download lyrics.
+
index 13e0953dc70a04355eeb02f6c1aad6bc88629e69..40eb22713145d0dc0e3c99cd23c44e5451a8e96c 100755 (executable)
@@ -59,7 +59,16 @@ clean:
        
        dh_clean
 
-install: build
+install-indep:
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs -i
+       
+       mkdir -p debian/ncmpc-lyrics/usr/lib/ncmpc/lyrics/
+       cp lyrics/* debian/ncmpc-lyrics/usr/lib/ncmpc/lyrics/
+
+install-arch: build
        dh_testdir
        dh_testroot
        dh_clean -k
@@ -67,16 +76,30 @@ install: build
        
        $(MAKE) install DESTDIR=$(CURDIR)/debian/ncmpc
        
+       rm -rf debian/ncmpc/usr/lib/ncmpc/lyrics/
+       # fail if any of these directories is not empty
+       rmdir debian/ncmpc/usr/lib/ncmpc/
+       rmdir debian/ncmpc/usr/lib/
+       
        mkdir debian/ncmpc/usr/share/doc/ncmpc/examples
        mv debian/ncmpc/usr/share/doc/ncmpc/*.sample \
                debian/ncmpc/usr/share/doc/ncmpc/examples
        mv debian/ncmpc/usr/share/doc/ncmpc/ncmpc.lirc \
                debian/ncmpc/usr/share/doc/ncmpc/examples
 
-binary-indep:
-       # nothing to do here
+binary-indep: install-indep
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs -i
+       dh_installdocs -A -i NEWS README AUTHORS
+       dh_compress -i
+       dh_fixperms -i
+       dh_installdeb -i
+       dh_gencontrol -i
+       dh_md5sums -i
+       dh_builddeb -i
 
-binary-arch: build install
+binary-arch: build install-arch
        dh_testdir
        dh_testroot
        dh_installchangelogs -a
@@ -93,5 +116,5 @@ binary-arch: build install
        dh_builddeb -a
 
 binary: binary-arch binary-indep
-.PHONY: build clean binary-indep binary-arch binary install
+.PHONY: build clean binary-indep binary-arch binary install-indep install-arch