ghostscript-fonts: new package
authorPeter Seiderer <ps.report@gmx.net>
Mon, 22 Sep 2014 19:34:23 +0000 (21:34 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 3 Feb 2015 16:04:54 +0000 (17:04 +0100)
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in
package/ghostscript-fonts/Config.in [new file with mode: 0644]
package/ghostscript-fonts/ghostscript-fonts.mk [new file with mode: 0644]

index d19b37f703db8b3f23db535fd7269259a73c43d2..fe3d3d06d96d9b78d51b061167d5d35965dae53f 100644 (file)
@@ -261,6 +261,7 @@ comment "X applications"
 
 comment "X libraries and helper libraries"
        source "package/dejavu/Config.in"
+       source "package/ghostscript-fonts/Config.in"
        source "package/liberation/Config.in"
        source "package/libsexy/Config.in"
        source "package/x11r7/xkeyboard-config/Config.in"
diff --git a/package/ghostscript-fonts/Config.in b/package/ghostscript-fonts/Config.in
new file mode 100644 (file)
index 0000000..80bfbd0
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_GHOSTSCRIPT_FONTS
+       bool "ghostscript-fonts"
+       help
+         Fonts and font metrics customarily distributed with Ghostscript.
+         Currently includes the 35 standard PostScript fonts and a
+         grab-bag of others.
+
+         http://sourceforge.net/projects/gs-fonts
diff --git a/package/ghostscript-fonts/ghostscript-fonts.mk b/package/ghostscript-fonts/ghostscript-fonts.mk
new file mode 100644 (file)
index 0000000..fa5c4b7
--- /dev/null
@@ -0,0 +1,21 @@
+################################################################################
+#
+# ghostscript-fonts
+#
+################################################################################
+
+GHOSTSCRIPT_FONTS_VERSION = 8.11
+GHOSTSCRIPT_FONTS_SITE = http://downloads.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29
+GHOSTSCRIPT_FONTS_SOURCE = ghostscript-fonts-std-$(GHOSTSCRIPT_FONTS_VERSION).tar.gz
+GHOSTSCRIPT_FONTS_LICENSE = GPLv2
+GHOSTSCRIPT_FONTS_LICENSE_FILES = COPYING
+
+GHOSTSCRIPT_FONTS_TARGET_DIR = $(TARGET_DIR)/usr/share/fonts/gs
+
+define GHOSTSCRIPT_FONTS_INSTALL_TARGET_CMDS
+       mkdir -p $(GHOSTSCRIPT_FONTS_TARGET_DIR)
+       $(INSTALL) -m 644 $(@D)/*.afm $(GHOSTSCRIPT_FONTS_TARGET_DIR)
+       $(INSTALL) -m 644 $(@D)/*.pfb $(GHOSTSCRIPT_FONTS_TARGET_DIR)
+endef
+
+$(eval $(generic-package))