[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/11: gnu: Add ttf2eot.
From: |
Eric Bavier |
Subject: |
03/11: gnu: Add ttf2eot. |
Date: |
Fri, 15 Apr 2016 05:39:57 +0000 |
bavier pushed a commit to branch master
in repository guix.
commit 1555aee7d03fc9931eb870bdfb272a889f0cadc4
Author: Eric Bavier <address@hidden>
Date: Thu Mar 31 01:11:19 2016 -0500
gnu: Add ttf2eot.
* gnu/packages/fontutils.scm (ttf2eot): New variable.
* gnu/packages/patches/ttf2eot-cstddef.patch: New patch.
* gnu-system.am (dist_patch_DATA): Add it.
---
gnu-system.am | 1 +
gnu/packages/fontutils.scm | 37 ++++++++++++++++++++++++++++
gnu/packages/patches/ttf2eot-cstddef.patch | 12 +++++++++
3 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/gnu-system.am b/gnu-system.am
index e8cb5a6..11d8d6e 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -727,6 +727,7 @@ dist_patch_DATA =
\
gnu/packages/patches/tidy-CVE-2015-5522+5523.patch \
gnu/packages/patches/tinyxml-use-stl.patch \
gnu/packages/patches/tk-find-library.patch \
+ gnu/packages/patches/ttf2eot-cstddef.patch \
gnu/packages/patches/ttfautohint-source-date-epoch.patch \
gnu/packages/patches/tophat-build-with-later-seqan.patch \
gnu/packages/patches/torsocks-dns-test.patch \
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index a413e86..dc18daa 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -144,6 +144,43 @@ Converts WOFF fonts to OpenType fonts
(license (list license:mpl1.1 license:gpl2+ license:lgpl2.1+))
(home-page "https://people.mozilla.com/~jkew/woff/")))
+(define-public ttf2eot
+ (package
+ (name "ttf2eot")
+ (version "0.0.2-2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://storage.googleapis.com/"
+ "google-code-archive-downloads/v2/"
+ "code.google.com/ttf2eot/"
+ "ttf2eot-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1f4dzzmhn0208dvbm3ia5ar6ls9apwc6ampy5blmfxkigi6z0g02"))
+ (patches (list (search-patch "ttf2eot-cstddef.patch")))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ;no tests
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure) ;no configuration
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (install-file "ttf2eot" bin)))))))
+ (synopsis "Convert from TrueType to Embeddable Open Type")
+ (description
+ "This package contains a commandline wrapper around OpenTypeUtilities.cpp
+from Chromium, used to make EOT (Embeddable Open Type) files from
+TTF (TrueType/OpenType Font) files.")
+ ;; While the README states "License: Derived from WebKit, so BSD/LGPL
+ ;; 2/LGPL 2.1", the single derived source file includes only BSD in its
+ ;; license header, and the wrapper source contains no license header.
+ (license license:bsd-2)
+ (home-page "https://code.google.com/archive/p/ttf2eot/")))
+
(define-public fontconfig
(package
(name "fontconfig")
diff --git a/gnu/packages/patches/ttf2eot-cstddef.patch
b/gnu/packages/patches/ttf2eot-cstddef.patch
new file mode 100644
index 0000000..af76898
--- /dev/null
+++ b/gnu/packages/patches/ttf2eot-cstddef.patch
@@ -0,0 +1,12 @@
+From resolution of https://code.google.com/p/ttf2eot/issues/detail?id=26
+
+--- ttf2eot-0.0.2-2/OpenTypeUtilities.cpp 2009-04-30 04:18:46.000000000
-0500
++++ ttf2eot-0.0.2-2/OpenTypeUtilities.cpp 2016-03-31 01:06:39.109996011
-0500
+@@ -25,6 +25,7 @@
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
++#include <cstddef>
+ #include <string.h>
+ #include <vector>
+
- branch master updated (08fbfa8 -> de94602), Eric Bavier, 2016/04/15
- 03/11: gnu: Add ttf2eot.,
Eric Bavier <=
- 02/11: gnu: Add woff-tools., Eric Bavier, 2016/04/15
- 04/11: gnu: Add brotli., Eric Bavier, 2016/04/15
- 09/11: gnu: fontforge: Install 'showttf' tool., Eric Bavier, 2016/04/15
- 11/11: gnu: fontforge: Swap giflib input for libungif., Eric Bavier, 2016/04/15
- 05/11: gnu: Add woff2., Eric Bavier, 2016/04/15
- 10/11: gnu: fontforge: Remove 'patch-configure' phase., Eric Bavier, 2016/04/15
- 06/11: gnu: fontforge: Make SVG builds reproducible., Eric Bavier, 2016/04/15
- 01/11: gnu: Add ttfautohint., Eric Bavier, 2016/04/15
- 07/11: gnu: Add font-fantasque-sans., Eric Bavier, 2016/04/15
- 08/11: gnu: fontforge: Use modify-phases., Eric Bavier, 2016/04/15