Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2013 10:47:53 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177794: [PATCH} dns/py-dns: adapt to new options framework and etc.
Message-ID:  <20130412014753.7D6E04E9C7@rolling-vm-freebsd1.home.utahime.org>
Resent-Message-ID: <201304120150.r3C1o1On060726@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177794
>Category:       ports
>Synopsis:       [PATCH} dns/py-dns: adapt to new options framework and etc.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 12 01:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Yasuhiro KIMURA
>Release:        FreeBSD 9.1-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD xxxx 9.1-RELEASE-p2 FreeBSD 9.1-RELEASE-p2 #0 r249030: Sat Apr 6 22:45:59 JST 2013 xxxx amd64


	
>Description:
	- Adapt to new options framework.
	- Add license information.
	- Trim makefile header.
	- Pet portlint

	
>How-To-Repeat:
	
>Fix:

	

--- patch-py-dns begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 315785)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	py-dns
-# Date created:				21 September 2002
-# Whom:					Mark Linimon (linimon@lonesome.com)
-#
+# Created by: Mark Linimon (linimon@lonesome.com)
 # $FreeBSD$
-#
 
 PORTNAME=	dns
 PORTVERSION=	2.3.6
@@ -15,6 +11,11 @@
 MAINTAINER=	rm@FreeBSD.org
 COMMENT=	DNS (Domain Name Service) library for Python
 
+LICENSE=	CNRI
+LICENSE_NAME=	CNRI LICENSE AGREEMENT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 PYDISTUTILS_PKGNAME=	pydns
@@ -22,7 +23,12 @@
 DOCS=		README.txt README-guido.txt
 DOCSDIR=	${PREFIX}/share/doc/py-dns
 
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE=	DOCS
+OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
 post-install:
 	@${MKDIR} ${DOCSDIR}
 .for file in ${DOCS}
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 315785)
+++ pkg-plist	(working copy)
@@ -26,6 +26,6 @@
 %%PYTHON_SITELIBDIR%%/DNS/win32dns.pyc
 %%PYTHON_SITELIBDIR%%/DNS/win32dns.pyo
 @dirrm %%PYTHON_SITELIBDIR%%/DNS
-%%PORTDOCS%%share/doc/py-dns/README.txt
-%%PORTDOCS%%share/doc/py-dns/README-guido.txt
-%%PORTDOCS%%@dirrm share/doc/py-dns
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/README-guido.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- patch-py-dns ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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