From owner-svn-ports-all@freebsd.org Sun Dec 13 08:20:13 2020 Return-Path: Delivered-To: svn-ports-all@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 55EE44B19AA; Sun, 13 Dec 2020 08:20:13 +0000 (UTC) (envelope-from rhurlin@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4CtyBP1nF2z3KlQ; Sun, 13 Dec 2020 08:20:13 +0000 (UTC) (envelope-from rhurlin@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 19A864945; Sun, 13 Dec 2020 08:20:13 +0000 (UTC) (envelope-from rhurlin@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BD8KCVF091310; Sun, 13 Dec 2020 08:20:12 GMT (envelope-from rhurlin@FreeBSD.org) Received: (from rhurlin@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BD8KCAc091309; Sun, 13 Dec 2020 08:20:12 GMT (envelope-from rhurlin@FreeBSD.org) Message-Id: <202012130820.0BD8KCAc091309@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rhurlin set sender to rhurlin@FreeBSD.org using -f From: Rainer Hurling Date: Sun, 13 Dec 2020 08:20:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r557887 - head/textproc/cast2gif/files X-SVN-Group: ports-head X-SVN-Commit-Author: rhurlin X-SVN-Commit-Paths: head/textproc/cast2gif/files X-SVN-Commit-Revision: 557887 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2020 08:20:13 -0000 Author: rhurlin Date: Sun Dec 13 08:20:12 2020 New Revision: 557887 URL: https://svnweb.freebsd.org/changeset/ports/557887 Log: textproc/cast2gif: Fix for 32bit archs Patch for internal cargo-crates/font-kit [1] to make textproc/cast2gif also executable on 32bit platforms. [1] https://github.com/servo/font-kit/commit/cc92c3fb65792fa716728407f5651343e1bbe155 PR: 251672 Submitted by: Nuno Teixeira (maintainer) Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D27516 Added: head/textproc/cast2gif/files/patch-cargo-crates_font-kit-0.6.0_src_loaders_freetype.rs (contents, props changed) Added: head/textproc/cast2gif/files/patch-cargo-crates_font-kit-0.6.0_src_loaders_freetype.rs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/cast2gif/files/patch-cargo-crates_font-kit-0.6.0_src_loaders_freetype.rs Sun Dec 13 08:20:12 2020 (r557887) @@ -0,0 +1,34 @@ +--- cargo-crates/font-kit-0.6.0/src/loaders/freetype.rs.orig 2020-04-14 20:53:09 UTC ++++ cargo-crates/font-kit-0.6.0/src/loaders/freetype.rs +@@ -15,7 +15,9 @@ + + use byteorder::{BigEndian, ReadBytesExt}; + use freetype::freetype::{FT_Byte, FT_Done_Face, FT_Error, FT_Face, FT_FACE_FLAG_FIXED_WIDTH}; +-use freetype::freetype::{FT_Fixed, FT_Get_Char_Index, FT_Get_Name_Index, FT_Get_Postscript_Name}; ++use freetype::freetype::{ ++ FT_Fixed, FT_Get_Char_Index, FT_Get_Name_Index, FT_Get_Postscript_Name, FT_Pos, ++}; + use freetype::freetype::{FT_Get_Sfnt_Table, FT_Init_FreeType, FT_LcdFilter, FT_Library}; + use freetype::freetype::{FT_Library_SetLcdFilter, FT_Load_Glyph, FT_LOAD_DEFAULT}; + use freetype::freetype::{FT_Load_Sfnt_Table, FT_Long, FT_Matrix, FT_New_Memory_Face}; +@@ -801,14 +803,14 @@ impl Font { + let vector = transform.vector.f32_to_ft_fixed_26_6(); + + let mut delta = FT_Vector { +- x: vector.x() as i64, +- y: -vector.y() as i64, ++ x: vector.x() as FT_Pos, ++ y: -vector.y() as FT_Pos, + }; + let mut ft_shape = FT_Matrix { +- xx: matrix.x() as i64, +- xy: matrix.y() as i64, +- yx: matrix.z() as i64, +- yy: matrix.w() as i64, ++ xx: matrix.x() as FT_Fixed, ++ xy: matrix.y() as FT_Fixed, ++ yx: matrix.z() as FT_Fixed, ++ yy: matrix.w() as FT_Fixed, + }; + FT_Set_Transform(self.freetype_face, &mut ft_shape, &mut delta); +