aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-11-05 22:15:17 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-11-05 22:15:17 +0000
commitbeda22fd2375ee292e30f3ba25565dc0630132c0 (patch)
treefd992001d0655cd5076eea76fb8aa647bfdac222
parentef41aff5559f6cdfb8d6c8885e20ae4ea5c34c6e (diff)
move examples folder to /usr/share/pd-moonlib to stop lintian warnings
svn path=/trunk/externals/moonlib/; revision=14279
-rw-r--r--debian/links1
-rw-r--r--debian/patches/install_examples_into_docdir22
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules2
4 files changed, 25 insertions, 1 deletions
diff --git a/debian/links b/debian/links
index 78fa01e..36d181b 100644
--- a/debian/links
+++ b/debian/links
@@ -1,2 +1,3 @@
usr/lib/pd/extra/moonlib/README.txt usr/share/doc/pd-moonlib/README
usr/share/common-licenses/GPL-2 usr/lib/pd/extra/moonlib/LICENSE.txt
+usr/share/pd-moonlib/examples usr/lib/pd/extra/moonlib/examples
diff --git a/debian/patches/install_examples_into_docdir b/debian/patches/install_examples_into_docdir
new file mode 100644
index 0000000..d1ce56b
--- /dev/null
+++ b/debian/patches/install_examples_into_docdir
@@ -0,0 +1,22 @@
+Description: put the 'examples' folder into /usr/share/doc/pd-* so that
+ lintian does not complain about images being in lib directory, then link to
+ it in the library so that the Pd Help Browser can find it.
+Author: Hans-Christoph Steiner <hans@eds.org>
+Forwarded: not-needed
+Reviewed-By: Hans-Christoph Steiner <hans@eds.org>
+Last-Update: <2010-11-05>
+
+--- pd-moonlib-0.2.orig/Makefile
++++ pd-moonlib-0.2/Makefile
+@@ -206,9 +206,9 @@
+
+ install-examples:
+ test -z "$(strip $(EXAMPLES))" || \
+- $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples && \
++ $(INSTALL_DIR) $(DESTDIR)$(prefix)/share/pd-$(LIBRARY_NAME)/examples && \
+ for file in $(EXAMPLES); do \
+- $(INSTALL_DATA) examples/$$file $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples; \
++ $(INSTALL_DATA) examples/$$file $(DESTDIR)$(prefix)/share/pd-$(LIBRARY_NAME)/examples; \
+ done
+
+ install-manual:
diff --git a/debian/patches/series b/debian/patches/series
index 4985374..ba9b233 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
add_required_internal_pd_headers
+install_examples_into_docdir
diff --git a/debian/rules b/debian/rules
index 04d746f..5fe5297 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ PACKAGE = pd-$(LIBRARY_NAME)
pkglibdir = /usr/lib/pd/extra
%:
- dh $@ --buildsystem=makefile
+ dh --with quilt $@ --buildsystem=makefile
override_dh_auto_install:
dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir)