From: spdawson at gmail.com <spdawson@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] googlefontdirectory: new package
Date: Mon, 23 Jul 2012 15:24:54 +0100 [thread overview]
Message-ID: <1343053494-21248-1-git-send-email-spdawson@gmail.com> (raw)
From: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
package/Config.in | 1 +
package/googlefontdirectory/Config.in | 13 +++++++
package/googlefontdirectory/googlefontdirectory.mk | 36 ++++++++++++++++++++
3 files changed, 50 insertions(+)
create mode 100644 package/googlefontdirectory/Config.in
create mode 100644 package/googlefontdirectory/googlefontdirectory.mk
diff --git a/package/Config.in b/package/Config.in
index f664b8e..89dc036 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -498,6 +498,7 @@ endmenu
menu "Miscellaneous"
source "package/collectd/Config.in"
source "package/empty/Config.in"
+source "package/googlefontdirectory/Config.in"
source "package/mobile-broadband-provider-info/Config.in"
source "package/shared-mime-info/Config.in"
source "package/sound-theme-borealis/Config.in"
diff --git a/package/googlefontdirectory/Config.in b/package/googlefontdirectory/Config.in
new file mode 100644
index 0000000..2ff81b7
--- /dev/null
+++ b/package/googlefontdirectory/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_GOOGLEFONTDIRECTORY
+ bool "Google Web Fonts"
+ help
+ Download Google Web Fonts
+
+ http://code.google.com/p/googlefontdirectory/
+
+config BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS
+ string "List of fonts to install"
+ default "droid"
+ depends on BR2_PACKAGE_GOOGLEFONTDIRECTORY
+ help
+ Specify a space-separated list of fonts to install
diff --git a/package/googlefontdirectory/googlefontdirectory.mk b/package/googlefontdirectory/googlefontdirectory.mk
new file mode 100644
index 0000000..f13c100
--- /dev/null
+++ b/package/googlefontdirectory/googlefontdirectory.mk
@@ -0,0 +1,36 @@
+#############################################################
+#
+# googlefontdirectory
+#
+#############################################################
+GOOGLEFONTDIRECTORY_VERSION = 1.0
+GOOGLEFONTDIRECTORY_SITE = \
+ https://s3.amazonaws.com/joemaller_google_webfonts
+GOOGLEFONTDIRECTORY_SOURCE = googlewebfonts.tgz
+
+GOOGLEFONTDIRECTORY_FONTS = \
+ $(call qstrip,$(BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS))
+
+define GOOGLEFONTDIRECTORY_INSTALL_SINGLE_FONT
+ $(info Installing single font $(1))
+ $(INSTALL) -d $(TARGET_DIR)/usr/share/fonts/$(1)
+ cp -a $(@D)/$(1)/*.ttf $(TARGET_DIR)/usr/share/fonts/$(1)
+ chmod 0644 $(TARGET_DIR)/usr/share/fonts/$(1)/*.ttf
+endef
+
+define GOOGLEFONTDIRECTORY_UNINSTALL_SINGLE_FONT
+ $(info Uninstalling single font $(1))
+ $(RM) -r $(TARGET_DIR)/usr/share/fonts/$(1)
+endef
+
+define GOOGLEFONTDIRECTORY_INSTALL_TARGET_CMDS
+ $(foreach thing,$(GOOGLEFONTDIRECTORY_FONTS),\
+ $(call GOOGLEFONTDIRECTORY_INSTALL_SINGLE_FONT,$(thing)))
+endef
+
+define GOOGLEFONTDIRECTORY_UNINSTALL_TARGET_CMDS
+ $(foreach thing,$(GOOGLEFONTDIRECTORY_FONTS),\
+ $(call GOOGLEFONTDIRECTORY_UNINSTALL_SINGLE_FONT,$(thing)))
+endef
+
+$(eval $(generic-package))
--
1.7.9.5
next reply other threads:[~2012-07-23 14:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-23 14:24 spdawson at gmail.com [this message]
2012-10-10 21:17 ` [Buildroot] [PATCH] googlefontdirectory: new package Peter Korsgaard
2012-10-11 7:06 ` Simon Dawson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1343053494-21248-1-git-send-email-spdawson@gmail.com \
--to=spdawson@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox