ports/162041: [new port] print/harfbuzz: OpenType text shaping engine
Nali Toja
nalitoja at gmail.com
Wed Oct 26 23:50:08 UTC 2011
>Number: 162041
>Category: ports
>Synopsis: [new port] print/harfbuzz: OpenType text shaping engine
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 26 23:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Nali Toja
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
--- harfbuzz.diff begins here ---
Index: print/Makefile
===================================================================
RCS file: /a/.csup/ports/print/Makefile,v
retrieving revision 1.523
diff -u -p -r1.523 Makefile
--- print/Makefile 21 Oct 2011 13:57:46 -0000 1.523
+++ print/Makefile 26 Oct 2011 23:25:50 -0000
@@ -107,6 +107,7 @@
SUBDIR += gutenprint-foomatic
SUBDIR += gutenprint-ijs
SUBDIR += gv
+ SUBDIR += harfbuzz
SUBDIR += hp2xx
SUBDIR += hpijs
SUBDIR += hplip
Index: print/harfbuzz/Makefile
===================================================================
RCS file: print/harfbuzz/Makefile
diff -N print/harfbuzz/Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ print/harfbuzz/Makefile 26 Oct 2011 23:20:01 -0000
@@ -0,0 +1,84 @@
+# New ports collection makefile for: harfbuzz
+# Date created: 26 Oct 2011
+# Whom: notyet@
+#
+# $FreeBSD$
+#
+
+PORTNAME= harfbuzz
+PORTVERSION= 0.7.0.20111017
+CATEGORIES= print
+MASTER_SITES= http://cgit.freedesktop.org/harfbuzz/snapshot/
+DISTNAME= ${PORTNAME}-89d8964
+
+MAINTAINER= notyet@
+COMMENT= OpenType text shaping engine
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= ragel:${PORTSDIR}/devel/ragel
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
+
+USE_BZIP2= yes
+USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize
+ACLOCAL_ARGS= -I.
+AUTOMAKE_ARGS= --add-missing
+USE_GMAKE= yes
+USE_GNOME= pkgconfig
+USE_LDCONFIG= yes
+
+OPTIONS= GLIB "glib dependency (thread-safe, hb-view, hb-shape)" ON \
+ ICU "icu dependency" OFF
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_DEBUG)
+CFLAGS+= -DHB_DEBUG=1
+.endif
+
+.if defined(STRIP) && ${STRIP} != ""
+INSTALL_TARGET= install-strip
+.endif
+
+.if defined(WITH_GLIB)
+LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
+USE_GNOME+= glib20
+PLIST_SUB+= GLIB=""
+PC_REQ+= glib-2.0
+.else
+PLIST_SUB+= GLIB="@comment "
+.endif
+
+.if defined(WITH_ICU)
+LIB_DEPENDS+= icuuc:${PORTSDIR}/devel/icu
+PLIST_SUB+= ICU=""
+PC_REQ+= icu-uc
+.else
+PLIST_SUB+= ICU="@comment "
+.endif
+
+post-patch: .SILENT
+ ${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
+ ${WRKSRC}/Makefile.am
+ ${REINPLACE_CMD} '/^GTK_DOC_CHECK/d' ${WRKSRC}/configure.ac
+.if !defined(WITH_GLIB)
+ ${REINPLACE_CMD} -Ee '/^AM/s/\$$have_(glib|gthread|gobject)/false/' \
+ -e '/^PKG.*(glib|gthread|gobject)/,/^fi$$/d' \
+ ${WRKSRC}/configure.ac
+.endif
+.if defined(WITH_ICU)
+ ${REINPLACE_CMD} '/^PKG/s/icu,/icu-uc,/' \
+ ${WRKSRC}/configure.ac
+ ${ECHO_CMD} 'test_unicode_CPPFLAGS = $$(AM_CPPFLAGS) $$(ICU_CFLAGS)' \
+ >>${WRKSRC}/test/Makefile.am
+.else
+ ${REINPLACE_CMD} -e '/^AM/s/\$$have_icu/false/' \
+ -e '/^PKG.*icu/,/^fi$$/d' \
+ ${WRKSRC}/configure.ac
+.endif
+.if defined(PC_REQ)
+ ${ECHO_CMD} 'Requires.private: ${PC_REQ}' >>${WRKSRC}/harfbuzz.pc.in
+.endif
+
+.include <bsd.port.mk>
Index: print/harfbuzz/distinfo
===================================================================
RCS file: print/harfbuzz/distinfo
diff -N print/harfbuzz/distinfo
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ print/harfbuzz/distinfo 26 Oct 2011 21:03:23 -0000
@@ -0,0 +1,2 @@
+SHA256 (harfbuzz-89d8964.tar.bz2) = 16230109431dc88951d1edf44dc9c012b2a001bbea8ae66515da68e890db038f
+SIZE (harfbuzz-89d8964.tar.bz2) = 137974
Index: print/harfbuzz/pkg-descr
===================================================================
RCS file: print/harfbuzz/pkg-descr
diff -N print/harfbuzz/pkg-descr
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ print/harfbuzz/pkg-descr 26 Oct 2011 21:11:09 -0000
@@ -0,0 +1,4 @@
+The current HarfBuzz tree, also known as harfbuzz-ng, is under active
+development and is what is used in Firefox 4.
+
+WWW: http://www.freedesktop.org/wiki/Software/HarfBuzz
Index: print/harfbuzz/pkg-plist
===================================================================
RCS file: print/harfbuzz/pkg-plist
diff -N print/harfbuzz/pkg-plist
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ print/harfbuzz/pkg-plist 26 Oct 2011 22:39:53 -0000
@@ -0,0 +1,23 @@
+%%GLIB%%bin/hb-shape
+%%GLIB%%bin/hb-view
+include/harfbuzz/hb-blob.h
+include/harfbuzz/hb-buffer.h
+include/harfbuzz/hb-common.h
+include/harfbuzz/hb-font.h
+include/harfbuzz/hb-ft.h
+%%GLIB%%include/harfbuzz/hb-glib.h
+%%GLIB%%include/harfbuzz/hb-gobject.h
+%%ICU%%include/harfbuzz/hb-icu.h
+include/harfbuzz/hb-ot-layout.h
+include/harfbuzz/hb-ot-shape.h
+include/harfbuzz/hb-ot-tag.h
+include/harfbuzz/hb-ot.h
+include/harfbuzz/hb-shape.h
+include/harfbuzz/hb-unicode.h
+include/harfbuzz/hb-version.h
+include/harfbuzz/hb.h
+lib/libharfbuzz.la
+lib/libharfbuzz.so
+lib/libharfbuzz.so.700
+libdata/pkgconfig/harfbuzz.pc
+ at dirrm include/harfbuzz
--- harfbuzz.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list