Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2013 01:01:50 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/176976: [PATCH] graphics/skencil: OptionsNG, license, take maintainership
Message-ID:  <20130315000154.34A08679@hub.freebsd.org>
Resent-Message-ID: <201303150010.r2F0A0B2089081@freefall.freebsd.org>

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

>Number:         176976
>Category:       ports
>Synopsis:       [PATCH] graphics/skencil: OptionsNG, license, take maintainership
>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:   Fri Mar 15 00:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10
>Description:

Makefile changed:
+LICENSE=	LGPL20
+PORTDOCS=	README
+.include <bsd.port.options.mk>

Changed and refined:
 post-install:
 pkg-plist <-- no more PORTDOCS here

- Take maintainership

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:

portlint -A
looks usual.

port test: clean

>Fix:

--- skencil-1.0.a784.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/skencil/Makefile ./Makefile
--- /usr/ports/graphics/skencil/Makefile	2013-01-14 17:57:13.000000000 +0100
+++ ./Makefile	2013-03-15 00:57:22.000000000 +0100
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	skencil
-# Date created:		04 November 1998
-# Whom:			Thomas Gellekum <tg@FreeBSD.org>
-#
+# Created by: Thomas Gellekum <tg@FreeBSD.org>
 # $FreeBSD: head/graphics/skencil/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	skencil
 PORTVERSION=	1.0.a784
@@ -11,8 +7,10 @@
 MASTER_SITES=	GOOGLE_CODE
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/.a/alpha_rev/}
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	An interactive drawing program
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Interactive drawing program
+
+LICENSE=	LGPL20
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging \
@@ -37,7 +35,9 @@
 CFLAGS+=	-I${TK_INCLUDEDIR} -I${LOCALBASE}/include \
 		-L${LOCALBASE}/lib
 
-.include <bsd.port.pre.mk>
+PORTDOCS=	README
+
+.include <bsd.port.options.mk>
 
 post-patch:
 	 @${REINPLACE_CMD} -e \
@@ -49,9 +49,9 @@
 		 s|/usr/share|${PREFIX}/share|g" ${WRKSRC}/setup.py
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/graphics/skencil/pkg-plist ./pkg-plist
--- /usr/ports/graphics/skencil/pkg-plist	2013-01-14 17:57:13.000000000 +0100
+++ ./pkg-plist	2013-03-15 00:45:18.000000000 +0100
@@ -653,9 +653,9 @@
 %%PYTHON_SITELIBDIR%%/skencil/__init__.pyc
 %%PYTHON_SITELIBDIR%%/skencil/__init__.pyo
 share/applications/skencil.desktop
-%%PORTDOCS%%%%DOCSDIR%%/README
 share/pixmaps/skencil.png
 share/pixmaps/skencil.xpm
+@dirrmtry share/applications
 @dirrm %%PYTHON_SITELIBDIR%%/skencil/Sketch/UI
 @dirrm %%PYTHON_SITELIBDIR%%/skencil/Sketch/Scripting
 @dirrm %%PYTHON_SITELIBDIR%%/skencil/Sketch/Modules
@@ -697,5 +697,5 @@
 @dirrm %%PYTHON_SITELIBDIR%%/skencil/Plugins/Filters
 @dirrm %%PYTHON_SITELIBDIR%%/skencil/Plugins
 @dirrm %%PYTHON_SITELIBDIR%%/skencil
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrmtry share/applications
+@dirrmtry %%PYTHON_SITELIBDIR%%
+@dirrmtry %%PYTHON_LIBDIR%%
--- skencil-1.0.a784.patch ends here ---

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



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