From owner-svn-ports-head@freebsd.org Sat Sep 21 14:44:43 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 8756F125EF8; Sat, 21 Sep 2019 14:44:43 +0000 (UTC) (envelope-from yuri@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 46bCzH2Y6Xz4ZyZ; Sat, 21 Sep 2019 14:44:43 +0000 (UTC) (envelope-from yuri@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 3BCA8FBCC; Sat, 21 Sep 2019 14:44:43 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8LEihR3028573; Sat, 21 Sep 2019 14:44:43 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8LEiguC028570; Sat, 21 Sep 2019 14:44:42 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201909211444.x8LEiguC028570@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 21 Sep 2019 14:44:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512502 - in head/graphics: . nanosvg X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/graphics: . nanosvg X-SVN-Commit-Revision: 512502 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: Sat, 21 Sep 2019 14:44:43 -0000 Author: yuri Date: Sat Sep 21 14:44:42 2019 New Revision: 512502 URL: https://svnweb.freebsd.org/changeset/ports/512502 Log: New port: graphics/nanosvg: Simple C++ header-only SVG parser Added: head/graphics/nanosvg/ head/graphics/nanosvg/Makefile (contents, props changed) head/graphics/nanosvg/distinfo (contents, props changed) head/graphics/nanosvg/pkg-descr (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Sat Sep 21 14:43:07 2019 (r512501) +++ head/graphics/Makefile Sat Sep 21 14:44:42 2019 (r512502) @@ -572,6 +572,7 @@ SUBDIR += mxp SUBDIR += mypaint SUBDIR += mypaint-brushes + SUBDIR += nanosvg SUBDIR += nathive SUBDIR += netpbm SUBDIR += nip2 Added: head/graphics/nanosvg/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/nanosvg/Makefile Sat Sep 21 14:44:42 2019 (r512502) @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= nanosvg +DISTVERSION= g20190422 +CATEGORIES= graphics + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Simple C++ header-only SVG parser + +LICENSE= ZLIB +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USE_GITHUB= yes +GH_ACCOUNT= memononen +GH_TAGNAME= 25241c5 + +NO_BUILD= yes +NO_ARCH= yes + +PLIST_FILES= include/nanosvg.h include/nanosvgrast.h + +do-install: + ${INSTALL_DATA} ${WRKSRC}/src/nanosvg.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/src/nanosvgrast.h ${STAGEDIR}${PREFIX}/include + +.include Added: head/graphics/nanosvg/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/nanosvg/distinfo Sat Sep 21 14:44:42 2019 (r512502) @@ -0,0 +1,3 @@ +TIMESTAMP = 1569076700 +SHA256 (memononen-nanosvg-g20190422-25241c5_GH0.tar.gz) = 288d134f078c7bcb6360df65ab8de10331f59f96d08cf9be25eee6cec0756e12 +SIZE (memononen-nanosvg-g20190422-25241c5_GH0.tar.gz) = 295817 Added: head/graphics/nanosvg/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/nanosvg/pkg-descr Sat Sep 21 14:44:42 2019 (r512502) @@ -0,0 +1,24 @@ +NanoSVG is a simple stupid single-header-file SVG parse. The output of the +parser is a list of cubic bezier shapes. + +The library suits well for anything from rendering scalable icons in your editor +application to prototyping a game. + +NanoSVG supports a wide range of SVG features, but something may be missing, +feel free to create a pull request! + +The shapes in the SVG images are transformed by the viewBox and converted to +specified units. That is, you should get the same looking data as your designed +in your favorite app. + +NanoSVG can return the paths in few different units. For example if you want to +render an image, you may choose to get the paths in pixels, or if you are +feeding the data into a CNC-cutter, you may want to use millimeters. + +The units passed to NanoSVG should be one of: 'px', 'pt', 'pc' 'mm', 'cm', or +'in'. DPI (dots-per-inch) controls how the unit conversion is done. + +If you don't know or care about the units stuff, "px" and 96 should get you +going. + +WWW: https://github.com/memononen/nanosvg