Bug 177157 - [PATCH] graphics/meshviewer: Convert to OptionsNG
Summary: [PATCH] graphics/meshviewer: Convert to OptionsNG
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Beech Rintoul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-20 21:00 UTC by nemysis
Modified: 2013-03-21 22:10 UTC (History)
1 user (show)

See Also:


Attachments
meshviewer-0.3.3_4.patch (1.86 KB, patch)
2013-03-20 21:00 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-03-20 21:00:00 UTC
Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-20 21:00:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-21 22:08:58 UTC
Author: beech
Date: Thu Mar 21 22:08:45 2013
New Revision: 314879
URL: http://svnweb.freebsd.org/changeset/ports/314879

Log:
  - Convert to OptionsNG
  - Fix docs
  - Bump portrevision
  
  PR:		ports/177157
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/graphics/meshviewer/Makefile   (contents, props changed)

Modified: head/graphics/meshviewer/Makefile
==============================================================================
--- head/graphics/meshviewer/Makefile	Thu Mar 21 22:07:51 2013	(r314878)
+++ head/graphics/meshviewer/Makefile	Thu Mar 21 22:08:45 2013	(r314879)
@@ -1,12 +1,9 @@
-# Ports collection makefile for:	meshviewer
-# Date created:			Jun 10, 2002
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD$
 
 PORTNAME=	meshviewer
 PORTVERSION=	0.3.3
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	graphics
 MASTER_SITES=	SF/mview/mview/${PORTVERSION}
 DISTNAME=	mview-src-${PORTVERSION}
@@ -14,6 +11,8 @@ DISTNAME=	mview-src-${PORTVERSION}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Mesh Viewer
 
+LICENSE=	GPLv2
+
 WRKSRC=		${WRKDIR}/mview-${PORTVERSION}
 
 USE_GL=		glu
@@ -28,17 +27,36 @@ MAKE_ARGS=	QTDIR="${QT_PREFIX}" CC="${CX
 		LIBPATH="" LIBS_QT4="${LDFLAGS}"
 
 PORTDOCS=	*
-PLIST_FILES=	bin/mview
+
+DOCSRCDIR1=	${WRKSRC}
+DOC_FILES1=	AUTHORS README TODO
+
+DOCSRCDIR2=	${WRKSRC}/Documentation/pics
+DOCSDIR2=	${DOCSDIR}/Documentation/pics
+DOC_FILES2=	*.jpg
+
+DOCSRCDIR3=	${WRKSRC}/Documentation
+DOCSDIR3=	${DOCSDIR}/Documentation
+DOC_FILES3=	*.html *.ico
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+	${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin/${PORTNAME}
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	@(cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${DOCSDIR})
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
+	@${MKDIR} ${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
+	@${MKDIR} ${DOCSDIR3}
+	${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${DOCSDIR3}
 .endif
 
 .include <bsd.port.mk>
+
_______________________________________________
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 Beech Rintoul freebsd_committer freebsd_triage 2013-03-21 22:09:08 UTC
State Changed
From-To: open->closed

Committed, Thanks!