summaryrefslogtreecommitdiffstats
path: root/fonts-x11
diff options
context:
space:
mode:
Diffstat (limited to 'fonts-x11')
-rwxr-xr-xfonts-x11/proggyfonts/BUILD3
-rwxr-xr-xfonts-x11/proggyfonts/DEPENDS2
-rwxr-xr-xfonts-x11/proggyfonts/DETAILS142
-rw-r--r--fonts-x11/proggyfonts/HISTORY3
-rwxr-xr-xfonts-x11/proggyfonts/INSTALL22
-rwxr-xr-xfonts-x11/proggyfonts/PREPARE1
-rwxr-xr-xfonts-x11/proggyfonts/PRE_BUILD22
7 files changed, 195 insertions, 0 deletions
diff --git a/fonts-x11/proggyfonts/BUILD b/fonts-x11/proggyfonts/BUILD
new file mode 100755
index 0000000000..97df349088
--- /dev/null
+++ b/fonts-x11/proggyfonts/BUILD
@@ -0,0 +1,3 @@
+for font in *.pcf; do
+ gzip -9 "${font}"
+done
diff --git a/fonts-x11/proggyfonts/DEPENDS b/fonts-x11/proggyfonts/DEPENDS
new file mode 100755
index 0000000000..95ac76d299
--- /dev/null
+++ b/fonts-x11/proggyfonts/DEPENDS
@@ -0,0 +1,2 @@
+depends unzip &&
+depends smgl-foma
diff --git a/fonts-x11/proggyfonts/DETAILS b/fonts-x11/proggyfonts/DETAILS
new file mode 100755
index 0000000000..1a14168cbc
--- /dev/null
+++ b/fonts-x11/proggyfonts/DETAILS
@@ -0,0 +1,142 @@
+ SPELL=proggyfonts
+ VERSION=current
+ SOURCE=ProggyClean.pcf.zip
+ SOURCE2=ProggySquare.pcf.zip
+ SOURCE3=ProggySmall.pcf.zip
+ SOURCE4=ProggyTiny.pcf.zip
+ SOURCE5=ProggyCleanSZ.pcf.zip
+ SOURCE6=ProggySquareSZ.pcf.zip
+ SOURCE7=ProggyTinySZ.pcf.zip
+ SOURCE8=ProggyCleanSZBP.pcf.zip
+ SOURCE9=ProggyCleanCP.pcf.zip
+ SOURCE10=Progsole.bdf.zip
+ SOURCE11=CodingFontTobi.pcf.zip
+ SOURCE12=Opti.pcf.gz
+ SOURCE13=OptiSmall.pcf.gz
+ SOURCE14=SpeedyPCF.zip
+ SOURCE15=PixelCarnageMono.pcf.gz
+ SOURCE16=WebbySmall.pcf.zip
+ SOURCE17=WebbyCaps.pcf.zip
+ SOURCE_URI=http://upperbounds.net/download/download_bridge.php?get=
+ SOURCE_URI2=https://cdn.proggyfonts.net/wp-content/downloads/
+ SOURCE_URL[0]=${SOURCE_URI}${SOURCE}
+ SOURCE2_URL[0]=${SOURCE_URI}${SOURCE2}
+ SOURCE3_URL[0]=${SOURCE_URI}${SOURCE3}
+ SOURCE4_URL[0]=${SOURCE_URI}${SOURCE4}
+ SOURCE5_URL[0]=${SOURCE_URI}${SOURCE5}
+ SOURCE6_URL[0]=${SOURCE_URI}${SOURCE6}
+ SOURCE7_URL[0]=${SOURCE_URI}${SOURCE7}
+ SOURCE8_URL[0]=${SOURCE_URI}${SOURCE8}
+ SOURCE9_URL[0]=${SOURCE_URI}${SOURCE9}
+ SOURCE10_URL[0]=${SOURCE_URI}${SOURCE10}
+ SOURCE11_URL[0]=${SOURCE_URI}${SOURCE11}
+ SOURCE12_URL[0]=${SOURCE_URI}${SOURCE12}
+ SOURCE13_URL[0]=${SOURCE_URI}${SOURCE13}
+ SOURCE14_URL[0]=${SOURCE_URI}${SOURCE14}
+ SOURCE15_URL[0]=${SOURCE_URI}${SOURCE15}
+ SOURCE16_URL[0]=${SOURCE_URI}${SOURCE16}
+ SOURCE17_URL[0]=${SOURCE_URI}${SOURCE17}
+ SOURCE_URL[1]=${SOURCE_URI2}${SOURCE}
+ SOURCE2_URL[1]=${SOURCE_URI2}${SOURCE2}
+ SOURCE3_URL[1]=${SOURCE_URI2}${SOURCE3}
+ SOURCE4_URL[1]=${SOURCE_URI2}${SOURCE4}
+ SOURCE5_URL[1]=${SOURCE_URI2}${SOURCE5}
+ SOURCE6_URL[1]=${SOURCE_URI2}${SOURCE6}
+ SOURCE7_URL[1]=${SOURCE_URI2}${SOURCE7}
+ SOURCE8_URL[1]=${SOURCE_URI2}${SOURCE8}
+ SOURCE9_URL[1]=${SOURCE_URI2}${SOURCE9}
+ SOURCE10_URL[1]=${SOURCE_URI2}${SOURCE10}
+ SOURCE11_URL[1]=${SOURCE_URI2}${SOURCE11}
+ SOURCE12_URL[1]=${SOURCE_URI2}${SOURCE12}
+ SOURCE13_URL[1]=${SOURCE_URI2}${SOURCE13}
+ SOURCE14_URL[1]=${SOURCE_URI2}${SOURCE14}
+ SOURCE15_URL[1]=${SOURCE_URI2}${SOURCE15}
+ SOURCE16_URL[1]=${SOURCE_URI2}${SOURCE16}
+ SOURCE17_URL[1]=${SOURCE_URI2}${SOURCE17}
+ SOURCE_HASH=sha512:c710d4f0cc7598b856b2ed7847fd8bd05a25a678a60258b47461d05a8ed17bb1e6c7958a5478f0df5dc30e1ae3f6a19616b1c27d921bdef8214e8aa8d5405db8
+ SOURCE2_HASH=sha512:787fe2d9f81b1640d31b9d0d6ae8ea34cb22ff2cac47e9c6ba2da636630ae01625990b083dfe3896ed92d5ace230e368720ff4e8998f7775618c46a0074d8ffa
+ SOURCE3_HASH=sha512:eada9348e0b02e875a70e8f595a148637089e959b65c37e36176aecc6aafbc6b361a1e6eb5c855b1ea45de41388459a41b30555bee4de26d7ed153bd576d7387
+ SOURCE4_HASH=sha512:ff64bd50ae8c1bf5e2f8e4546b219ef576bbbeb67a482a6462ae8f4183ecd2eafc04aa68009dcc38d431a6616e450f534c393a886f1f685c112f4aacdf21cc50
+ SOURCE5_HASH=sha512:3849f0096adbd43bf717ac2f459d60fbcfa21fe3c6cf2c4e29469060261a4d663d392de9b0e0bf89af73490c028b1787bdb2590732a3db7a024aea4693098bbb
+ SOURCE6_HASH=sha512:19601a48d3765b3944b97081246f0c2b9a15d4d9c740b15f1807386ac1f5ffdb81d666741c43b705a6ebc895a4220736a4c32adf6d7f428d218cbc5f86a96752
+ SOURCE7_HASH=sha512:091a04725a71f24032b0243f5aefdd8ebcb8e7db730628c8811a4c3e85b78969c7a6652796429f9736a1b1de2d7abe02cbaef2e4134cdc188e1c8b4de90ebd43
+ SOURCE8_HASH=sha512:8ebff8ec93d03a59cabee31132020148d484184a3f145ddd814e381eb1162249344c6271c60733eeebf3c7f8428dcd80fa6c522519fb87cb3d55d793a0c65297
+ SOURCE9_HASH=sha512:98551f7ca0d02d660292f97f2ddfb3dc4c7183a23338ff83432eefdb522a872194713ad1168ee94e5654dbd2903fbc90c158cfc0aa64c717412da68338225508
+ SOURCE10_HASH=sha512:5675b94246dd18c8ea5ceca8c2203a1ecdcee93cf7164b79b7d2ed735ba40dea19b5d3a345778ae83fa5303ba5a3e15bebfc6ab59c42abd7929a96f407a5cad7
+ SOURCE11_HASH=sha512:9657e95ee3face9c42a851f32fc2b5e28daf005b2d71cd1eea64e6e32e4d16b0a61cbf555b03c20d979cc2a9e22d1319395a683faf09baf1d4ff43ba3c73de14
+ SOURCE12_HASH=sha512:045e371b5ec795c77b2990098ccfb7d87c6f9ecec4b330e958c9d360679711ff275b27f368cf54f069c2a757acd5ba7505d79c89f959cc38383ef41e4eca59ad
+ SOURCE13_HASH=sha512:cffb9577bd446d1c3d39bf6c86f41ba93fc0bb5e526c2f4a5fa05a8f5dd1f2d056e06a8262fc9ba2dfa2b8aa06caa8b4a8cca32d6ec73206e3f1abf64456f05d
+ SOURCE14_HASH=sha512:9ae3e0e42cc1ebde036e7bcbb0a293610b7d2b969414e0eb0fbcc4bccabc876f3efe501a8fdaee2070c346e92bdd45732fd59fc6739026e1d13e3c0b4e970b21
+ SOURCE15_HASH=sha512:96d75e00aed880aa7e08e580c55f2beb9099b1a1ff93d817ce88165f942f59ced3e0d6ca7368b225ed8bea8592655dea52729605e22ad6d71261c9c6badfe0e6
+ SOURCE16_HASH=sha512:62b07f15e18e6de74fe54dc1466ea07c95a6b3606ce49f6b88d8d147c11becc801d2f7127c253b3dd6e7e833f8e8af5b3cf536459b6b62f7473a20988ab1303e
+ SOURCE17_HASH=sha512:93ec837845b330116066e6505ade1170ed6269bf2a94d06b40735989241bfef70f175483da9cabc01c742ebc5097fbf07d51bb576573dfe992f3938841471e9b
+if [[ ${PROGGYFONTS_TTF} == y ]]; then
+ SOURCE18=ProggyClean.ttf.zip
+ SOURCE19=ProggySquare.ttf.zip
+ SOURCE20=ProggySmall.ttf.zip
+ SOURCE21=ProggyTiny.ttf.zip
+ SOURCE22=ProggyCleanSZ.ttf.zip
+ SOURCE23=ProggySquareSZ.ttf.zip
+ SOURCE24=ProggyTinySZ.ttf.zip
+ SOURCE25=ProggyCleanSZBP.ttf.zip
+ SOURCE26=CodingFontTobi.zip
+ SOURCE27=Crisp.ttf.zip
+ SOURCE28=PixelCarnageMono.ttf.zip
+ SOURCE18_URL[0]=${SOURCE_URI}${SOURCE18}
+ SOURCE19_URL[0]=${SOURCE_URI}${SOURCE19}
+ SOURCE20_URL[0]=${SOURCE_URI}${SOURCE20}
+ SOURCE21_URL[0]=${SOURCE_URI}${SOURCE21}
+ SOURCE22_URL[0]=${SOURCE_URI}${SOURCE22}
+ SOURCE23_URL[0]=${SOURCE_URI}${SOURCE23}
+ SOURCE24_URL[0]=${SOURCE_URI}${SOURCE24}
+ SOURCE25_URL[0]=${SOURCE_URI}${SOURCE25}
+ SOURCE26_URL[0]=${SOURCE_URI}${SOURCE26}
+ SOURCE27_URL[0]=${SOURCE_URI}${SOURCE27}
+ SOURCE28_URL[0]=${SOURCE_URI}${SOURCE28}
+ SOURCE18_URL[1]=${SOURCE_URI2}${SOURCE18}
+ SOURCE19_URL[1]=${SOURCE_URI2}${SOURCE19}
+ SOURCE20_URL[1]=${SOURCE_URI2}${SOURCE20}
+ SOURCE21_URL[1]=${SOURCE_URI2}${SOURCE21}
+ SOURCE22_URL[1]=${SOURCE_URI2}${SOURCE22}
+ SOURCE23_URL[1]=${SOURCE_URI2}${SOURCE23}
+ SOURCE24_URL[1]=${SOURCE_URI2}${SOURCE24}
+ SOURCE25_URL[1]=${SOURCE_URI2}${SOURCE25}
+ SOURCE26_URL[1]=${SOURCE_URI2}${SOURCE26}
+ SOURCE27_URL[1]=${SOURCE_URI2}${SOURCE27}
+ SOURCE28_URL[1]=${SOURCE_URI2}${SOURCE28}
+ SOURCE18_HASH=sha512:1733924c02e12fd3ddeb3610f606c0837c9631f56309fde3c54597f69f0a7bcdd8f539b260042508aec1065bea8d0799295036091e190e65ede32c2aba97d9f3
+ SOURCE19_HASH=sha512:6363e84b04d205fe978e5fdb17ebc8ceecd357d5e567bcbb0d0091fa6da8b332fe9a992639cd1af8cc8d78a9671acc085070af1cce6f289826ad5bd2965f5fdf
+ SOURCE20_HASH=sha512:0c477f5df84798b3691ad06b0d1eea1b2ac3fdcb67be3c03d13e0c40843560a2f3216bf543d575ce7f4dfc5c797b590a175377ebba88f97252cfd93b62d8f65a
+ SOURCE21_HASH=sha512:f38563f7ff709417fcb3e0d719f6924f832adce7f68dc7a9e831e735a4ce07d12d2d1a9187b54334e5b33caf622f21d0962a40f637d193652e6a72c1a0bb4aca
+ SOURCE22_HASH=sha512:be06f60f6b9043f5137eb15b8ccd9874949906eb338f845a7eca6bc95efdd499a2b0bb8fbebb35b62666e4c3c1de0e03f1e9708fc245fd495d193f280b8bbebd
+ SOURCE23_HASH=sha512:eb511a4adb49af02c6ae5bef2edbfecc53055e24ba8bfa635cf632e50e0102aaf705b84fdb67b6ec08c0d1426085cdf1482775aade66c124c4bce7b335cecfd2
+ SOURCE24_HASH=sha512:ba1b7f343f8708e7802a4ae8ec0e699b0bb3040af0088d80bcf1b43061eceb791fe64c0f16ae6bebfceac5c4d52216da78dd908d6d91e24991e78c9b6a688aa0
+ SOURCE25_HASH=sha512:9d4683cf6b14998447d851666216d5e886e159bf4019843426e4bbce68899ec780725e5936bc338d5d419c7fe14443b76647e6439eebbda82160057ba48da384
+ SOURCE26_HASH=sha512:e5dfae4739beba42ad787d342c57d9a95ba9fe13cd31ba156351c1c176fca44393ad2c465cbb14c7169bfb42b721b590dd9a180b2316a9f09d9e69450483b8c4
+ SOURCE27_HASH=sha512:9737bb9f1545e4e899119184b544c9149b40d2189a8b18fab932465ebcfb86ca445096e3e9cc4b7328dc8b5944993292418829458982f06b05187de633b44cbc
+ SOURCE28_HASH=sha512:010d535ca7ca535f25142779f4e1dca3cf5b3b3ed684eca3b39ae93ffcc4a5eefc91fbb6daa9be852c229189878985203d908f8ff6da7efb1b325ebdae82f73e
+fi
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=http://upperbounds.net/
+ LICENSE[0]=MIT
+ ENTERED=20180204
+ SHORT="monospaced bitmap programming fonts"
+cat << EOF
+The proggy fonts are a set of fixed-width screen fonts that are designed for
+code listings.
+
+Each font only comes in one size that it looks good at. The ttf fonts should
+also be used at their intended point size as they are basically conversions of
+the pixel based bitmap versions.
+
+The fonts were optimized while coding in C or C++... for this reason,
+characters like the '*' were placed vertically centered, as '*' usually means
+dereference or multiply, but never 'to the power of' like in Fortran.
+
+The {}s are centered horizontally (as my coding style aligns braces
+vertically), the zero looks different from the capital oh, and there is never
+any confusion between ells, ones, and eyes.
+
+Additionally, the arithmetic operators (+ - * < >) are all axis aligned...
+unlike the last ones you just saw.
+EOF
diff --git a/fonts-x11/proggyfonts/HISTORY b/fonts-x11/proggyfonts/HISTORY
new file mode 100644
index 0000000000..7492449026
--- /dev/null
+++ b/fonts-x11/proggyfonts/HISTORY
@@ -0,0 +1,3 @@
+2018-02-04 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, DEPENDS, {PRE_,}BUILD, INSTALL, PREPARE: created spell,
+ version current
diff --git a/fonts-x11/proggyfonts/INSTALL b/fonts-x11/proggyfonts/INSTALL
new file mode 100755
index 0000000000..4471ef4fa7
--- /dev/null
+++ b/fonts-x11/proggyfonts/INSTALL
@@ -0,0 +1,22 @@
+local font_dir="${INSTALL_ROOT}/usr/share/fonts/X11/misc/" &&
+
+if [ ! -d "${font_dir}" ]; then
+ mkdir -p "${font_dir}"
+fi &&
+
+install -vm 0644 *.pcf.gz *.bdf "${font_dir}" &&
+
+if [[ ${PROGGYFONTS_TTF} == y ]]; then
+ font_dir="${INSTALL_ROOT}/usr/share/fonts/TTF" &&
+
+ if [ ! -d "${font_dir}" ]; then
+ mkdir -p "${font_dir}"
+ fi &&
+
+ install -vm 644 *.ttf "${font_dir}"
+fi
+
+local doc_dir="${INSTALL_ROOT}/usr/share/doc/proggyfonts" &&
+
+install -vm 755 -d "${doc_dir}" &&
+install -vm 644 Licence.txt "${doc_dir}/License.txt"
diff --git a/fonts-x11/proggyfonts/PREPARE b/fonts-x11/proggyfonts/PREPARE
new file mode 100755
index 0000000000..dfa40edad2
--- /dev/null
+++ b/fonts-x11/proggyfonts/PREPARE
@@ -0,0 +1 @@
+config_query PROGGYFONTS_TTF "Install TrueType versions for some fonts?" y
diff --git a/fonts-x11/proggyfonts/PRE_BUILD b/fonts-x11/proggyfonts/PRE_BUILD
new file mode 100755
index 0000000000..2b6844b5c8
--- /dev/null
+++ b/fonts-x11/proggyfonts/PRE_BUILD
@@ -0,0 +1,22 @@
+mk_source_dir "${SOURCE_DIRECTORY}" &&
+cd "${SOURCE_DIRECTORY}" &&
+
+for src in '' $(get_source_nums); do
+ case "${src}" in
+ ''|2|3|4|5|6|7|8|9|10|11|14|16|17|18|19|20|21|22|23|24|25|26|27|28)
+ if [ -f Licence.txt ]; then
+ rm Licence.txt
+ fi &&
+
+ unpack_file "${src}" || return 1
+ ;;
+ *)
+ {
+ verify_file "${src}" &&
+ local source_num="SOURCE${src}" &&
+
+ cp "${SOURCE_CACHE}/${!source_num}" "${SOURCE_DIRECTORY}"
+ } || return 1
+ ;;
+ esac
+done