Bug 173818 - [PATCH] astro/wcslib optionsng
Summary: [PATCH] astro/wcslib 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: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 23:30 UTC by Chris Petrik
Modified: 2013-01-08 16:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.46 KB, patch)
2012-11-21 23:30 UTC, Chris Petrik
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Petrik 2012-11-21 23:30:00 UTC
Options NG Changes

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-11-21 23:30:13 UTC
Maintainer of astro/wcslib,

Please note that PR ports/173818 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173818

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-11-21 23:30:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Wesley Shields freebsd_committer freebsd_triage 2012-11-29 16:36:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-01-08 16:31:58 UTC
Author: wxs
Date: Tue Jan  8 16:31:50 2013
New Revision: 310100
URL: http://svnweb.freebsd.org/changeset/ports/310100

Log:
  Trim header.
  Convert to new options.
  
  PR:		ports/173818
  Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com>
  Approved by:	maintainer timeout

Modified:
  head/astro/wcslib/Makefile   (contents, props changed)

Modified: head/astro/wcslib/Makefile
==============================================================================
--- head/astro/wcslib/Makefile	Tue Jan  8 16:24:07 2013	(r310099)
+++ head/astro/wcslib/Makefile	Tue Jan  8 16:31:50 2013	(r310100)
@@ -1,8 +1,4 @@
-# ex:ts=4
-# New ports collection makefile for:	wcslib
-# Date created:							Wed Jul 15 10:09:45 EST 2009
-# Whom:									Tony Maher <tonymaher@optusnet.com.au>
-#
+# Created by: Tony Maher <tonymaher@optusnet.com.au>
 # $FreeBSD$
 
 PORTNAME=		wcslib
@@ -25,20 +21,23 @@ MAN1=			fitshdr.1
 # See makedefs.in which describes why you want to set the extra support.
 # For most users it will not be required.
 
-OPTIONS=		CFITSIO "Add cfitsio support (for tests only)" Off \
-				PGPLOT  "Add pgplot support (for tests only)" Off
+OPTIONS_DEFINE=		CFITSIO PGPLOT
+CFITSIO_DESC=	Add cfitsio support (for tests only)
+PGPLOT_DESC=	Add pgplot support (for tests only)
+
+.include <bsd.port.options.mk>
 
 # The configure script unconditionally searches for the cftisio library
 # and uses it if found.
 
-.if defined(WITH_CFITSIO) || exists(${LOCALBASE}/lib/libcfitsio.so)
+.if ${PORT_OPTIONS:MCFITSIO} || exists(${LOCALBASE}/lib/libcfitsio.so)
 PLIST_SUB+=		HPXCVT=""
 LIB_DEPENDS+=	cfitsio:${PORTSDIR}/astro/cfitsio
 .else
 PLIST_SUB+=		HPXCVT="@comment "
 .endif
 
-.if defined(WITH_PGPLOT)
+.if ${PORT_OPTIONS:MPGPLOT}
 LIB_DEPENDS+=	pgplot.5:${PORTSDIR}/graphics/pgplot
 .endif
 
@@ -47,7 +46,7 @@ post-patch:
 		${WRKSRC}/GNUmakefile
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	(cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGES README COPYING COPYING.LESSER wcslib.pdf ${DOCSDIR})
 	@${MKDIR} ${DOCSDIR}/html
_______________________________________________
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 5 Wesley Shields freebsd_committer freebsd_triage 2013-01-08 16:32:01 UTC
State Changed
From-To: feedback->closed

Committed, with minor changes. Thanks!