On Tue, Apr 05, 2016 at 11:32:54PM -0500, ericbav...@openmailbox.org wrote: > From: Eric Bavier <bav...@member.fsf.org> > > * gnu/packages/fontutils.scm (woff-tools): New variable. > --- > gnu/packages/fontutils.scm | 41 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm > index a0701d5..614aac5 100644 > --- a/gnu/packages/fontutils.scm > +++ b/gnu/packages/fontutils.scm > @@ -104,6 +104,47 @@ scripts.") > (license license:gpl2+) ;or FreeType license > (home-page "http://www.freetype.org/ttfautohint/"))) > > +(define-public woff-tools > + (package > + (name "woff-tools") > + (version "2009.10.04") > + (source > + (origin > + (method url-fetch) > + ;; Upstream source is unversioned, so use Debian's versioned tarball > + (uri (string-append "mirror://debian/pool/main/w/woff-tools/" > + "woff-tools_" version ".orig.tar.gz"))
2009 is a long time ago, but woff-tools are still in Debian Sid so we don't have to worry about needing to go to archive.debian.org/... for the sources any time soon. By the way, is there a more recent version? > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1i97gkqa6jfzlslsngqf556kx60knlgf7yc9pzsq2pizc6f0d4zl")))) > + (build-system gnu-build-system) > + (inputs > + `(("zlib" ,zlib))) > + (arguments > + `(#:make-flags '("CC=gcc") > + #: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 "sfnt2woff" bin) > + (install-file "woff2sfnt" bin))))))) > + (synopsis "Convert between OpenType and WOFF formats") > + (description > + "This package provides two tools: > +@table @code > +@item sfnt2woff > +Converts OpenType fonts to WOFF fonts > +@item woff2sfnt > +Converts WOFF fonts to OpenType fonts > +@end table") > + (license (list license:mpl1.1 license:gpl2+ license:lgpl2.1+)) > + (home-page "https://people.mozilla.com/~jkew/woff/"))) > + > (define-public fontconfig > (package > (name "fontconfig") > -- > 2.7.3 > Looks good to me -- Efraim Flashner <efr...@flashner.co.il> אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature