Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2014 21:15:20 +0000 (UTC)
From:      Grzegorz Blach <gblach@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r365136 - head/multimedia/mpv
Message-ID:  <201408162115.s7GLFK3G067739@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gblach
Date: Sat Aug 16 21:15:20 2014
New Revision: 365136
URL: http://svnweb.freebsd.org/changeset/ports/365136
QAT: https://qat.redports.org/buildarchive/r365136/

Log:
  - Add option to install zsh completions [1]
  - Convert USE_PYTHON_BUILD=yes to USES=python:build
  - Bump PORTREVISION
  
  PR:		192702 [1]
  Submitted by:	Jan Beich (jbeich <at> vfemail <dot> net) [1]

Modified:
  head/multimedia/mpv/Makefile
  head/multimedia/mpv/pkg-plist

Modified: head/multimedia/mpv/Makefile
==============================================================================
--- head/multimedia/mpv/Makefile	Sat Aug 16 21:14:54 2014	(r365135)
+++ head/multimedia/mpv/Makefile	Sat Aug 16 21:15:20 2014	(r365136)
@@ -3,6 +3,7 @@
 
 PORTNAME=	mpv
 PORTVERSION=	0.5.0
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	multimedia audio
 MASTER_SITES=	GH:0 GHC:0 http://ftp.waf.io/pub/release/:1 \
@@ -28,8 +29,7 @@ GH_COMMIT=	88f247c
 
 WAF_VERSION=	1.7.16
 
-USES=		compiler:c11 desktop-file-utils iconv lua pkgconfig
-USE_PYTHON_BUILD=	yes
+USES=		compiler:c11 desktop-file-utils iconv lua pkgconfig python:build
 USE_XORG=	x11 xv xxf86vm
 USE_LDCONFIG=	yes
 INSTALLS_ICONS=	yes
@@ -47,11 +47,12 @@ CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		--disable-portaudio \
 		--disable-pdf
 
-OPTIONS_DEFINE=		BS2B ENCA LADSPA LCMS2 LIBGUESS LIRC
+OPTIONS_DEFINE=		BS2B ENCA LADSPA LCMS2 LIBGUESS LIRC ZSH
 OPTIONS_GROUP=		IN VO AO
 OPTIONS_GROUP_IN=	CDIO LIBBLURAY V4L QUVI SMB
 OPTIONS_GROUP_VO=	CACA OPENGL VAAPI VDPAU XINERAMA
 OPTIONS_GROUP_AO=	JACK PULSEAUDIO
+OPTIONS_SUB=		yes
 
 BS2B_DESC=	Enable Bauer Stereophonic-to-Binaural DSP support
 ENCA_DESC=	Enable encoding detection support
@@ -79,6 +80,10 @@ LIBGUESS_CONFIGURE_ENABLE=	libguess
 LIRC_LIB_DEPENDS=		liblirc_client.so:${PORTSDIR}/comms/lirc
 LIRC_CONFIGURE_ENABLE=		lirc
 
+ZSH_USES=			perl5
+ZSH_USE=			PERL5=build
+ZSH_CONFIGURE_ENABLE=		zsh-comp
+
 CDIO_LIB_DEPENDS=		libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-paranoia
 CDIO_CONFIGURE_ENABLE=		cdda
 
@@ -125,6 +130,7 @@ post-extract:
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/pkgconfig/mpv.pc|data/pkgconfig/mpv.pc|g' \
+		-e 's|/zsh/vendor-completions|/zsh/site-functions|' \
 		${WRKSRC}/wscript_build.py
 	@${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | ${XARGS} ${REINPLACE_CMD} \
 		-e 's|/usr/local|${PREFIX}|g'

Modified: head/multimedia/mpv/pkg-plist
==============================================================================
--- head/multimedia/mpv/pkg-plist	Sat Aug 16 21:14:54 2014	(r365135)
+++ head/multimedia/mpv/pkg-plist	Sat Aug 16 21:15:20 2014	(r365136)
@@ -12,5 +12,8 @@ share/applications/mpv.desktop
 share/icons/hicolor/16x16/apps/mpv.png
 share/icons/hicolor/32x32/apps/mpv.png
 share/icons/hicolor/64x64/apps/mpv.png
+%%ZSH%%share/zsh/site-functions/_mpv
+%%ZSH%%@dirrmtry share/zsh/site-functions
+%%ZSH%%@dirrmtry share/zsh
 @dirrm include/mpv
 @dirrmtry etc/mpv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408162115.s7GLFK3G067739>