Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2012 13:28:15 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309178 - in head/graphics/autoq3d: . files
Message-ID:  <201212181328.qBIDSFPu050606@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Tue Dec 18 13:28:14 2012
New Revision: 309178
URL: http://svnweb.freebsd.org/changeset/ports/309178

Log:
  - USE_DOS2UNIX and remove ^M from patches
  - Use PORTDOCS macro; don't install useless Install.txt
    or redundant license.txt
  - Bump PORTREVISION since installed files have changed
  - Improve COMMENT
  - Simplify do-install target
  - Convert to new options framework
  - Whitespace cleanup
  - Add additional WWW
  - Pass maintainership to submitter
  
  PR:		ports/173537
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/graphics/autoq3d/Makefile   (contents, props changed)
  head/graphics/autoq3d/files/patch-AutoQ3D.pro   (contents, props changed)
  head/graphics/autoq3d/files/patch-src__cmds__cmds.cpp   (contents, props changed)
  head/graphics/autoq3d/files/patch-src__fgui__cadform.cpp   (contents, props changed)
  head/graphics/autoq3d/files/patch-src__fgui__glapparea.cpp   (contents, props changed)
  head/graphics/autoq3d/pkg-descr   (contents, props changed)
  head/graphics/autoq3d/pkg-plist   (contents, props changed)

Modified: head/graphics/autoq3d/Makefile
==============================================================================
--- head/graphics/autoq3d/Makefile	Tue Dec 18 13:26:15 2012	(r309177)
+++ head/graphics/autoq3d/Makefile	Tue Dec 18 13:28:14 2012	(r309178)
@@ -1,36 +1,36 @@
-# New ports collection makefile for:	autoq3d
-# Date created:		28 Jul 2007
-# Whom:                	Yinghong.Liu <relaxbsd@gmail.com>
-#
+# Created by: Yinghong.Liu <relaxbsd@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	autoq3d
-DISTVERSION=	1.40
-PORTREVISION=	2
+PORTVERSION=	1.40
+PORTREVISION=	3
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/AutoQ3D%20${PORTVERSION}
 DISTNAME=	AutoQ3DCommunity${PORTVERSION:C/\./-/}qt4source
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Complete QT quick 3D model editor program
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Qt4 quick 3D model editor
 
 LICENSE=	GPLv2 GPLv3
 LICENSE_COMB=	dual
 
+USE_DOS2UNIX=	yes
 USE_GL=		glu
 USE_ZIP=	yes
 USE_QT4=	corelib gui opengl \
 		moc_build qmake_build
 MAKE_JOBS_SAFE=	yes
 
-DESKTOP_ENTRIES=	"AutoQ3D" \
-			"A complete QT quick 3d model editor program" \
-			"AutoQ3D" \
-			"AutoQ3D" \
-			"Qt;KDE;Graphics;" \
-			"false"
+PORTDOCS=	3DQformat.txt ChangeLog.txt
 
+DESKTOP_ENTRIES="AutoQ3D" \
+		"${COMMENT}" \
+		"AutoQ3D" \
+		"AutoQ3D" \
+		"Qt;KDE;Graphics;" \
+		false
+
+.include <bsd.port.options.mk>
 post-patch:
 .for file in src/main.cpp src/fgui/cadform.cpp src/dialogs/prgsettings.cpp
 	@${REINPLACE_CMD} -e \
@@ -38,20 +38,15 @@ post-patch:
 .endfor
 
 do-configure:
