summaryrefslogtreecommitdiff
path: root/media-libs/ttf
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-09-19 03:02:32 -0500
committerroot <root@alpha.trunkmasters.com>2026-09-19 03:02:32 -0500
commit1e827c97be50f4e8e4da3697da898689b2bde9d5 (patch)
tree126489920a753b20360b4801da163ba2f01850ec /media-libs/ttf
parentfc641028004011c6d8f1a4db9cd571823b825eab (diff)
downloadbaldeagleos-repo-1e827c97be50f4e8e4da3697da898689b2bde9d5.tar.gz
baldeagleos-repo-1e827c97be50f4e8e4da3697da898689b2bde9d5.tar.xz
baldeagleos-repo-1e827c97be50f4e8e4da3697da898689b2bde9d5.zip
Adding metadata
Diffstat (limited to 'media-libs/ttf')
-rw-r--r--media-libs/ttf/Manifest2
-rw-r--r--media-libs/ttf/metadata.xml9
-rw-r--r--media-libs/ttf/ttf-1.1.0.ebuild63
-rw-r--r--media-libs/ttf/ttf-9999.ebuild70
4 files changed, 144 insertions, 0 deletions
diff --git a/media-libs/ttf/Manifest b/media-libs/ttf/Manifest
new file mode 100644
index 000000000000..6c5bedc5954a
--- /dev/null
+++ b/media-libs/ttf/Manifest
@@ -0,0 +1,2 @@
+DIST ttf-1.1.0.tar.gz 4170512 BLAKE2B a775ca54bd5771e78d04b17e4efc09713aa549ff4d187cd37fab30d68ede304222f6f87fcb767221ab442c7f6421282b590fb016b1fcaf58219147006d7a7213 SHA512 e3e0c03ee5b9eca41e122e688e8efc1b47d9ca64b9b5ecc17daafdc12d13bda89981a856e478a0a1b7e71c4a27b4c278862564422d02bc53fc46fa20d55ab630
+DIST ttf-1.1.0.tar.gz.sig 566 BLAKE2B 1523b1e76c33422c2d69179531452fdb870f69dbd96fd4231e8752f5e8ed03231d10ef5290202fd9fd1e80c30ac26280275b5d4bccac00de0f6b1e8e47a5c74a SHA512 1c2f8dedd4112838f79601ad751b974701038cb949a7e892de84dc794aea464500cc06d9441ddd67de7b019b87ad172a70225046cddcfe07d47cf247242b1052
diff --git a/media-libs/ttf/metadata.xml b/media-libs/ttf/metadata.xml
new file mode 100644
index 000000000000..137cb98e6853
--- /dev/null
+++ b/media-libs/ttf/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+ </maintainer>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/media-libs/ttf/ttf-1.1.0.ebuild b/media-libs/ttf/ttf-1.1.0.ebuild
new file mode 100644
index 000000000000..76396daa38b9
--- /dev/null
+++ b/media-libs/ttf/ttf-1.1.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/michaelrsweet.asc
+inherit toolchain-funcs verify-sig
+
+DESCRIPTION="Simple C library for using TrueType and OpenType font files"
+HOMEPAGE="https://www.msweet.org/ttf/"
+SRC_URI="
+ https://github.com/michaelrsweet/ttf/releases/download/v${PV}/${P}.tar.gz
+ verify-sig? ( https://github.com/michaelrsweet/ttf/releases/download/v${PV}/${P}.tar.gz.sig )
+"
+
+# TODO: extension
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-michaelrsweet )"
+
+src_prepare() {
+ default
+
+ # Build verbosely
+ sed -i -e '/.SILENT:/d' Makefile.in || die
+
+ # Fix docdir
+ sed -i -e 's:/doc/pdfio:/doc/${PF}:' Makefile.in || die
+
+ # Respect CFLAGS
+ sed -i -e 's:-g -Os::' configure.ac configure || die
+
+ # We already default to >=2 in Gentoo, don't downgrade
+ sed -i -e 's: -D_FORTIFY_SOURCE=2::' configure.ac configure || die
+}
+
+src_configure() {
+ tc-export AR
+
+ local myeconfargs=(
+ # Doesn't use libtool, so have to pass manually
+ --enable-shared
+ --disable-static
+
+ --with-dsoflags="${LDFLAGS}"
+ --with-ldflags="${LDFLAGS}"
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ emake -Onone test
+}
+
+src_install() {
+ default
+
+ # We handle this elsewhere
+ rm "${ED}"/usr/share/doc/${PF}/{NOTICE,LICENSE} || die
+}
diff --git a/media-libs/ttf/ttf-9999.ebuild b/media-libs/ttf/ttf-9999.ebuild
new file mode 100644
index 000000000000..6ede74e87e00
--- /dev/null
+++ b/media-libs/ttf/ttf-9999.ebuild
@@ -0,0 +1,70 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/michaelrsweet.asc
+inherit toolchain-funcs verify-sig
+
+DESCRIPTION="Simple C library for using TrueType and OpenType font files"
+HOMEPAGE="https://www.msweet.org/ttf/"
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/michaelrsweet/ttf"
+ inherit git-r3
+else
+ SRC_URI="
+ https://github.com/michaelrsweet/ttf/releases/download/v${PV}/${P}.tar.gz
+ verify-sig? ( https://github.com/michaelrsweet/ttf/releases/download/v${PV}/${P}.tar.gz.sig )
+ "
+
+ KEYWORDS="~amd64"
+fi
+
+# TODO: extension
+LICENSE="Apache-2.0"
+SLOT="0"
+
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-michaelrsweet )"
+
+src_prepare() {
+ default
+
+ # Build verbosely
+ sed -i -e '/.SILENT:/d' Makefile.in || die
+
+ # Fix docdir
+ sed -i -e 's:/doc/pdfio:/doc/${PF}:' Makefile.in || die
+
+ # Respect CFLAGS
+ sed -i -e 's:-g -Os::' configure.ac configure || die
+
+ # We already default to >=2 in Gentoo, don't downgrade
+ sed -i -e 's: -D_FORTIFY_SOURCE=2::' configure.ac configure || die
+}
+
+src_configure() {
+ tc-export AR
+
+ local myeconfargs=(
+ # Doesn't use libtool, so have to pass manually
+ --enable-shared
+ --disable-static
+
+ --with-dsoflags="${LDFLAGS}"
+ --with-ldflags="${LDFLAGS}"
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ emake -Onone test
+}
+
+src_install() {
+ default
+
+ # We handle this elsewhere
+ rm "${ED}"/usr/share/doc/${PF}/{NOTICE,LICENSE} || die
+}