From owner-svn-ports-all@FreeBSD.ORG Wed Oct 30 00:46:06 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A1C24408; Wed, 30 Oct 2013 00:46:06 +0000 (UTC) (envelope-from nemysis@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8EF102447; Wed, 30 Oct 2013 00:46:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9U0k6tZ014030; Wed, 30 Oct 2013 00:46:06 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9U0k50W014023; Wed, 30 Oct 2013 00:46:05 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201310300046.r9U0k50W014023@svn.freebsd.org> From: Rusmir Dusko Date: Wed, 30 Oct 2013 00:46:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332027 - in head/graphics/py-pyglet: . files X-SVN-Group: ports-head 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.14 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: Wed, 30 Oct 2013 00:46:06 -0000 Author: nemysis Date: Wed Oct 30 00:46:05 2013 New Revision: 332027 URL: http://svnweb.freebsd.org/changeset/ports/332027 Log: - Bump PORTREVISION - Add license (BSD) - Use the new format for LIB_DEPENDS - Add dependency for multimedia/avbin - Change DOCS and add DEMOS, add DOCS and EXAMPLES Options - Add DEMOS to default Options - Support STAGEDIR and add OPTIONS_SUB - Remove IGNORE for not i386 - Add demos Astraea and Noisy, add Icons, Desktop entry files - Add pkg-message to display demos usage - Change pkg-plist, add demos PR: ports/182517 Submitted by: nemysis (self) Approved by: pawel / wg (mentors, implicit), maintainer timeout Added: head/graphics/py-pyglet/files/ head/graphics/py-pyglet/files/pkg-message.in (contents, props changed) head/graphics/py-pyglet/files/pyglet-astraea.in (contents, props changed) head/graphics/py-pyglet/files/pyglet-noisy.in (contents, props changed) Modified: head/graphics/py-pyglet/Makefile (contents, props changed) head/graphics/py-pyglet/pkg-plist (contents, props changed) Modified: head/graphics/py-pyglet/Makefile ============================================================================== --- head/graphics/py-pyglet/Makefile Wed Oct 30 00:03:06 2013 (r332026) +++ head/graphics/py-pyglet/Makefile Wed Oct 30 00:46:05 2013 (r332027) @@ -3,6 +3,7 @@ PORTNAME= pyglet PORTVERSION= 1.1.4 +PORTREVISION= 1 CATEGORIES= graphics multimedia x11-toolkits python MASTER_SITES= GOOGLE_CODE PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,8 +11,11 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= amdmi3@FreeBSD.org COMMENT= Cross-platform windowing and multimedia library for Python -LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \ - fontconfig:${PORTSDIR}/x11-fonts/fontconfig +LICENSE= BSD + +LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \ + libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig +RUN_DEPENDS= avbin>=0:${PORTSDIR}/multimedia/avbin USE_PYTHON= yes USE_PYDISTUTILS= yes @@ -19,23 +23,52 @@ USE_GL= gl glu USE_OPENAL= al PORTDOCS= * + +DOCSRCDIR1= ${WRKSRC} +DOC_FILES1= CHANGELOG NOTICE README + +DOCSRCDIR2= ${WRKSRC}/doc +DOCSDIR2= ${DOCSDIR}/doc + PORTEXAMPLES= * -NO_STAGE= yes +OPTIONS_DEFINE= DOCS +OPTIONS_GROUP= DEMOS_EXAMPLES +OPTIONS_GROUP_DEMOS_EXAMPLES= DEMOS EXAMPLES +OPTIONS_DEFAULT= DEMOS +DEMOS_DESC= Install Demos programs, requires EXAMPLES + +OPTIONS_SUB= yes + .include -.if ${ARCH} != "i386" -IGNORE= crashes or doesn't work on !i386 +.if ${PORT_OPTIONS:MDEMOS} && ${PORT_OPTIONS:MEXAMPLES} +SUB_FILES+= pkg-message pyglet-astraea pyglet-noisy +DESKTOP_ENTRIES+="Astraea" "A sprite-based game loosely based on the classic Asteroids" "pyglet-astraea" \ + "pyglet-astraea" "Game;ArcadeGame;" false +DESKTOP_ENTRIES+="Noisy" "Bounces balls around a window and plays noises" "pyglet-noisy" \ + "pyglet-noisy" "Game;ArcadeGame;" false +# Sound Space not works, needs working AVbin .endif +post-patch: + @${FIND} ${WRKSRC} -name '*.py' | ${XARGS} \ + ${REINPLACE_CMD} -e 's|/usr/include|${PREFIX}/include|g' + @${FIND} ${WRKSRC} -name "*.bak" -delete + post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR} -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${EXAMPLESDIR} - cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR2} + @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR2}) + + @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + +.if ${PORT_OPTIONS:MDEMOS} && ${PORT_OPTIONS:MEXAMPLES} + ${INSTALL_SCRIPT} ${WRKDIR}/pyglet-astraea ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_SCRIPT} ${WRKDIR}/pyglet-noisy ${STAGEDIR}${PREFIX}/bin/ + ${LN} -sf ${EXAMPLESDIR}/astraea/res/asteroid2.png ${STAGEDIR}${PREFIX}/share/pixmaps/pyglet-astraea.png + ${LN} -sf ${EXAMPLESDIR}/noisy/ball.png ${STAGEDIR}${PREFIX}/share/pixmaps/pyglet-noisy.png .endif .include Added: head/graphics/py-pyglet/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/py-pyglet/files/pkg-message.in Wed Oct 30 00:46:05 2013 (r332027) @@ -0,0 +1,26 @@ +=============================================================================== + +pyglet has been installed. + +pyglet have more Demos (Games) + +Astraea, Noisy + + +You can use executable + + %%LOCALBASE%%/bin/pyglet-astraea + + %%LOCALBASE%%/bin/pyglet-noisy + + +Or can use desktop files + + %%LOCALBASE%%/share/applications/pyglet-astraea.desktop + + %%LOCALBASE%%/share/applications/pyglet-noisy.desktop + + +Have fun! + +=============================================================================== Added: head/graphics/py-pyglet/files/pyglet-astraea.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/py-pyglet/files/pyglet-astraea.in Wed Oct 30 00:46:05 2013 (r332027) @@ -0,0 +1,7 @@ +#!/bin/sh +# +# # $FreeBSD$ +# + +cd "%%EXAMPLESDIR%%/astraea" +exec /usr/bin/env python ./astraea.py "${@}" Added: head/graphics/py-pyglet/files/pyglet-noisy.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/py-pyglet/files/pyglet-noisy.in Wed Oct 30 00:46:05 2013 (r332027) @@ -0,0 +1,7 @@ +#!/bin/sh +# +# # $FreeBSD$ +# + +cd "%%EXAMPLESDIR%%/noisy" +exec /usr/bin/env python ./noisy.py "${@}" Modified: head/graphics/py-pyglet/pkg-plist ============================================================================== --- head/graphics/py-pyglet/pkg-plist Wed Oct 30 00:03:06 2013 (r332026) +++ head/graphics/py-pyglet/pkg-plist Wed Oct 30 00:46:05 2013 (r332027) @@ -1,3 +1,5 @@ +%%DEMOS%%bin/pyglet-astraea +%%DEMOS%%bin/pyglet-noisy %%PYTHON_SITELIBDIR%%/pyglet/__init__.py %%PYTHON_SITELIBDIR%%/pyglet/__init__.pyc %%PYTHON_SITELIBDIR%%/pyglet/__init__.pyo @@ -295,6 +297,8 @@ %%PYTHON_SITELIBDIR%%/pyglet/window/xlib/xsync.py %%PYTHON_SITELIBDIR%%/pyglet/window/xlib/xsync.pyc %%PYTHON_SITELIBDIR%%/pyglet/window/xlib/xsync.pyo +%%DEMOS%%share/pixmaps/pyglet-astraea.png +%%DEMOS%%share/pixmaps/pyglet-noisy.png @dirrm %%PYTHON_SITELIBDIR%%/pyglet/window/xlib @dirrm %%PYTHON_SITELIBDIR%%/pyglet/window/win32 @dirrm %%PYTHON_SITELIBDIR%%/pyglet/window/carbon