Update print/p5-Font-FreeType to 0.07

- update depends
 - remove no longer relevant patches
 - specify LICENSE

Changelog: http://search.cpan.org/dist/Font-FreeType/Changes

PR:		218293
Submitted by:	Anton Yuzhaninov
Approved by:	kuriyama (maintainer timeout, 3+ months)
Approved by:	az (mentor), vsevolod (mentor).
This commit is contained in:
Eugene Grosbein 2017-07-17 17:21:05 +00:00
parent 45b2819b0f
commit ce3d99b886
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=446082
5 changed files with 20 additions and 67 deletions

View File

@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= Font-FreeType
PORTVERSION= 0.03
PORTREVISION= 2
PORTVERSION= 0.07
CATEGORIES= print perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@ -10,9 +9,17 @@ PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension to read font files and render glyphs using FreeType2
LIB_DEPENDS= libfreetype.so:print/freetype2
LICENSE= ARTPERL10
USES= pkgconfig perl5
BUILD_DEPENDS= p5-Devel-CheckLib>=0:devel/p5-Devel-CheckLib \
p5-File-Which>=0:sysutils/p5-File-Which
LIB_DEPENDS= libfreetype.so:print/freetype2
TEST_DEPENDS= p5-Test-Warnings>=0:devel/p5-Test-Warnings
USES= perl5
USE_PERL5= configure
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Font/FreeType/FreeType.so
.include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
SHA256 (Font-FreeType-0.03.tar.gz) = c07eab16bb4d16ba61fd0a3376a8f76980245aef443d1ea193ec5446d1127d5f
SIZE (Font-FreeType-0.03.tar.gz) = 95275
TIMESTAMP = 1491011072
SHA256 (Font-FreeType-0.07.tar.gz) = 4d2f6426a11b732469fb3d7a198c02a47779157f938116cbb7602826e54efc79
SIZE (Font-FreeType-0.07.tar.gz) = 234507

View File

@ -1,48 +0,0 @@
--- FreeType.xs.orig 2004-09-12 05:50:44.000000000 +0900
+++ FreeType.xs 2011-08-13 20:42:27.482201061 +0900
@@ -226,7 +226,7 @@
#define QEFFT2_CALL_TIDY FREETMPS; LEAVE;
static int
-handle_move_to (FT_Vector *to, void *data)
+handle_move_to (const FT_Vector *to, void *data)
{
struct QefFT2_Outline_Decompose_Extra_ *extra = data;
double x = QEFFT2_NUM(to->x), y = QEFFT2_NUM(to->y);
@@ -243,7 +243,7 @@
}
static int
-handle_line_to (FT_Vector *to, void *data)
+handle_line_to (const FT_Vector *to, void *data)
{
struct QefFT2_Outline_Decompose_Extra_ *extra = data;
double x = QEFFT2_NUM(to->x), y = QEFFT2_NUM(to->y);
@@ -260,7 +260,7 @@
}
static int
-handle_conic_to (FT_Vector *control, FT_Vector *to, void *data)
+handle_conic_to (const FT_Vector *control, const FT_Vector *to, void *data)
{
struct QefFT2_Outline_Decompose_Extra_ *extra = data;
double x = QEFFT2_NUM(to->x), y = QEFFT2_NUM(to->y);
@@ -292,7 +292,7 @@
}
static int
-handle_cubic_to (FT_Vector *control1, FT_Vector *control2, FT_Vector *to,
+handle_cubic_to (const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to,
void *data)
{
struct QefFT2_Outline_Decompose_Extra_ *extra = data;
@@ -805,7 +805,8 @@
char_code = FT_Get_First_Char(face, &glyph_idx);
while (glyph_idx) {
if (glyph_idx == glyph->index) {
- RETVAL = newSVuv((UV) glyph->char_code = char_code);
+ glyph->char_code = char_code;
+ RETVAL = newSVuv((UV) glyph->char_code);
break;
}
char_code = FT_Get_Next_Char(face, char_code, &glyph_idx);

View File

@ -1,13 +0,0 @@
--- Makefile.PL.bak 2004-09-10 09:43:29.000000000 +0900
+++ Makefile.PL 2011-08-13 21:01:55.896033332 +0900
@@ -5,8 +5,8 @@
NAME => 'Font::FreeType',
AUTHOR => 'Geoff Richards <qef@laxan.com>',
VERSION_FROM => 'lib/Font/FreeType.pm',
- LIBS => [ '-lfreetype' ],
- INC => '-I/usr/include/freetype2',
+ LIBS => `pkg-config --libs freetype2`,
+ INC => `pkg-config --cflags freetype2`,
NO_META => 1,
);

View File

@ -1,7 +1,13 @@
%%SITE_ARCH%%/Font/FreeType.pm
%%SITE_ARCH%%/Font/FreeType/BoundingBox.pm
%%SITE_ARCH%%/Font/FreeType/CharMap.pm
%%SITE_ARCH%%/Font/FreeType/Face.pm
%%SITE_ARCH%%/Font/FreeType/Glyph.pm
%%SITE_ARCH%%/Font/FreeType/NamedInfo.pm
%%SITE_ARCH%%/auto/Font/FreeType/FreeType.so
%%PERL5_MAN3%%/Font::FreeType.3.gz
%%PERL5_MAN3%%/Font::FreeType::BoundingBox.3.gz
%%PERL5_MAN3%%/Font::FreeType::CharMap.3.gz
%%PERL5_MAN3%%/Font::FreeType::Face.3.gz
%%PERL5_MAN3%%/Font::FreeType::Glyph.3.gz
%%PERL5_MAN3%%/Font::FreeType::NamedInfo.3.gz