Add py-freetype 0.5, a Python wrapping of the FreeType 1.2 fonts

rendering engine. In fact the software called PyFT, but py-freetype
better reflects its purpose.
This commit is contained in:
Maxim Sobolev 2001-03-08 19:05:52 +00:00
parent ebc6e01c4e
commit a2f81fa3ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39280
7 changed files with 64 additions and 0 deletions

View file

@ -108,6 +108,7 @@
SUBDIR += pstotext
SUBDIR += psutils-a4
SUBDIR += psutils-letter
SUBDIR += py-freetype
SUBDIR += py-reportlab
SUBDIR += rlpr
SUBDIR += rtf2latex

View file

@ -0,0 +1,39 @@
# New ports collection makefile for: py-freetype
# Date created: 3 February 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= py-freetype
PORTVERSION= 0.5
CATEGORIES= print python
MASTER_SITES= http://starship.python.net/crew/kernr/source/
DISTNAME= PyFT-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
LIB_DEPENDS= ttf.4:${PORTSDIR}/print/freetype
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_ZIP= yes
USE_PYTHON= yes
pre-configure:
${LN} -sf ${LOCALBASE}/lib/${PYTHON_VERSION}/config/Makefile.pre.in ${WRKSRC}/
${LN} -sf ${WRKSRC}/Setup.w32 ${WRKSRC}/Setup.in
do-configure:
cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot
post-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
post-install:
cd ${WRKSRC} && \
${INSTALL_DATA} *.py *.pyc *.pyo \
${PREFIX}/lib/${PYTHON_VERSION}/site-packages
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (PyFT-0.5.zip) = 33986117f6cccd0f70abae1e02934416

View file

@ -0,0 +1,10 @@
$FreeBSD$
--- Setup.w32.orig Thu Aug 19 23:41:30 1999
+++ Setup.w32 Sat Feb 3 01:49:45 2001
@@ -1,2 +1,3 @@
#[MGW32]swig_options.extend(['-shadow', '-docstring'])
-freetypec freetype_wrap.c -I../../lib -I../../lib/extend -L../../lib -lttf.dll
+*shared*
+freetypec freetype_wrap.c -I${LOCALBASE}/include/freetype -L${LOCALBASE}/lib -lttf

View file

@ -0,0 +1 @@
A Python wrapping of the FreeType 1.2 fonts rendering engine

View file

@ -0,0 +1,5 @@
A Python wrapping of the FreeType 1.2 rendering engine for TrueType fonts.
Most of this is a direct and nearly exhaustive translation of the FreeType
API. A few of the functions have been given more "Pythonic" wrappings for
convenience. There are also a couple of _de_novo_ convenience functions to
access certain bits of data.

View file

@ -0,0 +1,7 @@
lib/%%PYTHON_VERSION%%/site-packages/freetype.py
lib/%%PYTHON_VERSION%%/site-packages/freetype.pyc
lib/%%PYTHON_VERSION%%/site-packages/freetype.pyo
lib/%%PYTHON_VERSION%%/site-packages/freetype_inc.py
lib/%%PYTHON_VERSION%%/site-packages/freetype_inc.pyc
lib/%%PYTHON_VERSION%%/site-packages/freetype_inc.pyo
lib/%%PYTHON_VERSION%%/site-packages/freetypecmodule.so