From owner-svn-ports-all@freebsd.org Tue Feb 27 18:52:24 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A432F3F61A; Tue, 27 Feb 2018 18:52:24 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B129168DB6; Tue, 27 Feb 2018 18:52:23 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 91F5069CC; Tue, 27 Feb 2018 18:52:23 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1RIqNI3042264; Tue, 27 Feb 2018 18:52:23 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1RIqNUZ042258; Tue, 27 Feb 2018 18:52:23 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201802271852.w1RIqNUZ042258@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 27 Feb 2018 18:52:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463151 - in head/audio/musicpc: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/audio/musicpc: . files X-SVN-Commit-Revision: 463151 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 18:52:24 -0000 Author: yuri Date: Tue Feb 27 18:52:22 2018 New Revision: 463151 URL: https://svnweb.freebsd.org/changeset/ports/463151 Log: audio/musicpc: Update to 0.29 Port changes: * Changed to DISTVERSION * Now uses meson instead of configure/make * Added the MANPAGES option, manpage now is built by py-sphinx * Removed targets that are now done by meson PR: 226219 Submitted by: Zsolt Udvari (maintainer) Approved by: tcberner (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D14531 Added: head/audio/musicpc/files/ head/audio/musicpc/files/patch-doc_meson.build (contents, props changed) head/audio/musicpc/files/patch-meson.build (contents, props changed) head/audio/musicpc/files/patch-meson__options.txt (contents, props changed) Modified: head/audio/musicpc/Makefile head/audio/musicpc/distinfo Modified: head/audio/musicpc/Makefile ============================================================================== --- head/audio/musicpc/Makefile Tue Feb 27 18:19:54 2018 (r463150) +++ head/audio/musicpc/Makefile Tue Feb 27 18:52:22 2018 (r463151) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= musicpc -PORTVERSION= 0.28 -PORTREVISION= 1 +DISTVERSION= 0.29 CATEGORIES= audio ipv6 MASTER_SITES= http://www.musicpd.org/download/mpc/0/ DISTNAME= mpc-${PORTVERSION} @@ -16,32 +15,24 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libmpdclient.so:audio/libmpdclient -USES= pkgconfig tar:xz -GNU_CONFIGURE= yes +USES= meson pkgconfig python tar:xz +MESON_ARGS+= --mandir=${MANPREFIX} -PLIST_FILES= bin/mpc man/man1/mpc.1.gz +PLIST_FILES= bin/mpc -PORTDOCS= AUTHORS README NEWS -PORTEXAMPLES= * +OPTIONS_DEFINE= DOCS EXAMPLES MANPAGES ICONV +OPTIONS_DEFAULT= MANPAGES ICONV -OPTIONS_DEFINE= EXAMPLES DOCS ICONV -OPTIONS_DEFAULT= ICONV +MANPAGES_USES= python +MANPAGES_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} +MANPAGES_MESON_TRUE= use_sphinx +MANPAGES_PLIST_FILES= man/man1/mpc.1.gz ICONV_USES= iconv -ICONV_LDFLAGS= -L${LOCALBASE}/lib ${ICONV_LIB} -ICONV_CONFIGURE_ENABLE= iconv +ICONV_LDFLAGS= -L${ICONV_PREFIX}/lib ${ICONV_LIB} +ICONV_MESON_TRUE= iconv -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/mpc ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/mpc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 - -do-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} - -do-install-EXAMPLES-on: - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/mpc-completion.bash \ - ${STAGEDIR}${EXAMPLESDIR} +PORTDOCS= AUTHORS README.rst NEWS +PORTEXAMPLES= * .include Modified: head/audio/musicpc/distinfo ============================================================================== --- head/audio/musicpc/distinfo Tue Feb 27 18:19:54 2018 (r463150) +++ head/audio/musicpc/distinfo Tue Feb 27 18:52:22 2018 (r463151) @@ -1,3 +1,3 @@ -TIMESTAMP = 1471583230 -SHA256 (mpc-0.28.tar.xz) = a4337d06c85dc81a638821d30fce8a137a58d13d510be34a11c1cce95cabc547 -SIZE (mpc-0.28.tar.xz) = 109172 +TIMESTAMP = 1519656312 +SHA256 (mpc-0.29.tar.xz) = 02f1daec902cb48f8cdaa6fe21c7219f6231b091dddbe437a3a4fb12cb07b9d3 +SIZE (mpc-0.29.tar.xz) = 41872 Added: head/audio/musicpc/files/patch-doc_meson.build ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/musicpc/files/patch-doc_meson.build Tue Feb 27 18:52:22 2018 (r463151) @@ -0,0 +1,43 @@ +--- doc/meson.build.orig 2018-02-11 12:01:23 UTC ++++ doc/meson.build +@@ -1,23 +1,27 @@ +-sphinx = find_program('sphinx-build', required:false) + +-if sphinx.found() +- custom_target( +- 'HTML documentation', +- output: 'html', +- input: ['index.rst', 'conf.py'], +- command: [sphinx, '-q', '-b', 'html', '-d', '@OUTDIR@/doctrees', meson.current_source_dir(), '@OUTPUT@'], +- build_by_default: true, +- install: true, +- install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name()), +- ) ++use_sphinx = get_option('use_sphinx') ++ ++if use_sphinx == 'false' ++ use_sphinx = false ++elif use_sphinx == 'true' ++ sphinx = find_program('sphinx-build', required:false) ++ if not sphinx.found() ++ error('can\'t find sphinx') ++ endif ++ use_sphinx = true ++else ++ sphinx = find_program('sphinx-build', required:false) ++ use_sphinx = sphinx.found() ++endif + ++if use_sphinx + custom_target( + 'Manpage documentation', + output: 'man', + input: ['index.rst', 'conf.py'], +- command: [sphinx, '-q', '-b', 'man', '-d', '@OUTDIR@/doctrees', meson.current_source_dir(), '@OUTPUT@'], ++ command: [sphinx, '-q', '-b', 'man', '-d', '@OUTDIR@/doctrees', meson.current_source_dir(), '@OUTPUT@/man1'], + build_by_default: true, + install: true, +- install_dir: join_paths(get_option('datadir'), 'man', 'man1'), ++ install_dir: join_paths(get_option('mandir')), + ) + endif Added: head/audio/musicpc/files/patch-meson.build ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/musicpc/files/patch-meson.build Tue Feb 27 18:52:22 2018 (r463151) @@ -0,0 +1,24 @@ +--- meson.build.orig 2018-02-26 15:35:16 UTC ++++ meson.build +@@ -1,4 +1,4 @@ +-project('mpc', 'c', ++project('musicpc', 'c', + version: '0.29', + default_options: [ + 'c_std=c99', +@@ -113,13 +113,13 @@ executable('mpc', + install: true + ) + +-install_data('AUTHORS', 'COPYING', 'NEWS', 'README.rst', ++install_data('AUTHORS', 'NEWS', 'README.rst', + install_dir : join_paths(get_option('datadir'), 'doc', meson.project_name())) + + install_data( + 'contrib/mpd-m3u-handler.sh', 'contrib/mpd-pls-handler.sh', + 'contrib/mpc-completion.bash', +- install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name(), 'contrib')) ++ install_dir: join_paths(get_option('datadir'), 'examples', meson.project_name() )) + + if get_option('test') + check_dep = dependency('check') Added: head/audio/musicpc/files/patch-meson__options.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/musicpc/files/patch-meson__options.txt Tue Feb 27 18:52:22 2018 (r463151) @@ -0,0 +1,14 @@ +--- meson_options.txt.orig 2018-02-27 07:50:47 UTC ++++ meson_options.txt +@@ -3,6 +3,11 @@ option('iconv', type: 'combo', + value: 'auto', + description: 'Enable iconv() support') + ++option('use_sphinx', type: 'combo', ++ choices: ['true', 'false', 'auto'], ++ value: 'auto', ++ description: 'Enable sphinx support for building documentation') ++ + option('test', type: 'boolean', + value: false, + description: 'Enable unit tests')