[SCM] vlc/master: Build zsh completion

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Sat Apr 25 10:06:02 UTC 2015


The following commit has been merged in the master branch:
commit f837c76b40e5663aa212578b1353542b44f49e3f
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Sun Jan 11 00:13:56 2015 +0100

    Build zsh completion
    
    Closes: #316357

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..bff0193
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+_extras/analyser/vlc
+_extras/analyser/zsh_gen
diff --git a/debian/control b/debian/control
index f13ff73..c81ae49 100644
--- a/debian/control
+++ b/debian/control
@@ -114,7 +114,8 @@ Build-Depends: autopoint,
                lua5.2,
                oss4-dev [kfreebsd-any],
                pkg-config,
-               zlib1g-dev
+               zlib1g-dev,
+               zsh
 Standards-Version: 3.9.6
 Homepage: http://www.videolan.org/vlc/
 Vcs-Git: git://anonscm.debian.org/pkg-multimedia/vlc.git
diff --git a/debian/rules b/debian/rules
index c226ea4..4426454 100755
--- a/debian/rules
+++ b/debian/rules
@@ -266,6 +266,14 @@ override_dh_auto_clean:
 override_dh_auto_configure:
 	dh_auto_configure -- $(confflags)
 
+override_dh_auto_build:
+	dh_auto_build
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+	# Build zsh completion
+	BUILDDIR=$(CURDIR) \
+	cd extras/analyser && ./zsh_completion.sh
+endif
+
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
@@ -308,6 +316,8 @@ ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
 		fi; \
 	done; \
 	if test "$$BORKED" = yes; then exit 1; fi
+	# Install zsh completion
+	dh_install -pvlc-nox extras/analyser/_vlc usr/share/zsh/vendor-completions
 endif
 	$(if $(shell dpkg-vendor --is Ubuntu && echo true),dh_install -pvlc-nox debian/source_vlc.py usr/share/apport/package-hooks/)
 	dh_buildinfo -p vlc-nox

-- 
VLC media player packaging



More information about the pkg-multimedia-commits mailing list