summaryrefslogtreecommitdiffstats
path: root/fonts-x11
diff options
context:
space:
mode:
authorVlad Glagolev2017-09-27 10:14:27 -0400
committerVlad Glagolev2017-09-27 10:16:14 -0400
commit0304f4ad1e89a40b36745c255bcebb8a8d250c2f (patch)
tree5b88337545bee6dbbeb20ca3d8298da476555ed2 /fonts-x11
parent89e6fe3baa3a1b0e4bf4da3480a0361cc5597d53 (diff)
inter: new spell, Inter UI font family
Diffstat (limited to 'fonts-x11')
-rwxr-xr-xfonts-x11/inter/BUILD1
-rwxr-xr-xfonts-x11/inter/CONFIGURE4
-rwxr-xr-xfonts-x11/inter/CONFLICTS1
-rwxr-xr-xfonts-x11/inter/DEPENDS2
-rwxr-xr-xfonts-x11/inter/DETAILS15
-rw-r--r--fonts-x11/inter/HISTORY3
-rwxr-xr-xfonts-x11/inter/INSTALL26
-rwxr-xr-xfonts-x11/inter/PRE_BUILD4
8 files changed, 56 insertions, 0 deletions
diff --git a/fonts-x11/inter/BUILD b/fonts-x11/inter/BUILD
new file mode 100755
index 0000000000..27ba77ddaf
--- /dev/null
+++ b/fonts-x11/inter/BUILD
@@ -0,0 +1 @@
+true
diff --git a/fonts-x11/inter/CONFIGURE b/fonts-x11/inter/CONFIGURE
new file mode 100755
index 0000000000..3d34219e37
--- /dev/null
+++ b/fonts-x11/inter/CONFIGURE
@@ -0,0 +1,4 @@
+config_query_list INTER_FORMAT "Which font format do you want to install?" \
+ ttf \
+ ttf-hinted \
+ otf
diff --git a/fonts-x11/inter/CONFLICTS b/fonts-x11/inter/CONFLICTS
new file mode 100755
index 0000000000..d10fe5eca5
--- /dev/null
+++ b/fonts-x11/inter/CONFLICTS
@@ -0,0 +1 @@
+conflicts interface y
diff --git a/fonts-x11/inter/DEPENDS b/fonts-x11/inter/DEPENDS
new file mode 100755
index 0000000000..91c97cdefb
--- /dev/null
+++ b/fonts-x11/inter/DEPENDS
@@ -0,0 +1,2 @@
+depends smgl-foma &&
+depends unzip
diff --git a/fonts-x11/inter/DETAILS b/fonts-x11/inter/DETAILS
new file mode 100755
index 0000000000..4e6130f851
--- /dev/null
+++ b/fonts-x11/inter/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=inter
+ SPELLX=Inter-UI
+ VERSION=1.11
+ SOURCE=${SPELLX}-${VERSION}.zip
+ SOURCE_URL[0]=https://github.com/rsms/${SPELL}/releases/download/v${VERSION}/${SOURCE}
+ SOURCE_HASH=sha512:429f2ce308cb0233219e444e9eec2167b703b0c3c75fae8b7038c4f5522214a0c94c8861a547b606acb240a2bf91193aec54535b7096dec4ba80347a8f701527
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ GATHER_DOCS=off
+ WEB_SITE=https://rsms.me/inter/
+ LICENSE[0]=OFL
+ ENTERED=20170927
+ SHORT="Inter UI font family"
+cat << EOF
+Inter UI is a typeface specially designed for user interfaces.
+EOF
diff --git a/fonts-x11/inter/HISTORY b/fonts-x11/inter/HISTORY
new file mode 100644
index 0000000000..5dd1aee8db
--- /dev/null
+++ b/fonts-x11/inter/HISTORY
@@ -0,0 +1,3 @@
+2017-09-27 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, DEPENDS, CONFIGURE, {PRE_,}BUILD, INSTALL, CONFLICTS:
+ created spell, version 1.11, backported from the interface spell
diff --git a/fonts-x11/inter/INSTALL b/fonts-x11/inter/INSTALL
new file mode 100755
index 0000000000..158846972c
--- /dev/null
+++ b/fonts-x11/inter/INSTALL
@@ -0,0 +1,26 @@
+local TTF_DIR="${INSTALL_ROOT}/usr/share/fonts/X11/TTF" &&
+local OTF_DIR="${INSTALL_ROOT}/usr/share/fonts/X11/OTF" &&
+
+case "${INTER_FORMAT}" in
+ ttf)
+ if [ ! -d "${TTF_DIR}" ]; then
+ install -vm 755 -d "${TTF_DIR}"
+ fi &&
+
+ install -vm 644 "Inter UI (TTF)"/*.ttf "${TTF_DIR}"
+ ;;
+ ttf-hinted)
+ if [ ! -d "${TTF_DIR}" ]; then
+ install -vm 755 -d "${TTF_DIR}"
+ fi &&
+
+ install -vm 644 "Inter UI (TTF hinted)"/*.ttf "${TTF_DIR}"
+ ;;
+ otf)
+ if [ ! -d "${TTF_DIR}" ]; then
+ install -vm 755 -d "${TTF_DIR}"
+ fi &&
+
+ install -vm 644 "Inter (OTF)"/*.otf "${OTF_DIR}"
+ ;;
+esac
diff --git a/fonts-x11/inter/PRE_BUILD b/fonts-x11/inter/PRE_BUILD
new file mode 100755
index 0000000000..202d4dea7c
--- /dev/null
+++ b/fonts-x11/inter/PRE_BUILD
@@ -0,0 +1,4 @@
+mk_source_dir "${SOURCE_DIRECTORY}" &&
+cd "${SOURCE_DIRECTORY}" &&
+
+unpack_file