From owner-svn-ports-head@freebsd.org Thu Jan 7 14:06:10 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B1E6A66341; Thu, 7 Jan 2016 14:06:10 +0000 (UTC) (envelope-from amdmi3@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 mx1.freebsd.org (Postfix) with ESMTPS id AE6A510A4; Thu, 7 Jan 2016 14:06:09 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u07E68Vu012465; Thu, 7 Jan 2016 14:06:08 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u07E68KP012464; Thu, 7 Jan 2016 14:06:08 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201601071406.u07E68KP012464@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 7 Jan 2016 14:06:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405437 - head/audio/py-mpd2 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 14:06:10 -0000 Author: amdmi3 Date: Thu Jan 7 14:06:08 2016 New Revision: 405437 URL: https://svnweb.freebsd.org/changeset/ports/405437 Log: - Clarify LICENSE - Add LICENSE_FILE - Switch to options helpers - Simplify installation Modified: head/audio/py-mpd2/Makefile Modified: head/audio/py-mpd2/Makefile ============================================================================== --- head/audio/py-mpd2/Makefile Thu Jan 7 13:17:46 2016 (r405436) +++ head/audio/py-mpd2/Makefile Thu Jan 7 14:06:08 2016 (r405437) @@ -10,7 +10,8 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Fork of the Python MPD client library -LICENSE= LGPL3 +LICENSE= LGPL3 # or later +LICENSE_FILE= ${WRKSRC}/LICENSE.txt USE_GITHUB= yes GH_ACCOUNT= Mic92 @@ -22,37 +23,23 @@ USE_PYTHON= autoplist concurrent distuti NO_ARCH= yes -OPTIONS_DEFINE= DOCS EXAMPLES - DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} -PORTDOCS_1= commands_header.txt index.rst changes.rst -PORTDOCS_2= topics/advanced.rst topics/commands.rst \ - topics/getting-started.rst topics/logging.rst -PORTDOCS_3= generate_command_reference.py -PORTDOCS= ${PORTDOCS_1} ${PORTDOCS_2} ${PORTDOCS_3} +PORTDOCS= * EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} -PORTEXAMPLES_1= errorhandling.py helloworld.py idle.py locking.py logger.py \ - multitags.py randomqueue.py stats.py stickers.py -PORTEXAMPLES_2= summary.txt -PORTEXAMPLES= ${PORTEXAMPLES_1} ${PORTEXAMPLES_2} - -post-install: - ${MKDIR} ${STAGEDIR}${DOCSDIR}/topics -.for f in ${PORTDOCS_1} - ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR} -.endfor -.for f in ${PORTDOCS_2} - ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}/topics -.endfor -.for f in ${PORTDOCS_3} - ${INSTALL_SCRIPT} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR} -.endfor - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} -.for f in ${PORTEXAMPLES_1} - ${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR} -.endfor -.for f in ${PORTEXAMPLES_2} - ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR} -.endfor +PORTEXAMPLES= * + +OPTIONS_DEFINE= DOCS EXAMPLES + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR}/topics + ${INSTALL_DATA} ${WRKSRC}/doc/commands_header.txt ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/doc/*.rst ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/doc/topics/*.rst ${STAGEDIR}${DOCSDIR}/topics/ + ${INSTALL_SCRIPT} ${WRKSRC}/doc/generate_command_reference.py ${STAGEDIR}${DOCSDIR}/ + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py ${STAGEDIR}${EXAMPLESDIR}/ + ${INSTALL_DATA} ${WRKSRC}/examples/summary.txt ${STAGEDIR}${EXAMPLESDIR}/ .include