aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2004-01-17 12:51:18 +0800
committerperky <perky@FreeBSD.org>2004-01-17 12:51:18 +0800
commit660dd6feea2086ff7f8bd915d1e40d78c378af61 (patch)
tree3ef945a358c23b745dda3c61b281a3bf8cc889c1
parent59ae470069ebfaf693818aac261b091318a6ae54 (diff)
downloadfreebsd-ports-gnome-660dd6feea2086ff7f8bd915d1e40d78c378af61.tar.gz
freebsd-ports-gnome-660dd6feea2086ff7f8bd915d1e40d78c378af61.tar.zst
freebsd-ports-gnome-660dd6feea2086ff7f8bd915d1e40d78c378af61.zip
Add a patch that fixes Korean fontface name encoding for OpenOffice.org.
-rw-r--r--korean/unfonts-ttf/Makefile18
-rw-r--r--korean/unfonts-ttf/distinfo1
2 files changed, 19 insertions, 0 deletions
diff --git a/korean/unfonts-ttf/Makefile b/korean/unfonts-ttf/Makefile
index aee3553b2bce..73169f9f4ef9 100644
--- a/korean/unfonts-ttf/Makefile
+++ b/korean/unfonts-ttf/Makefile
@@ -6,6 +6,7 @@
PORTNAME= unfonts
PORTVERSION= 20030907
+PORTREVISION= 1
CATEGORIES= korean x11-fonts
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://people.freebsd.org/~perky/distfiles/
@@ -13,9 +14,14 @@ MASTER_SITE_SUBDIR= perky
PKGNAMESUFFIX= -ttf
DISTNAME= UnFonts${PKGNAMESUFFIX}-${PORTVERSION}
+PATCH_SITES= ${MASTER_SITES}
+PATCHFILES= UnFonts-ooofontname-patch.tar.gz
+
MAINTAINER= perky@FreeBSD.org
COMMENT= GPL'd Korean TrueType Fonts by UN Koaunghi
+PATCH_DEPENDS= bspatch:${PORTSDIR}/misc/bsdiff
+
USE_X_PREFIX= yes
USE_BZIP2= yes
NO_BUILD= yes
@@ -24,6 +30,18 @@ FONTLIST= UnBatang UnBatangBold UnBom UnDotum UnDotumBold UnGraphic \
UnGungseo UnPen UnPenheulim UnPilgi UnPilgiBold UnShinmun \
UnYetgul
+post-extract:
+ ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/UnFonts-ooofontname-patch.tar.gz
+
+do-patch:
+ cd ${WRKSRC} && for FONTNAME in ${FONTLIST}; do \
+ if [ -f $$FONTNAME-ooofontname.diff ]; then \
+ ${CP} $$FONTNAME.ttf $$FONTNAME.orig.ttf; \
+ ${LOCALBASE}/bin/bspatch $$FONTNAME.orig.ttf \
+ $$FONTNAME.ttf $$FONTNAME-ooofontname.diff; \
+ fi; \
+ done
+
do-install:
${MKDIR} ${FONTDIR}
.for FONTNAME in ${FONTLIST}
diff --git a/korean/unfonts-ttf/distinfo b/korean/unfonts-ttf/distinfo
index 55c790630517..9fa190e1e206 100644
--- a/korean/unfonts-ttf/distinfo
+++ b/korean/unfonts-ttf/distinfo
@@ -1 +1,2 @@
MD5 (UnFonts-ttf-20030907.tar.bz2) = 5e071178638410edfde689c9309d4661
+MD5 (UnFonts-ooofontname-patch.tar.gz) = 325cbdce9e94a5b7331c3e01151a2eb5