summaryrefslogtreecommitdiffstats
path: root/graphics-libs
diff options
context:
space:
mode:
authorPavel Vinogradov2022-12-17 20:06:32 -0500
committerPavel Vinogradov2022-12-17 20:10:50 -0500
commit749f7d45454641c7d0c758e2cd7f791be31efb54 (patch)
tree591d55cc321e4c2ea7af9b3ed6213c8296807cfa /graphics-libs
parentb22e03292d19377936c6a3212473fe86176d9fae (diff)
graphics-libs/fcft: new spell, simple library for font loading and glyph
rasterization using FontConfig, FreeType and pixman
Diffstat (limited to 'graphics-libs')
-rwxr-xr-xgraphics-libs/fcft/CONFIGURE1
-rwxr-xr-xgraphics-libs/fcft/DEPENDS27
-rwxr-xr-xgraphics-libs/fcft/DETAILS37
-rw-r--r--graphics-libs/fcft/HISTORY3
-rwxr-xr-xgraphics-libs/fcft/PREPARE2
5 files changed, 70 insertions, 0 deletions
diff --git a/graphics-libs/fcft/CONFIGURE b/graphics-libs/fcft/CONFIGURE
new file mode 100755
index 0000000000..9f48d22f39
--- /dev/null
+++ b/graphics-libs/fcft/CONFIGURE
@@ -0,0 +1 @@
+. "${GRIMOIRE}/MESON_CONFIGURE"
diff --git a/graphics-libs/fcft/DEPENDS b/graphics-libs/fcft/DEPENDS
new file mode 100755
index 0000000000..6ae071bba0
--- /dev/null
+++ b/graphics-libs/fcft/DEPENDS
@@ -0,0 +1,27 @@
+. "${GRIMOIRE}/MESON_DEPENDS" &&
+
+if [[ "${FOOT_BRANCH}" == "scm" ]]; then
+ depends git
+fi &&
+
+depends fontconfig &&
+depends freetype2 &&
+depends pixman &&
+depends tllist &&
+
+optional_depends utf8proc \
+ "run-shaping=enabled" \
+ "run-shaping=disabled" \
+ "for run shaping" &&
+
+if is_depends_enabled "${SPELL}" "utf8proc"; then
+ optional_depends harfbuzz \
+ "grapheme-shaping=enabled" \
+ "grapheme-shaping=disabled" \
+ "for grapheme shaping"
+fi &&
+
+optional_depends scdoc \
+ "docs=enabled" \
+ "docs=disabled" \
+ "for documentation"
diff --git a/graphics-libs/fcft/DETAILS b/graphics-libs/fcft/DETAILS
new file mode 100755
index 0000000000..132420878b
--- /dev/null
+++ b/graphics-libs/fcft/DETAILS
@@ -0,0 +1,37 @@
+. "${GRIMOIRE}/FUNCTIONS"
+. "${GRIMOIRE}/MESON_FUNCTIONS"
+ SPELL="fcft"
+if [[ "${FOOT_BRANCH}" == "scm" ]]; then
+ VERSION="$(get_scm_version)"
+ SOURCE="${SPELL}-git.tar.xz"
+ FORCE_DOWNLOAD="on"
+ SOURCE_URL[0]="git_http://codeberg.org/dnkl/${SPELL}:${SPELL}-git"
+ SOURCE_IGNORE="volatile"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-git"
+else
+ VERSION="3.1.5"
+ SOURCE_HASH="sha512:e223d7e825d8f81f05d2f7ec1b945b28311386dc6ccf55eefaeff2231d64483fdf18a2468f942586ecc0bb4ef75ed9ef0a8a490162b0f8bf7a8619e46742c564"
+ SOURCE="${SPELL}-${VERSION}.tar.gz"
+ SOURCE_URL[0]="https://codeberg.org/dnkl/${SPELL}/archive/${VERSION}.tar.gz"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}"
+fi
+ LICENSE[0]="MIT"
+ WEB_SITE="https://codeberg.org/dnkl/fcft"
+ ENTERED="20221217"
+ SHORT="simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman"
+cat << EOF
+fcft is a small font loading and glyph rasterization library built on-top of
+FontConfig, FreeType2 and pixman.
+
+It can load and cache fonts from a fontconfig-formatted name string, e.g.
+Monospace:size=12, optionally with user configured fallback fonts.
+
+After a font has been loaded, you can rasterize glyphs. When doing so,
+the primary font is first considered. If it does not have the requested glyph,
+the user configured fallback fonts (if any) are considered. If none of
+the user configured fallback fonts has the requested glyph, the FontConfig
+generated list of fallback fonts are checked.
+
+The API is documented as man pages. These are built and installed when fcft is
+built as a standalone project, but not when built as a subproject.
+EOF
diff --git a/graphics-libs/fcft/HISTORY b/graphics-libs/fcft/HISTORY
new file mode 100644
index 0000000000..55b48d9777
--- /dev/null
+++ b/graphics-libs/fcft/HISTORY
@@ -0,0 +1,3 @@
+2022-12-17 Pavel Vinogradov <public@sourcemage.org>
+ * CONFIGURE, DEPENDS, DETAILS, PREPARE: created spell, version 3.1.5
+
diff --git a/graphics-libs/fcft/PREPARE b/graphics-libs/fcft/PREPARE
new file mode 100755
index 0000000000..e38d86f7e9
--- /dev/null
+++ b/graphics-libs/fcft/PREPARE
@@ -0,0 +1,2 @@
+. "${GRIMOIRE}/FUNCTIONS" &&
+prepare_select_branch stable scm