Bug 178593 - graphics/quat: Update MASTER_SITES
Summary: graphics/quat: Update MASTER_SITES
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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-13 19:10 UTC by tkato432
Modified: 2013-05-21 07:00 UTC (History)
0 users

See Also:


Attachments
file.diff (3.59 KB, patch)
2013-05-13 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-05-13 18:55:12 UTC
>Number:         178593
>Category:       ports
>Synopsis:       graphics/quat: Update MASTER_SITES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 13 18:10:07 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support PLIST_FILES

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/quat/Makefile graphics/quat/Makefile
--- /usr/ports/graphics/quat/Makefile	2012-11-08 09:37:07.000000000 +0900
+++ graphics/quat/Makefile	2013-05-14 00:00:45.000000000 +0900
@@ -1,46 +1,52 @@
-# New ports collection makefile for:	quat
-# Date created:				26 Aug 2002
-# Whom:					David Yeske <dyeske@gmail.com>
-#
+# Created by: David Yeske <dyeske@gmail.com>
 # $FreeBSD: head/graphics/quat/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	quat
 PORTVERSION=	1.20
 CATEGORIES=	graphics
-MASTER_SITES=   http://www.physcip.uni-stuttgart.de/phy11733/download/
+#MASTER_SITES=	http://www.physcip.uni-stuttgart.de/phy11733/download/
+MASTER_SITES=	http://www.sourcefiles.org/Graphics/Fractals/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A Three-dimensional fractal creator (command line only)
+COMMENT=	Three-dimensional fractal creator (command line only)
+
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	OPTIMIZED_CFLAGS DOCS
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-gui \
 		--datadir=${PREFIX}/share/doc
+MAKE_JOBS_SAFE=	yes
 
-.if defined(WITH_OPTIMIZED_CFLAGS)
-CFLAGS+=	-O3 -ffast-math
-.endif
+PORTDOCS=	*
+PLIST_FILES=	bin/quat-txt
+
+.include <bsd.port.options.mk>
 
-pre-everything::
-.if !defined(WITH_OPTIMIZED_CFLAGS)
-	@${ECHO_MSG} "You can enable additional compilation optimizations"
-	@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
+.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
+CFLAGS+=	-O3 -ffast-math
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} -E -e 's,-(march=pentium|O3|ffast-math),,g' \
+	@${REINPLACE_CMD} -E -e \
+		's,-(march=pentium|O3|ffast-math),,g' \
 		${WRKSRC}/configure
-	@${REINPLACE_CMD} -E -e 's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
+	@${REINPLACE_CMD} -E -e \
+		's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
 		${WRKSRC}/kernel/Makefile.in
 # disable data file installation since distfile does not do
 # The Right Thing(TM)
 	@${REINPLACE_CMD} -E -e \
