aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-03-09 03:05:52 +0800
committersobomax <sobomax@FreeBSD.org>2001-03-09 03:05:52 +0800
commit8d3d631ba801231dfea7421bb30d0383cbe24b7c (patch)
treefff46cfe69eaf9f2fb6ff07555da5079e78ae658 /print
parent86405b3dd794273dcae26346f4c360f1ad0751bd (diff)
downloadfreebsd-ports-gnome-8d3d631ba801231dfea7421bb30d0383cbe24b7c.tar.gz
freebsd-ports-gnome-8d3d631ba801231dfea7421bb30d0383cbe24b7c.tar.zst
freebsd-ports-gnome-8d3d631ba801231dfea7421bb30d0383cbe24b7c.zip
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.
Diffstat (limited to 'print')
-rw-r--r--print/Makefile1
-rw-r--r--print/py-freetype/Makefile39
-rw-r--r--print/py-freetype/distinfo1
-rw-r--r--print/py-freetype/files/patch-Setup.w3210
-rw-r--r--print/py-freetype/pkg-comment1
-rw-r--r--print/py-freetype/pkg-descr5
-rw-r--r--print/py-freetype/pkg-plist7
7 files changed, 64 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index f72904514b86..527c64039a2b 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -108,6 +108,7 @@
SUBDIR += pstotext
SUBDIR += psutils-a4
SUBDIR += psutils-letter
+ SUBDIR += py-freetype
SUBDIR += py-reportlab
SUBDIR += rlpr
SUBDIR += rtf2latex
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