Bug 185638 - [maintainer update] ChipmunkPhysics 6.2.0 => 6.2.1 bump (plus some other changes)
[maintainer update] ChipmunkPhysics 6.2.0 => 6.2.1 bump (plus some other chan...
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Guido Falsi
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-10 13:30 UTC by ports
Modified: 2014-01-11 00:30 UTC (History)
0 users

See Also:


Attachments
file.diff (2.24 KB, patch)
2014-01-10 13:30 UTC, ports
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ports 2014-01-10 13:30:00 UTC
Bump to 6.2.1.

Also added three options: DEMOS, EXAMPLES, DOCS.
`DEMOS` has two dependencies, GLFW and GLEW.

Fix: A patch file is attached.

Patch attached with submission follows:
How-To-Repeat: n/a
Comment 1 Guido Falsi freebsd_committer 2014-01-10 23:28:59 UTC
Responsible Changed
From-To: freebsd-ports-bugs->madpilot

I'll take it.
Comment 2 dfilter freebsd_committer 2014-01-11 00:23:02 UTC
Author: madpilot
Date: Sat Jan 11 00:22:54 2014
New Revision: 339393
URL: http://svnweb.freebsd.org/changeset/ports/339393

Log:
  - Update to 6.2.1
  
  PR:		ports/185638
  Submitted by:	Tim Cas <ports@stdrand.com> (maintainer)

Modified:
  head/devel/ChipmunkPhysics/Makefile
  head/devel/ChipmunkPhysics/distinfo
  head/devel/ChipmunkPhysics/pkg-plist

Modified: head/devel/ChipmunkPhysics/Makefile
==============================================================================
--- head/devel/ChipmunkPhysics/Makefile	Fri Jan 10 23:56:02 2014	(r339392)
+++ head/devel/ChipmunkPhysics/Makefile	Sat Jan 11 00:22:54 2014	(r339393)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	ChipmunkPhysics
-PORTVERSION=	6.2.0
+PORTVERSION=	6.2.1
 CATEGORIES=	devel
 MASTER_SITES=	http://chipmunk-physics.net/release/Chipmunk-6.x/ \
 		http://files.slembcke.net/chipmunk/release/Chipmunk-6.x/ \
@@ -16,8 +16,40 @@ COMMENT=	2D physics engine written in C
 LICENSE=	MIT
 
 USES=		cmake
+USE_LDCONFIG=	yes
+PLIST_SUB=	VERSION=${PORTVERSION}
+
+OPTIONS_DEFINE=	DOCS EXAMPLES DEMOS
+DEMOS_DESC=	Install the demo program (requires GLFW and GLEW)
+
+PORTDOCS=	*
+PORTEXAMPLES=	*.c *.h
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDEMOS}
+USE_GL=		glew
+LIB_DEPENDS+=	libglfw.so:${PORTSDIR}/graphics/glfw
+PLIST_SUB+=	DEMOS=""
+.else
 CMAKE_ARGS=	-DBUILD_DEMOS=OFF
+PLIST_SUB+=	DEMOS="@comment "
+.endif
 
-USE_LDCONFIG=	yes
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "README.textile VERSION.txt" ${STAGEDIR}${DOCSDIR})
+	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC}/Demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "-name *\.c -or -name *\.h")
+.endif
+
+.if ${PORT_OPTIONS:MDEMOS}
+	${INSTALL_PROGRAM} ${WRKSRC}/Demo/chipmunk_demos ${STAGEDIR}${PREFIX}/bin
+.endif
 
 .include <bsd.port.mk>

Modified: head/devel/ChipmunkPhysics/distinfo
==============================================================================
--- head/devel/ChipmunkPhysics/distinfo	Fri Jan 10 23:56:02 2014	(r339392)
+++ head/devel/ChipmunkPhysics/distinfo	Sat Jan 11 00:22:54 2014	(r339393)
@@ -1,2 +1,2 @@
-SHA256 (Chipmunk-6.2.0.tgz) = 75fd4098b98dd23e5c1f78a1c9e3080768fb6256143e261638a624163cde5af8
-SIZE (Chipmunk-6.2.0.tgz) = 1071081
+SHA256 (Chipmunk-6.2.1.tgz) = 83a47da80c506541c00e1919c0dc83e5f94d13f6534ae15ad663359c171bc7aa
+SIZE (Chipmunk-6.2.1.tgz) = 1076190

Modified: head/devel/ChipmunkPhysics/pkg-plist
==============================================================================
--- head/devel/ChipmunkPhysics/pkg-plist	Fri Jan 10 23:56:02 2014	(r339392)
+++ head/devel/ChipmunkPhysics/pkg-plist	Sat Jan 11 00:22:54 2014	(r339393)
@@ -1,4 +1,5 @@
-lib/libchipmunk.so.6.2.0
+%%DEMOS%%bin/chipmunk_demos
+lib/libchipmunk.so.%%VERSION%%
 lib/libchipmunk.so
 lib/libchipmunk.a
 include/chipmunk/cpVect.h
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Guido Falsi freebsd_committer 2014-01-11 00:23:04 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!