-		's|^(install-data-am:).*$$|\1|' \
-		${WRKSRC}/Makefile.in
-.if defined(NOPORTDOCS)
-	@${REINPLACE_CMD} -E -e \
-		's|^(SUBDIRS.*)doc|\1|' \
+		's|^(install-data-am:).*$$|\1| ; \
+		 s|^(SUBDIRS.*)doc|\1|' \
 		${WRKSRC}/Makefile.in
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	@(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
+		${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/quat/pkg-plist graphics/quat/pkg-plist
--- /usr/ports/graphics/quat/pkg-plist	2012-11-08 09:37:07.000000000 +0900
+++ graphics/quat/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,27 +0,0 @@
-bin/quat-txt
-%%PORTDOCS%%share/doc/quat/Dendr_st.jpg
-%%PORTDOCS%%share/doc/quat/ce.png
-%%PORTDOCS%%share/doc/quat/chart_de.png
-%%PORTDOCS%%share/doc/quat/chart_us.png
-%%PORTDOCS%%share/doc/quat/ex_1.jpg
-%%PORTDOCS%%share/doc/quat/ex_2.jpg
-%%PORTDOCS%%share/doc/quat/ex_3.jpg
-%%PORTDOCS%%share/doc/quat/gpl.html
-%%PORTDOCS%%share/doc/quat/ie.png
-%%PORTDOCS%%share/doc/quat/oe.png
-%%PORTDOCS%%share/doc/quat/ote.png
-%%PORTDOCS%%share/doc/quat/quat-de-1.html
-%%PORTDOCS%%share/doc/quat/quat-de-2.html
-%%PORTDOCS%%share/doc/quat/quat-de-3.html
-%%PORTDOCS%%share/doc/quat/quat-de-4.html
-%%PORTDOCS%%share/doc/quat/quat-de-5.html
-%%PORTDOCS%%share/doc/quat/quat-de.html
-%%PORTDOCS%%share/doc/quat/quat-us-1.html
-%%PORTDOCS%%share/doc/quat/quat-us-2.html
-%%PORTDOCS%%share/doc/quat/quat-us-3.html
-%%PORTDOCS%%share/doc/quat/quat-us-4.html
-%%PORTDOCS%%share/doc/quat/quat-us-5.html
-%%PORTDOCS%%share/doc/quat/quat-us.html
-%%PORTDOCS%%share/doc/quat/quat.png
-%%PORTDOCS%%share/doc/quat/ve.png
-%%PORTDOCS%%@dirrm share/doc/quat
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-ports-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"
Comment 1 tkato432 2013-05-13 19:10:07 UTC
- Update MASTER_SITES
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support PLIST_FILES
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-13 19:12:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-05-21 06:51:15 UTC
Author: miwi
Date: Tue May 21 05:51:07 2013
New Revision: 318643
URL: http://svnweb.freebsd.org/changeset/ports/318643

Log:
  - Update MASTER_SITES
  - Add LICENSE
  - Add MAKE_JOBS_SAFE
  - Support PLIST_FILES
  - Trim Header
  
  PR:		178593
  Submitted by:	Ports Fury

Modified:
  head/graphics/quat/Makefile   (contents, props changed)
  head/graphics/quat/pkg-plist   (contents, props changed)

Modified: head/graphics/quat/Makefile
==============================================================================
--- head/graphics/quat/Makefile	Tue May 21 05:47:45 2013	(r318642)
+++ head/graphics/quat/Makefile	Tue May 21 05:51:07 2013	(r318643)
@@ -1,46 +1,52 @@
-# New ports collection makefile for:	quat
-# Date created:				26 Aug 2002
-# Whom:					David Yeske <dyeske@gmail.com>
-#
+# Created by: David Yeske <dyeske@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	quat
 PORTVERSION=	1.20
 CATEGORIES=	graphics
-MASTER_SITES=   http://www.physcip.uni-stuttgart.de/phy11733/download/
+#MASTER_SITES=	http://www.physcip.uni-stuttgart.de/phy11733/download/
+MASTER_SITES=	http://www.sourcefiles.org/Graphics/Fractals/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A Three-dimensional fractal creator (command line only)
+COMMENT=	Three-dimensional fractal creator (command line only)
+
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	OPTIMIZED_CFLAGS DOCS
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-gui \
 		--datadir=${PREFIX}/share/doc
+MAKE_JOBS_SAFE=	yes
 
-.if defined(WITH_OPTIMIZED_CFLAGS)
-CFLAGS+=	-O3 -ffast-math
-.endif
+PORTDOCS=	*
+PLIST_FILES=	bin/quat-txt
+
+.include <bsd.port.options.mk>
 
-pre-everything::
-.if !defined(WITH_OPTIMIZED_CFLAGS)
-	@${ECHO_MSG} "You can enable additional compilation optimizations"
-	@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
+.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
+CFLAGS+=	-O3 -ffast-math
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} -E -e 's,-(march=pentium|O3|ffast-math),,g' \
+	@${REINPLACE_CMD} -E -e \
+		's,-(march=pentium|O3|ffast-math),,g' \
 		${WRKSRC}/configure
-	@${REINPLACE_CMD} -E -e 's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
+	@${REINPLACE_CMD} -E -e \
+		's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
 		${WRKSRC}/kernel/Makefile.in
 # disable data file installation since distfile does not do
 # The Right Thing(TM)
 	@${REINPLACE_CMD} -E -e \
-		's|^(install-data-am:).*$$|\1|' \
-		${WRKSRC}/Makefile.in
-.if defined(NOPORTDOCS)
-	@${REINPLACE_CMD} -E -e \
-		's|^(SUBDIRS.*)doc|\1|' \
+		's|^(install-data-am:).*$$|\1| ; \
+		 s|^(SUBDIRS.*)doc|\1|' \
 		${WRKSRC}/Makefile.in
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	@(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
+		${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
 .endif
 
 .include <bsd.port.mk>

Modified: head/graphics/quat/pkg-plist
==============================================================================
--- head/graphics/quat/pkg-plist	Tue May 21 05:47:45 2013	(r318642)
+++ head/graphics/quat/pkg-plist	Tue May 21 05:51:07 2013	(r318643)
@@ -1,27 +0,0 @@
-bin/quat-txt
-%%PORTDOCS%%share/doc/quat/Dendr_st.jpg
-%%PORTDOCS%%share/doc/quat/ce.png
-%%PORTDOCS%%share/doc/quat/chart_de.png
-%%PORTDOCS%%share/doc/quat/chart_us.png
-%%PORTDOCS%%share/doc/quat/ex_1.jpg
-%%PORTDOCS%%share/doc/quat/ex_2.jpg
-%%PORTDOCS%%share/doc/quat/ex_3.jpg
-%%PORTDOCS%%share/doc/quat/gpl.html
-%%PORTDOCS%%share/doc/quat/ie.png
-%%PORTDOCS%%share/doc/quat/oe.png
-%%PORTDOCS%%share/doc/quat/ote.png
-%%PORTDOCS%%share/doc/quat/quat-de-1.html
-%%PORTDOCS%%share/doc/quat/quat-de-2.html
-%%PORTDOCS%%share/doc/quat/quat-de-3.html
-%%PORTDOCS%%share/doc/quat/quat-de-4.html
-%%PORTDOCS%%share/doc/quat/quat-de-5.html
-%%PORTDOCS%%share/doc/quat/quat-de.html
-%%PORTDOCS%%share/doc/quat/quat-us-1.html
-%%PORTDOCS%%share/doc/quat/quat-us-2.html
-%%PORTDOCS%%share/doc/quat/quat-us-3.html
-%%PORTDOCS%%share/doc/quat/quat-us-4.html
-%%PORTDOCS%%share/doc/quat/quat-us-5.html
-%%PORTDOCS%%share/doc/quat/quat-us.html
-%%PORTDOCS%%share/doc/quat/quat.png
-%%PORTDOCS%%share/doc/quat/ve.png
-%%PORTDOCS%%@dirrm share/doc/quat
_______________________________________________
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 4 Martin Wilke freebsd_committer freebsd_triage 2013-05-21 06:51:23 UTC
State Changed
From-To: open->closed

Committed. Thanks!