mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
52 lines
1.1 KiB
Bash
52 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
PYTHON_COMPAT=( python3_{11..14} )
|
|
|
|
MY_PN="${PN/xorg-/xorg}"
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
EGIT_REPO_URI="https://gitlab.freedesktop.org/xorg/proto/${MY_PN}.git"
|
|
|
|
if [[ ${PV} = 9999* ]]; then
|
|
GIT_ECLASS="git-r3"
|
|
fi
|
|
|
|
inherit ${GIT_ECLASS} meson python-any-r1
|
|
|
|
DESCRIPTION="X.Org combined protocol headers"
|
|
HOMEPAGE="https://gitlab.freedesktop.org/xorg/proto/xorgproto"
|
|
if [[ ${PV} != 9999* ]]; then
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
|
|
SRC_URI="https://xorg.freedesktop.org/archive/individual/proto/${MY_P}.tar.xz"
|
|
S="${WORKDIR}/${MY_P}"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
BDEPEND="
|
|
test? (
|
|
$(python_gen_any_dep '
|
|
dev-python/libevdev[${PYTHON_USEDEP}]
|
|
')
|
|
)
|
|
"
|
|
|
|
python_check_deps() {
|
|
python_has_version "dev-python/libevdev[${PYTHON_USEDEP}]"
|
|
}
|
|
|
|
pkg_setup() {
|
|
use test && python-any-r1_pkg_setup
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
|
|
mv "${ED}"/usr/share/doc/{xorgproto,${P}} || die
|
|
}
|