From 845b8b804bbbe44498efc9aa1b6917c1eae0520d Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 4 Feb 2010 17:26:52 +0100 Subject: [xorg-font-arphic-uming] new package "AR PL UMing" Chinese Unicode TrueType font collection Mingti style Signed-off-by: Michael Olbrich --- rules/xorg-font-arphic-uming.in | 8 ++++ rules/xorg-font-arphic-uming.make | 90 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 rules/xorg-font-arphic-uming.in create mode 100644 rules/xorg-font-arphic-uming.make (limited to 'rules') diff --git a/rules/xorg-font-arphic-uming.in b/rules/xorg-font-arphic-uming.in new file mode 100644 index 000000000..d3acb24cc --- /dev/null +++ b/rules/xorg-font-arphic-uming.in @@ -0,0 +1,8 @@ +## SECTION=multimedia_xorg_font_other + +config XORG_FONT_ARPHIC_UMING + bool + select XORG_FONTS + prompt "'AR PL UMing' Chinese font collection Kaiti style" + help + FIXME diff --git a/rules/xorg-font-arphic-uming.make b/rules/xorg-font-arphic-uming.make new file mode 100644 index 000000000..a1618e2df --- /dev/null +++ b/rules/xorg-font-arphic-uming.make @@ -0,0 +1,90 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Michael Olbrich +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_XORG_FONT_ARPHIC_UMING) += xorg-font-arphic-uming + +# +# Paths and names +# +XORG_FONT_ARPHIC_UMING_VERSION := 0.2.20080216.1 +XORG_FONT_ARPHIC_UMING := ttf-arphic-uming_$(XORG_FONT_ARPHIC_UMING_VERSION) +XORG_FONT_ARPHIC_UMING_SUFFIX := tar.gz +XORG_FONT_ARPHIC_UMING_URL := http://de.archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/$(XORG_FONT_ARPHIC_UMING).orig.$(XORG_FONT_ARPHIC_UMING_SUFFIX) +XORG_FONT_ARPHIC_UMING_SOURCE := $(SRCDIR)/$(XORG_FONT_ARPHIC_UMING).orig.$(XORG_FONT_ARPHIC_UMING_SUFFIX) +XORG_FONT_ARPHIC_UMING_DIR := $(BUILDDIR)/$(XORG_FONT_ARPHIC_UMING) + +ifdef PTXCONF_XORG_FONT_ARPHIC_UMING +$(STATEDIR)/xorg-fonts.targetinstall.post: $(STATEDIR)/xorg-font-arphic-uming.targetinstall +endif + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(XORG_FONT_ARPHIC_UMING_SOURCE): + @$(call targetinfo) + @$(call get, XORG_FONT_ARPHIC_UMING) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-arphic-uming.extract: + @$(call targetinfo) + @$(call clean, $(XORG_FONT_ARPHIC_UMING_DIR)) + @mkdir -p $(XORG_FONT_ARPHIC_UMING_DIR) + @$(call extract, XORG_FONT_ARPHIC_UMING, $(XORG_FONT_ARPHIC_UMING_DIR)) + @$(call patchin, XORG_FONT_ARPHIC_UMING, $(XORG_FONT_ARPHIC_UMING_DIR)) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +XORG_FONT_ARPHIC_UMING_CONF_TOOL := NO + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-arphic-uming.compile: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-arphic-uming.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-arphic-uming.targetinstall: + @$(call targetinfo) + + @mkdir -p $(XORG_FONTS_DIR_INSTALL)/truetype + + @find $(XORG_FONT_ARPHIC_UMING_DIR) \ + -name "*.ttc" \ + | \ + while read file; do \ + install -m 644 $${file} $(XORG_FONTS_DIR_INSTALL)/truetype; \ + done + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3