summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-07-19 01:00:34 +0000
committerSam James <sam@gentoo.org>2022-07-19 01:07:20 +0000
commit2044b967bf51f919535fa3881663618cd00868e6 (patch)
tree1697c76deae85cc0439f40d7bb9c842cc5ae3d07 /media-libs/sdl2-ttf
parentdev-python/fonttools: add 4.34.4 (diff)
downloadgentoo-2044b967bf51f919535fa3881663618cd00868e6.tar.gz
gentoo-2044b967bf51f919535fa3881663618cd00868e6.tar.bz2
gentoo-2044b967bf51f919535fa3881663618cd00868e6.zip
media-libs/sdl2-ttf: add 2.20.0
Bug: https://bugs.gentoo.org/843434 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/sdl2-ttf')
-rw-r--r--media-libs/sdl2-ttf/Manifest1
-rw-r--r--media-libs/sdl2-ttf/sdl2-ttf-2.20.0.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/media-libs/sdl2-ttf/Manifest b/media-libs/sdl2-ttf/Manifest
index 2020f94a2d53..a02e17fa59b2 100644
--- a/media-libs/sdl2-ttf/Manifest
+++ b/media-libs/sdl2-ttf/Manifest
@@ -1,2 +1,3 @@
DIST SDL2_ttf-2.0.15.tar.gz 4479718 BLAKE2B 8401ed4979dade5affa86be4463958d0c90f72d3b2874540cf868e460c5d6773a2b11eaf6d13792d23193085050970ebf877b707b0febaba9be29c4329be9d7c SHA512 30d685932c3dd6f2c94e2778357a5c502f0421374293d7102a64d92f9c7861229bf36bedf51c1a698b296a58c858ca442d97afb908b7df1592fc8d4f8ae8ddfd
DIST SDL2_ttf-2.0.18.tar.gz 14896353 BLAKE2B d1409353b06a1ca33e053ffabf1b05222705ba7df0cdf95b12724218649981a1d7b6f895c82b90d6da26bb34561760d6d37b62c0f64ea8672319cb6d7d0ce882 SHA512 9a211c07d4180fe3fb2f7614e907d1002ddf3bb77b57f62116f22dc29a6043f091deb6a8113656d26a44d2f06b9abcc372aa3e0761500fcf47b455406973a1c7
+DIST SDL2_ttf-2.20.0.tar.gz 13156472 BLAKE2B f31b1193beaaab0e2aaab6f56c82f4931db79ab81526398e20176c9fb121409d4f9f56109aa721d645496f6c228450cb95bda48c40037f1a3f904154e0e21fee SHA512 14c78cfa04b938f0bd141d841a9473a1678bb04d01a96391cfa37ae3e7e316c90f175aff7d052499f7d982f59b823813e4cfdd367631a44b08b85f9b60d09c8c
diff --git a/media-libs/sdl2-ttf/sdl2-ttf-2.20.0.ebuild b/media-libs/sdl2-ttf/sdl2-ttf-2.20.0.ebuild
new file mode 100644
index 000000000000..842f7e1ef60b
--- /dev/null
+++ b/media-libs/sdl2-ttf/sdl2-ttf-2.20.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+MY_P="SDL2_ttf-${PV}"
+DESCRIPTION="Library that allows you to use TrueType fonts in SDL applications"
+HOMEPAGE="https://www.libsdl.org/projects/SDL_ttf/"
+SRC_URI="https://github.com/libsdl-org/SDL_ttf/releases/download/release-${PV}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="+harfbuzz static-libs X"
+
+# On bumps, check external/ for versions of bundled freetype + harfbuzz
+# to crank up the dep bounds.
+RDEPEND=">=media-libs/libsdl2-2.0.12[${MULTILIB_USEDEP}]
+ >=media-libs/freetype-2.10.4[harfbuzz?,${MULTILIB_USEDEP}]
+ virtual/opengl[${MULTILIB_USEDEP}]
+ harfbuzz? ( >=media-libs/harfbuzz-2.8.0:=[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DSDL2TTF_VENDORED=OFF
+ -DSDL2TTF_HARFBUZZ=$(usex harfbuzz)
+ )
+
+ cmake_src_configure
+}
+
+multilib_src_install_all() {
+ dodoc {CHANGES,README}.txt
+}