From owner-svn-ports-head@freebsd.org Thu Sep 5 10:29:41 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3B2B5E2682; Thu, 5 Sep 2019 10:29:41 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PH4P0pn5z4YFH; Thu, 5 Sep 2019 10:29:41 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F32C02A08; Thu, 5 Sep 2019 10:29:40 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x85ATeYE059610; Thu, 5 Sep 2019 10:29:40 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x85ATeO6059607; Thu, 5 Sep 2019 10:29:40 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201909051029.x85ATeO6059607@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Thu, 5 Sep 2019 10:29:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511170 - in head/cad/k40-whisperer: . files X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/cad/k40-whisperer: . files X-SVN-Commit-Revision: 511170 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2019 10:29:41 -0000 Author: 0mp Date: Thu Sep 5 10:29:39 2019 New Revision: 511170 URL: https://svnweb.freebsd.org/changeset/ports/511170 Log: cad/k40-whisperer: Update to 0.35 Changelog: - http://www.scorchworks.com/K40whisperer/k40whisperer_change_log.html - http://www.scorchworks.com/K40whisperer/k40whisperer.html - Do not set PKGNAMEPREFIX to the Python package name prefix. The software does not care about the underlying Python version and supporting flavors is not worth it in this case. - Mark the port as working with Python 3.7. - Set DESKTOP_ENTRIES, USES=shebangfix, and NO_ARCH. - Put variables in order. - Change the way files are installed so that it is easier to spot a change in pkg-plist in the future. - Fix Python script indentation issues (mixed up tabs and spaces) in post-patch. - Suggest the user to look in the docs directory instead of the data directory for notes about Linux and macOS setups. Modified: head/cad/k40-whisperer/Makefile head/cad/k40-whisperer/distinfo head/cad/k40-whisperer/files/pkg-message.in head/cad/k40-whisperer/pkg-plist Modified: head/cad/k40-whisperer/Makefile ============================================================================== --- head/cad/k40-whisperer/Makefile Thu Sep 5 10:27:42 2019 (r511169) +++ head/cad/k40-whisperer/Makefile Thu Sep 5 10:29:39 2019 (r511170) @@ -1,10 +1,9 @@ # $FreeBSD$ PORTNAME= k40-whisperer -DISTVERSION= 0.19 +DISTVERSION= 0.35 CATEGORIES= cad python MASTER_SITES= http://www.scorchworks.com/K40whisperer/ -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= K40_Whisperer-${DISTVERSION}_src MAINTAINER= 0mp@FreeBSD.org @@ -17,50 +16,46 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lx ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}usb>0:devel/py-usb@${PY_FLAVOR} -USES= python:2.7 zip +USES= python:run,-3.7 shebangfix zip +SHEBANG_FILES= *.py -OPTIONS_DEFINE= DOCS - +NO_ARCH= yes NO_BUILD= yes -WHISPERER_COMMAND= ${PORTNAME} +DESKTOP_ENTRIES= "K40 Whisperer" "${COMMENT}" \ + "${DATADIR}/scorchworks.ico" "${WHISPERER_COMMAND}" \ + "Development;Art;Engineering;VectorGraphics;" false + +PLIST_SUB= WHISPERER_COMMAND=${WHISPERER_COMMAND} SUB_FILES= pkg-message ${WHISPERER_COMMAND} SUB_LIST= PYTHON_CMD=${PYTHON_CMD} WHISPERER_COMMAND=${WHISPERER_COMMAND} -PLIST_SUB= WHISPERER_COMMAND=${WHISPERER_COMMAND} -DATA= bezmisc.py \ - CC.png \ - cspsubdiv.py \ - cubicsuperpath.py \ - down.png \ - dxf.py \ - egv.py \ - emblem64 \ - ffgeom.py \ - g_code_library.py \ - inkex.py \ - interpolate.py \ - k40_whisperer.py \ - left.png \ - LL.png \ - LR.png \ - nano_library.py \ - right.png \ - simplepath.py \ - simplestyle.py \ - simpletransform.py \ - svg_reader.py \ - UL.png \ - up.png \ - UR.png +OPTIONS_DEFINE= DOCS -DOCS= README_Linux.txt \ - README_MacOS.md +DOCS= Change_Log.txt \ + README_Linux.txt \ + README_MacOS.md +NON_DATA_FILES= ${DOCS} \ + ${LICENSE_FILE:S,${WRKSRC}/,,} \ + build_exe.bat \ + py2exe_setup.py \ + requirements.txt +WHISPERER_COMMAND= ${PORTNAME} +post-patch: + # Replace every leading tab with 8 spaces. It is a workaround for + # misindented Python scripts. + @${REINPLACE_CMD} -e 's|^ | |g' \ + -e ':again' \ + -e 's|^\( \)* |\1 |g' \ + -e 't again' \ + ${WRKSRC}/*.py + do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${WHISPERER_COMMAND} ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} - ${INSTALL_DATA} ${DATA:S,^,${WRKSRC}/,} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${DATADIR} "${NON_DATA_FILES:S,^,! -name &,}") @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} Modified: head/cad/k40-whisperer/distinfo ============================================================================== --- head/cad/k40-whisperer/distinfo Thu Sep 5 10:27:42 2019 (r511169) +++ head/cad/k40-whisperer/distinfo Thu Sep 5 10:29:39 2019 (r511170) @@ -1,3 +1,3 @@ -TIMESTAMP = 1527085070 -SHA256 (K40_Whisperer-0.19_src.zip) = c688cf1746aa391b6a9d4cfb3e66c2f183d1f45da88a2770e8ddefac44349193 -SIZE (K40_Whisperer-0.19_src.zip) = 121328 +TIMESTAMP = 1567611773 +SHA256 (K40_Whisperer-0.35_src.zip) = e555dc8de00d88596463d3af61d523b3df3d0beb3385aa38dab2dfbd1cfc1015 +SIZE (K40_Whisperer-0.35_src.zip) = 170723 Modified: head/cad/k40-whisperer/files/pkg-message.in ============================================================================== --- head/cad/k40-whisperer/files/pkg-message.in Thu Sep 5 10:27:42 2019 (r511169) +++ head/cad/k40-whisperer/files/pkg-message.in Thu Sep 5 10:29:39 2019 (r511170) @@ -3,7 +3,7 @@ message: <