Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jun 2013 16:48:10 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        lichray@gmail.com
Subject:   ports/179412: [PATCH] x11-toolkits/pure-tk: New Uses pure, add license
Message-ID:  <20130607144816.0A8C1963@hub.freebsd.org>
Resent-Message-ID: <201306071450.r57Eo3HD046399@freefall.freebsd.org>

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

>Number:         179412
>Category:       ports
>Synopsis:       [PATCH] x11-toolkits/pure-tk: New Uses pure, add license
>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 Jun 07 14:50:03 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013
>Description:

- Bump portrevision
- Trim master sites
- Add license
- New Uses pure
- Add docs and examples

Port maintainer (lichray@gmail.com) is cc'd.

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

Build log

https://redports.org/buildarchive/20130607022401-26026/

>Fix:

--- pure-tk-0.3_1.patch begins here ---
diff -ruN /usr/ports/x11-toolkits/pure-tk/Makefile ./Makefile
--- /usr/ports/x11-toolkits/pure-tk/Makefile	2013-06-02 18:55:04.000000000 +0200
+++ ./Makefile	2013-06-07 16:44:18.000000000 +0200
@@ -3,13 +3,19 @@
 
 PORTNAME=	pure-tk
 PORTVERSION=	0.3
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
+#MASTER_SITES=	https://cdn.bitbucket.org/purelang/pure-lang/downloads/
+MASTER_SITES=	https://pure-lang.googlecode.com/files/
+DIST_SUBDIR=	pure
 
 MAINTAINER=	lichray@gmail.com
 COMMENT=	Basic interface between Pure and Tcl/Tk
 
-USE_PURE=	yes
-USE_TK=		yes
+LICENSE=	BSD
+
+USES=		pure
+USE_TK=		86+
 SHORT_TCL_VER=	${TCL_VER:S/8./8/}
 
 MAKE_ARGS+=	tclvers=${TCL_VER}
@@ -20,11 +26,26 @@
 
 post-patch:
 	${REINPLACE_CMD} \
- 		-e "s|/usr/include|${LOCALBASE}/include|g" \
- 		-e "s|-ltcl\$$(tclvers)|-ltcl${SHORT_TCL_VER}|" \
- 		-e "s|-ltk\$$(tclvers)|-ltk${SHORT_TCL_VER}|" \
+		-e "s|/usr/include|${LOCALBASE}/include|g" \
+		-e "s|-ltcl\$$(tclvers)|-ltcl${SHORT_TCL_VER}|" \
+		-e "s|-ltk\$$(tclvers)|-ltk${SHORT_TCL_VER}|" \
 		${WRKSRC}/Makefile
 
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/pure/bsd.pure.mk"
-.include <bsd.port.post.mk>
+PORTDOCS=	README
+
+PORTEXAMPLES=	*
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
+.endif
+
+.include <bsd.port.mk>
--- pure-tk-0.3_1.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?20130607144816.0A8C1963>