buildout.cfg 3.02 KB
Newer Older
1
[buildout]
2 3
extends =
  ../xz-utils/buildout.cfg
4
  ../p7zip/buildout.cfg
5

6
parts =
7
  android-fonts
8
  dejavu-fonts
9 10 11 12
  ipa-fonts
  ipaex-fonts
  liberation-fonts
  ocrb-fonts
13 14
  source-code-pro-fonts
  jetbrains-mono-fonts
15 16


17
[fonts-base]
18
recipe = slapos.recipe.build:download-unpacked
19 20 21
shared = true
environment =
  PATH=${xz-utils:location}/bin:%(PATH)s
22

23 24 25
# Liberation(tm) Fonts - a font family which aims at metric
# compatibility with Arial, Times New Roman, and Courier New.
[liberation-fonts]
26
<= fonts-base
27
url = https://releases.pagure.org/liberation-fonts/liberation-fonts-ttf-2.00.1.tar.gz
28
md5sum = 5c781723a0d9ed6188960defba8e91cf
29

30
# IPAex and IPA Font - Japanese fonts provided by IPA
31
# http://ipafont.ipa.go.jp/
32
[ipaex-fonts]
33
<= fonts-base
34
url = http://dl.sourceforge.jp/ipafonts/57330/IPAexfont00201.zip
35
md5sum = 7bf84182a04a9632268dbcb03f100d05
36 37

[ipa-fonts]
38
<= fonts-base
39
url = http://dl.sourceforge.jp/ipafonts/51868/IPAfont00303.zip
40
md5sum = 39a828acf27790adbe4944dfb4d94bb1
41 42

[ocrb-fonts]
43
<= fonts-base
44 45
url = http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Ftsukurimashou%2F56948%2Focr-0.2.zip
md5sum = 9f2acd83291a31dbe053912f4115db75
46 47 48 49 50

[android-fonts]
<= fonts-base
url = ftp://ftp.free.fr/mirrors/ftp.debian.org/pool/main/f/fonts-android/fonts-android_4.3.orig.tar.xz
md5sum = 2d41d5342eb5f61591ddeec5b80da74d
51 52
environment =
  PATH=${xz-utils:location}/bin:%(PATH)s
53

54 55 56 57 58 59 60
# The DejaVu fonts are a font family based upon Bitstream Vera v1.10. Its purpose is to
# provide a wider range of characters while maintaining the original look-and-feel
[dejavu-fonts]
<= fonts-base
url = https://github.com/dejavu-fonts/dejavu-fonts/releases/download/version_2_37/dejavu-fonts-ttf-2.37.tar.bz2
md5sum = d0efec10b9f110a32e9b8f796e21782c

61 62 63 64 65
[source-code-pro-fonts]
<= fonts-base
url = https://codeload.github.com/adobe-fonts/source-code-pro/zip/235b72fc43a46cacf36e7c9b45d8d4fc0d121099
md5sum = b25e165c3fb984bbf6d847adfbd9d694

66 67 68 69 70
[jetbrains-mono-fonts]
<= fonts-base
url = https://download.jetbrains.com/fonts/JetBrainsMono-2.001.zip
md5sum = 62f02985bfef43a27dbdd17641fec210

71 72 73 74
# Microsoft's TrueType core fonts
# non-free so not enabled by default
[msttcore-fonts]
recipe = slapos.recipe.build
75 76
shared = true
p7z = ${p7zip:location}/bin/7z
77 78
install =
  import os, subprocess
79 80 81 82 83 84 85 86
  os.makedirs(location)
  cmd = [options['p7z'], "x", "-ssc-", None, "*.ttf"]
  for x in options['fonts'].splitlines():
    md5sum, name = x.split()
    cmd[3] = self.download(
      "http://downloads.sf.net/corefonts/%s32.exe" % name,
      md5sum)
    subprocess.check_call(cmd, cwd=location)
87 88 89 90 91 92 93 94 95 96 97 98 99 100
slapos_promise =
slapos_update_promise = ${:slapos_promise}
fonts =
  cbdc2fdd7d2ed0832795e86a8b9ee19a  andale
  9637df0e91703179f0723ec095a36cb5  arial
  c9089ae0c3b3d0d8c4b0a95979bb9ff0  arialb
  2b30de40bb5e803a0452c7715fc835d1  comic
  4e412c772294403ab62fb2d247d85c60  courie
  4d90016026e2da447593b41a8d8fa8bd  georgi
  7907c7dd6684e9bade91cff82683d9d7  impact
  ed39c8ef91b9fb80f76f702568291bd5  times
  0d7ea16cac6261f8513a061fbfcdb2b5  trebuc
  12d2a75f8156e10607be1eaa8e8ef120  verdan
  230a1d13a365b22815f502eb24d9149b  webdin