media-libs/sdl2-ttf: add 2.20.2

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-02-07 23:00:48 +00:00
parent 62040eb9db
commit aeacdb540f
2 changed files with 41 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST SDL2_ttf-2.20.0.tar.gz 13156472 BLAKE2B f31b1193beaaab0e2aaab6f56c82f4931db79ab81526398e20176c9fb121409d4f9f56109aa721d645496f6c228450cb95bda48c40037f1a3f904154e0e21fee SHA512 14c78cfa04b938f0bd141d841a9473a1678bb04d01a96391cfa37ae3e7e316c90f175aff7d052499f7d982f59b823813e4cfdd367631a44b08b85f9b60d09c8c
DIST SDL2_ttf-2.20.2.tar.gz 13161592 BLAKE2B d94a68d817c0824d7292f51ec3e20148a87235cb72daa68015af16cef7434bdc095c68a9c6efd130fc50f58996c2801cf29e4b90545b47ad2f90d7c77e238474 SHA512 b54e93b100712e3764cd80d4e4b16cd4c2a6853620f675941a4214320b0ee29a583d57ad56cd5fdb5c7a32d7615cbf43bc3fa55337b01623cee7219ebb43667c

View File

@@ -0,0 +1,40 @@
# Copyright 1999-2023 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://github.com/libsdl-org/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
rm -rf "${ED}"/usr/share/licenses/ || die
}