mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
also - remove "A " from DESCRIPTION - remove cmake BDEPEND -- it's in `inherit cmake` - shorten `usex` Signed-off-by: Filip Kobierski <fkobi@pm.me> Part-of: https://github.com/gentoo/gentoo/pull/42640 Closes: https://github.com/gentoo/gentoo/pull/42640 Signed-off-by: Sam James <sam@gentoo.org>
35 lines
840 B
Bash
35 lines
840 B
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
# it's a header-only lib, thus not cmake-multilib. However, examples and tests...
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Stripped down fork of boost-ext ut2"
|
|
HOMEPAGE="https://github.com/openalgz/ut"
|
|
SRC_URI="https://github.com/openalgz/ut/archive/refs/tags/v${PV}.tar.gz -> ut2-openalgz-${PV}.tar.gz"
|
|
|
|
S="${WORKDIR}/ut-${PV}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
# Build patches from Arniiiii, https://github.com/gentoo-mirror/ex_repo
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-optional-test.patch"
|
|
"${FILESDIR}/${P}-project-name.patch"
|
|
"${FILESDIR}/${P}-fix-installing.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DCMAKE_SKIP_INSTALL_RULES=OFF
|
|
-DBUILD_TESTING=$(usex test)
|
|
)
|
|
cmake_src_configure
|
|
}
|