diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-13 23:36:16 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-13 23:36:16 +0000 |
commit | 5ee866097f7722d669e9a3b4ca2906105852e6ec (patch) | |
tree | 890944c963175a5008b706f03c1fb949a657f9ef /dev-libs/libei | |
parent | 8234174b0455dd6d6656a24155014c4fba8fad49 (diff) |
gentoo auto-resync : 13:02:2024 - 23:36:16
Diffstat (limited to 'dev-libs/libei')
-rw-r--r-- | dev-libs/libei/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libei/libei-1.2.1.ebuild | 98 |
2 files changed, 100 insertions, 0 deletions
diff --git a/dev-libs/libei/Manifest b/dev-libs/libei/Manifest index a371ff3fa9b7..63757b3d4c73 100644 --- a/dev-libs/libei/Manifest +++ b/dev-libs/libei/Manifest @@ -1,6 +1,8 @@ DIST libei-1.1.0.tar.bz2 169197 BLAKE2B 3f33b21a9876da533a6f52ecc2478065f4f3083f72880cf09f1bbeadcdcaed843e681e5d9fc8692ff667fe7262195caa272712b755997ca74a1b90f24492c08d SHA512 93525215cf896213e5f28581a1701cfccaf1ea07ae85744c01b6152ff29c2c9d6fd3afeeb8de5850cde915b540d3452bfe32c8c56bf780dd401da9947e28044b DIST libei-1.2.0.tar.bz2 174155 BLAKE2B 4b540cb79decd9785f67efa6fa76b984eb7ae2729dd49ac36e240b6a4feb4c54b34626dad93831c873861e3d3fd597c530e7eaaab0150890f0c952a9d75ee178 SHA512 c1d39c2c830df373ff5d7cc3eca330c2d771a26df6f2902d62f639a8a4db9af5370db4b9defe605721dd1f429eae68cbc4249792b3ae26b4c82d269f07a36732 +DIST libei-1.2.1.tar.bz2 174636 BLAKE2B b718d2287e83adb43a8dee9ae06499d780b2a50231e9ce452b6e7bfa9e89e9599058628614fb4325d0cef842d6b29ca68eb38b3e547790cd5a7a0ac14728f250 SHA512 ac8e32a381b9555a6b9becab9217a323d79aeba4b3f11e1dbba9f876d566f232f41d0f299f8cb8e5de6707d0dd91e93872edd81532c971e35d1cf33f9f9063b4 DIST munit-fbbdf1467eb0d04a6ee465def2e529e4c87f2118.tar.gz 27724 BLAKE2B 9670c9b7a0b5d9ee6ec8df2dea9e241b043964ecf1fa3f6060ad1d16c40ab6afe47f53c6d4a791003e101a0b363263b858e6e4e445f868292753dd1ee7f7e3ce SHA512 26b5599fd12be627a692823ebf496fa446be7ed04a1233fb42e0667c05109b0f804f76646e289ac660fc815baf45f77ec8caf0ff2ea7fb0b4f87f0038a2b971c EBUILD libei-1.1.0.ebuild 2399 BLAKE2B e03d93794150f63923cd86fab7ff068bb2327a649a68edfd27103816bd5295c41a7d9ba127d0b3dddb9a17aaf4a29d41c84d8aedf94469f9b18e0b1e707491ae SHA512 3ce3900fde69057b99ab9931e66ba1fd74c1a887218dfd3b70e19e6d6ccfedb608ebb9d977ce0e2925fbdd6040f6ce043cda8510eacfb90c35248fa5306a9e36 EBUILD libei-1.2.0.ebuild 2404 BLAKE2B a3a2286bc1a5fce6910a92ccf8b3e16a6258cf3c1ef9b9c3af2951100e0a7a5d6edaf79923a33c88b5bb5125752aedb4120dee9b1c8b6c2f67d426a80dd35ae4 SHA512 ba21a436be2356a0dafae3673f464708dee2068a6a7a93283128ebb1692c1d2712c8eacbef359328a0a4a501a6967d7a329f88f4dc977a6ad29f6e25c3c1a2c0 +EBUILD libei-1.2.1.ebuild 2410 BLAKE2B c2dc17b1e9eee0135a103294c79dee3eb1f7b14fd30770fae78c1545b22581ef5d328d25334d09de00de6989a8cf3e45aa7b684d7f7d28da8a898bf1fcb09d1f SHA512 63b19a7d3dbcf521e4789025755c3d921aa5767c83cac25c0f287cab29f52bbcf2c856d9edba3d01f0a764a1fac66f71dad5358ce23c56c3366c12fb05399323 MISC metadata.xml 336 BLAKE2B 2fd4200876fa044f3563b0eea2096214af92fed1a8db009cf4885a7cf32f303b0a6911dba18cc8fac942348dbe2668ea2d50fabedd235e33be0793076ab0e5be SHA512 a26feb7d41edc6f728bfbaf805cfefa6bba4c5161e70785e7de5f389492f405f7cd6f2c55cce1d2c6bdf9af3aba17e1e51254d9e4421c4fab2e61f2c563c8f3f diff --git a/dev-libs/libei/libei-1.2.1.ebuild b/dev-libs/libei/libei-1.2.1.ebuild new file mode 100644 index 000000000000..0e3de5795b0f --- /dev/null +++ b/dev-libs/libei/libei-1.2.1.ebuild @@ -0,0 +1,98 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit meson python-any-r1 + +DESCRIPTION="Library for Emulated Input, primarily aimed at the Wayland stack" +HOMEPAGE="https://gitlab.freedesktop.org/libinput/libei" +SRC_URI="https://gitlab.freedesktop.org/libinput/${PN}/-/archive/${PV}/${P}.tar.bz2" +MUNIT_COMMIT="fbbdf1467eb0d04a6ee465def2e529e4c87f2118" +SRC_URI+=" https://github.com/nemequ/munit/archive/${MUNIT_COMMIT}.tar.gz -> munit-${MUNIT_COMMIT}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="elogind systemd test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/libevdev-1.9.902 + || ( + systemd? ( >=sys-apps/systemd-237 ) + elogind? ( >=sys-auth/elogind-237 ) + sys-libs/basu + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + $(python_gen_any_dep ' + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + ') + test? ( + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/structlog[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + if use test; then + python_has_version \ + "dev-python/pytest[${PYTHON_USEDEP}]" \ + "dev-python/python-dbusmock[${PYTHON_USEDEP}]" \ + "dev-python/pyyaml[${PYTHON_USEDEP}]" \ + "dev-python/structlog[${PYTHON_USEDEP}]" \ + || return 1 + fi + python_has_version \ + "dev-python/attrs[${PYTHON_USEDEP}]" \ + "dev-python/jinja[${PYTHON_USEDEP}]" \ + || return 1 +} + +src_unpack() { + if [[ -n ${A} ]]; then + unpack ${A} + mv "${WORKDIR}"/munit-${MUNIT_COMMIT} "${WORKDIR}"/${P}/subprojects/munit || die + rm "${WORKDIR}"/${P}/subprojects/munit.wrap || die + fi +} + +src_prepare() { + default + + sed -i -e 's:^valgrind = .*:valgrind = disabler():g' test/meson.build || die +} + +src_configure() { + local emesonargs=( + -Ddocumentation="" + -Dliboeffis=enabled + $(meson_feature test tests) + ) + if use systemd; then + emesonargs+=(-Dsd-bus-provider=libsystemd) + elif use elogind; then + emesonargs+=(-Dsd-bus-provider=libelogind) + else + emesonargs+=(-Dsd-bus-provider=basu) + fi + meson_src_configure +} + +src_install() { + meson_src_install + + # munit subproject is installed but not wanted + if use test; then + rm "${ED}"/usr/lib*/libmunit.so || die + fi +} |