diff options
Diffstat (limited to 'dev-libs/libwacom')
-rw-r--r-- | dev-libs/libwacom/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libwacom/libwacom-2.5.0.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-libs/libwacom/Manifest b/dev-libs/libwacom/Manifest index e301ebaeef81..67ae34d9a725 100644 --- a/dev-libs/libwacom/Manifest +++ b/dev-libs/libwacom/Manifest @@ -1,3 +1,5 @@ DIST libwacom-2.4.0.tar.xz 108812 BLAKE2B 18f41cd052b18c652c61062948355b4738afe57db344749055492cc6853bcbe3048c582a72318891727ec0fb01a7799f4c80c544b37b51c9246f98e5ae3fef1b SHA512 c67b8a81e9f4285a4e6f422b29e9b8b3677e3fc45e5190fd2b95ad361e5ef35e124b7d78bcf2bb9d7b7183525a6be9916b3038714c42c9ef405a1075750465f3 +DIST libwacom-2.5.0.tar.xz 109284 BLAKE2B cb9443aba276694eb64c6073488746ff4aff75ed77f334425d2f391a591f0a6cf222ef2124b6533ca7f2ca8e5eef36cd335026a87afabc12d912918ac1f930ed SHA512 62d181a5f4ce1335cd72623b7e82d5d44b9a11c08ec2ef4a98fd815fe2e1f814f42c909c2977e1b1ce803f04bac43414577830ff3724643fcecaf37113d098cf EBUILD libwacom-2.4.0.ebuild 1507 BLAKE2B a8dc6326da4816e4839d61ce5ec89fb96722da29e2a919e6746fed0be433dfb5eea4aed6c5b878c6c7ee2b1620a33abcea829d4e9dc1b38ad59131a59d0a96f1 SHA512 a30ff6646d101d182e0d493db36880af9db89eed5b6482f424c48873e57e1db6a9bc45ee881ded69444863f996d6b2a9970eabb54f9b54d556d9b4cfa67be8a5 +EBUILD libwacom-2.5.0.ebuild 1513 BLAKE2B 497be7b0831ce76d4d5a05c56b8d9f3d7acb86bedda504fcfd2b833f8d39af9d6056ba13640b5533757618cf66d323e1f72a87c1a88a47fc8133d3d9b97ba3c6 SHA512 9464017a71c9b8c238e4925c6ff85c21cc4ea02e67345cd87e1abbf323614fe514c4da54e22317978ee9d1c7b2385f2831a0d481dad08e31837ae20d95a8df10 MISC metadata.xml 309 BLAKE2B 707d30ff0df4fef9c458c658c8d8ae763cc48ded42b7acba94098236fb56bfa486e8be61974113c6234c1831d08939c0c94d65d17abd2bc7a5e092fdcdef2888 SHA512 49b894496ae441153607ef14034c0df9ce6c9582e788cd55afd414a2f8189f1828da1b056142d258f7edb38e8a6ec023994b1d00734010b65ad7b50c2a108837 diff --git a/dev-libs/libwacom/libwacom-2.5.0.ebuild b/dev-libs/libwacom/libwacom-2.5.0.ebuild new file mode 100644 index 000000000000..ae8e4a1f6c57 --- /dev/null +++ b/dev-libs/libwacom/libwacom-2.5.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit meson python-any-r1 udev + +DESCRIPTION="Library for identifying Wacom tablets and their model-specific features" +HOMEPAGE="https://github.com/linuxwacom/libwacom" +SRC_URI="https://github.com/linuxwacom/${PN}/releases/download/${P}/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0/9" # libwacom SONAME +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/libgudev:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/python-libevdev[${PYTHON_USEDEP}] + dev-python/pyudev[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version "dev-python/python-libevdev[${PYTHON_USEDEP}]" && + python_has_version "dev-python/pyudev[${PYTHON_USEDEP}]" && + python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" +} + +pkg_setup() { + if use test; then + python-any-r1_pkg_setup + fi +} + +src_prepare() { + default + + # Don't call systemd daemon-reload in the test suite + sed -i -e '/daemon-reload/d' test/test_udev_rules.py || die +} + +src_configure() { + local emesonargs=( + $(meson_feature doc documentation) + $(meson_feature test tests) + -Dudev-dir=$(get_udevdir) + ) + meson_src_configure +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} |