-	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
+	@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS})
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/AutoQ3D ${PREFIX}/bin
-	@${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/*.htm ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/*.qm ${DATADIR}
-	@${MKDIR} ${DATADIR}/images
-	${INSTALL_DATA} ${WRKSRC}/images/*.png ${DATADIR}/images
-	@${MKDIR} ${PREFIX}/share/pixmaps
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images *.htm *.qm" ${DATADIR})
 	${INSTALL_DATA} ${WRKSRC}/AutoQ3D.png ${PREFIX}/share/pixmaps
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/graphics/autoq3d/files/patch-AutoQ3D.pro
==============================================================================
--- head/graphics/autoq3d/files/patch-AutoQ3D.pro	Tue Dec 18 13:26:15 2012	(r309177)
+++ head/graphics/autoq3d/files/patch-AutoQ3D.pro	Tue Dec 18 13:28:14 2012	(r309178)
@@ -1,10 +1,10 @@
---- AutoQ3D.pro~	2012-05-19 22:52:00.000000000 -0300
-+++ AutoQ3D.pro	2012-05-19 22:56:52.000000000 -0300
-@@ -8,6 +8,7 @@
- win32:LIBS+= -L$(QTDIR)/plugins/imageformats -lqjpeg4
- 
- QT +=	opengl
-+LIBS +=	-lGLU
- DEPENDPATH += . \
-               src \
-               src/cmds \
+--- ./AutoQ3D.pro.orig	2012-12-02 18:48:47.000000000 -0500
++++ ./AutoQ3D.pro	2012-12-02 18:48:47.000000000 -0500
+@@ -8,6 +8,7 @@
+ win32:LIBS+= -L$(QTDIR)/plugins/imageformats -lqjpeg4
+ 
+ QT +=	opengl
++LIBS +=	-lGLU
+ DEPENDPATH += . \
+               src \
+               src/cmds \

Modified: head/graphics/autoq3d/files/patch-src__cmds__cmds.cpp
==============================================================================
--- head/graphics/autoq3d/files/patch-src__cmds__cmds.cpp	Tue Dec 18 13:26:15 2012	(r309177)
+++ head/graphics/autoq3d/files/patch-src__cmds__cmds.cpp	Tue Dec 18 13:28:14 2012	(r309178)
@@ -1,15 +1,15 @@
---- src/cmds/cmds.cpp~	2012-05-19 22:44:14.000000000 -0300
-+++ src/cmds/cmds.cpp	2012-05-19 22:44:25.000000000 -0300
-@@ -89,9 +89,9 @@
- 
- 
- 	QPalette newPalette = QPalette();
--	newPalette.setColor(QPalette::Background, QColor::QColor(170,170,255));
--	newPalette.setColor(QPalette::Foreground, QColor::QColor(0,0,0));
--	newPalette.setColor(QPalette::Base, QColor::QColor(170,170,255));
-+	newPalette.setColor(QPalette::Background, QColor(170,170,255));
-+	newPalette.setColor(QPalette::Foreground, QColor(0,0,0));
-+	newPalette.setColor(QPalette::Base, QColor(170,170,255));
- 
- 	setPalette(newPalette);
- 	
+--- ./src/cmds/cmds.cpp.orig	2012-12-02 18:48:47.000000000 -0500
++++ ./src/cmds/cmds.cpp	2012-12-02 18:54:38.000000000 -0500
+@@ -89,9 +89,9 @@
+ 
+ 
+ 	QPalette newPalette = QPalette();
+-	newPalette.setColor(QPalette::Background, QColor::QColor(170,170,255));
+-	newPalette.setColor(QPalette::Foreground, QColor::QColor(0,0,0));
+-	newPalette.setColor(QPalette::Base, QColor::QColor(170,170,255));
++	newPalette.setColor(QPalette::Background, QColor(170,170,255));
++	newPalette.setColor(QPalette::Foreground, QColor(0,0,0));
++	newPalette.setColor(QPalette::Base, QColor(170,170,255));
+ 
+ 	setPalette(newPalette);
+ 	

Modified: head/graphics/autoq3d/files/patch-src__fgui__cadform.cpp
==============================================================================
--- head/graphics/autoq3d/files/patch-src__fgui__cadform.cpp	Tue Dec 18 13:26:15 2012	(r309177)
+++ head/graphics/autoq3d/files/patch-src__fgui__cadform.cpp	Tue Dec 18 13:28:14 2012	(r309178)
@@ -1,24 +1,24 @@
---- src/fgui/cadform.cpp~	2012-05-19 22:45:11.000000000 -0300
-+++ src/fgui/cadform.cpp	2012-05-19 22:46:08.000000000 -0300
-@@ -475,9 +475,9 @@
- 
- 
- 	QPalette newPalette = palette();
--	newPalette.setColor(QPalette::Background, QColor::QColor(170,170,255));
--	newPalette.setColor(QPalette::Foreground, QColor::QColor(0,0,0));
--	newPalette.setColor(QPalette::Base, QColor::QColor(170,170,255));
-+	newPalette.setColor(QPalette::Background, QColor(170,170,255));
-+	newPalette.setColor(QPalette::Foreground, QColor(0,0,0));
-+	newPalette.setColor(QPalette::Base, QColor(170,170,255));
- 
- 
- 
-@@ -800,7 +800,7 @@
- 	w->GLThisArea->cscalari=hcmd->cscalari;
- 	w->GLThisArea->View=View;
- 
--	w->setWindowTitle(QString::QString(tr("ViewPort-%1")).arg(numDoc++));w->setWindowIcon( QPixmap(ProgramPath+"images/document.png") );
-+	w->setWindowTitle(QString(tr("ViewPort-%1")).arg(numDoc++));w->setWindowIcon( QPixmap(ProgramPath+"images/document.png") );
- 	w->show();
- 	QWidgetList windoL=ws->windowList(QWorkspace::CreationOrder);
- 	if ( windoL.count()==1){
+--- ./src/fgui/cadform.cpp.orig	2012-12-02 18:48:47.000000000 -0500
++++ ./src/fgui/cadform.cpp	2012-12-02 18:51:14.000000000 -0500
+@@ -475,9 +475,9 @@
+ 
+ 
+ 	QPalette newPalette = palette();
+-	newPalette.setColor(QPalette::Background, QColor::QColor(170,170,255));
+-	newPalette.setColor(QPalette::Foreground, QColor::QColor(0,0,0));
+-	newPalette.setColor(QPalette::Base, QColor::QColor(170,170,255));
++	newPalette.setColor(QPalette::Background, QColor(170,170,255));
++	newPalette.setColor(QPalette::Foreground, QColor(0,0,0));
++	newPalette.setColor(QPalette::Base, QColor(170,170,255));
+ 
+ 
+ 
+@@ -800,7 +800,7 @@
+ 	w->GLThisArea->cscalari=hcmd->cscalari;
+ 	w->GLThisArea->View=View;
+ 
+-	w->setWindowTitle(QString::QString(tr("ViewPort-%1")).arg(numDoc++));w->setWindowIcon( QPixmap(ProgramPath+"images/document.png") );
++	w->setWindowTitle(QString(tr("ViewPort-%1")).arg(numDoc++));w->setWindowIcon( QPixmap(ProgramPath+"images/document.png") );
+ 	w->show();
+ 	QWidgetList windoL=ws->windowList(QWorkspace::CreationOrder);
+ 	if ( windoL.count()==1){

Modified: head/graphics/autoq3d/files/patch-src__fgui__glapparea.cpp
==============================================================================
--- head/graphics/autoq3d/files/patch-src__fgui__glapparea.cpp	Tue Dec 18 13:26:15 2012	(r309177)
+++ head/graphics/autoq3d/files/patch-src__fgui__glapparea.cpp	Tue Dec 18 13:28:14 2012	(r309178)
@@ -1,11 +1,10 @@
---- src/fgui/glapparea.cpp~	2012-05-19 22:54:35.000000000 -0300
-+++ src/fgui/glapparea.cpp	2012-05-19 22:54:50.000000000 -0300
-@@ -24,6 +24,8 @@
- #include <qtimer.h>
- #include <math.h>
- 
-+#include <GL/glu.h>
-+
- 
- GLAppArea::GLAppArea( QWidget* parent,QStringList* strlista)
-     : QGLWidget( parent)
+--- ./src/fgui/glapparea.cpp.orig	2012-12-02 18:48:47.000000000 -0500
++++ ./src/fgui/glapparea.cpp	2012-12-02 18:58:20.000000000 -0500
+@@ -23,6 +23,7 @@
+ #include <qimage.h>
+ #include <qtimer.h>
+ #include <math.h>
++#include <GL/glu.h>
+ 
+ 
+ GLAppArea::GLAppArea( QWidget* parent,QStringList* strlista)

Modified: head/graphics/autoq3d/pkg-descr
==============================================================================
--- head/graphics/autoq3d/pkg-descr	Tue Dec 18 13:26:15 2012	(r309177)
+++ head/graphics/autoq3d/pkg-descr	Tue Dec 18 13:28:14 2012	(r309178)
@@ -2,3 +2,4 @@ AutoQ3D Community is the open source sof
 this 3D modeling application.
 
 WWW: http://www.autoq3d.com/
+     http://sourceforge.net/projects/autoq3d/

Modified: head/graphics/autoq3d/pkg-plist
==============================================================================
--- head/graphics/autoq3d/pkg-plist	Tue Dec 18 13:26:15 2012	(r309177)
+++ head/graphics/autoq3d/pkg-plist	Tue Dec 18 13:28:14 2012	(r309178)
@@ -52,11 +52,6 @@ bin/AutoQ3D
 %%DATADIR%%/lan_sp.qm
 %%DATADIR%%/qref.htm
 %%DATADIR%%/qref_sp.htm
-%%PORTDOCS%%%%DOCSDIR%%/3DQformat.txt
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.txt
-%%PORTDOCS%%%%DOCSDIR%%/Install.txt
-%%PORTDOCS%%%%DOCSDIR%%/license.txt
 share/pixmaps/AutoQ3D.png
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm %%DATADIR%%/images
 @dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212181328.qBIDSFPu050606>