diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-03-08 19:05:52 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-03-08 19:05:52 +0000 |
commit | a2f81fa3ffe0bbe9b56d5214ab9fb8ab2311aa4f (patch) | |
tree | 918c0c7ddf2ff0866d7780f5f89d376781147084 /print/py-freetype | |
parent | Don't strip the module or it won't work (diff) |
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.
Notes
Notes:
svn path=/head/; revision=39280
Diffstat (limited to 'print/py-freetype')
-rw-r--r-- | print/py-freetype/Makefile | 39 | ||||
-rw-r--r-- | print/py-freetype/distinfo | 1 | ||||
-rw-r--r-- | print/py-freetype/files/patch-Setup.w32 | 10 | ||||
-rw-r--r-- | print/py-freetype/pkg-comment | 1 | ||||
-rw-r--r-- | print/py-freetype/pkg-descr | 5 | ||||
-rw-r--r-- | print/py-freetype/pkg-plist | 7 |
6 files changed, 63 insertions, 0 deletions
diff --git a/print/py-freetype/Makefile b/print/py-freetype/Makefile new file mode 100644 index 000000000000..dfcfc2239ab1 --- /dev/null +++ b/print/py-freetype/Makefile @@ -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> diff --git a/print/py-freetype/distinfo b/print/py-freetype/distinfo new file mode 100644 index 000000000000..06859f5825de --- /dev/null +++ b/print/py-freetype/distinfo @@ -0,0 +1 @@ +MD5 (PyFT-0.5.zip) = 33986117f6cccd0f70abae1e02934416 diff --git a/print/py-freetype/files/patch-Setup.w32 b/print/py-freetype/files/patch-Setup.w32 new file mode 100644 index 000000000000..1aab0ed61418 --- /dev/null +++ b/print/py-freetype/files/patch-Setup.w32 @@ -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 diff --git a/print/py-freetype/pkg-comment b/print/py-freetype/pkg-comment new file mode 100644 index 000000000000..97a03f018919 --- /dev/null +++ b/print/py-freetype/pkg-comment @@ -0,0 +1 @@ +A Python wrapping of the FreeType 1.2 fonts rendering engine diff --git a/print/py-freetype/pkg-descr b/print/py-freetype/pkg-descr new file mode 100644 index 000000000000..f61cff2f3b55 --- /dev/null +++ b/print/py-freetype/pkg-descr @@ -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. diff --git a/print/py-freetype/pkg-plist b/print/py-freetype/pkg-plist new file mode 100644 index 000000000000..e475db738063 --- /dev/null +++ b/print/py-freetype/pkg-plist @@ -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 |