diff options
Diffstat (limited to 'dev-libs/wayland')
-rw-r--r-- | dev-libs/wayland/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/wayland/metadata.xml | 13 | ||||
-rw-r--r-- | dev-libs/wayland/wayland-1.18.0.ebuild | 70 | ||||
-rw-r--r-- | dev-libs/wayland/wayland-1.22.0.ebuild | 66 | ||||
-rw-r--r-- | dev-libs/wayland/wayland-9999.ebuild | 56 |
5 files changed, 102 insertions, 105 deletions
diff --git a/dev-libs/wayland/Manifest b/dev-libs/wayland/Manifest index c2c407e3dfb6..e2de0f2c2836 100644 --- a/dev-libs/wayland/Manifest +++ b/dev-libs/wayland/Manifest @@ -1 +1 @@ -DIST wayland-1.18.0.tar.xz 453968 BLAKE2B ee5b3f9dff07fda85b4d64bc753aff28c4a012184eb3a4bae8e3be0fb74324f12e9ea4e3dc049e06a11c7302e3c6b1e53e49109c814381641568d92b5572eed9 SHA512 e30199e30c2bbd361ee695b4f3f7a4e264f10ed8f46f2c90762b5739fc578ae757dc39aa0258d8fbf0ed418553470bccd4b2730ed9705481cfccdab5de96a8fc +DIST wayland-1.22.0.tar.xz 229544 BLAKE2B b0bb366e7f3494813d1574228ae5dd48eccde035120d6dd8709e3a24738681ab9dd9ba6a13924b6a35982d331fa8911fa7346911da9f618be9c9109da0288629 SHA512 fb1974efc8433e97254eb83fe28974198f2b4d8246418eb3d34ce657055461e0c97bc06dd52e5066ae91bbe05bac611dc49a0937ba226ac6388d5a47241efb12 diff --git a/dev-libs/wayland/metadata.xml b/dev-libs/wayland/metadata.xml index e943b72b8a48..8cceb6f871ee 100644 --- a/dev-libs/wayland/metadata.xml +++ b/dev-libs/wayland/metadata.xml @@ -1,8 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>x11@gentoo.org</email> - <name>X11</name> -</maintainer> + <maintainer type="project"> + <email>x11@gentoo.org</email> + <name>X11</name> + </maintainer> + <upstream> + <remote-id type="freedesktop-gitlab">wayland/wayland</remote-id> + </upstream> </pkgmetadata> diff --git a/dev-libs/wayland/wayland-1.18.0.ebuild b/dev-libs/wayland/wayland-1.18.0.ebuild deleted file mode 100644 index 2924e39d6f0e..000000000000 --- a/dev-libs/wayland/wayland-1.18.0.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -if [[ ${PV} = *9999* ]]; then - EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/wayland.git" - inherit git-r3 -else - SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz" - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86" -fi -inherit autotools libtool multilib-minimal toolchain-funcs - -DESCRIPTION="Wayland protocol libraries" -HOMEPAGE="https://wayland.freedesktop.org/ https://gitlab.freedesktop.org/wayland/wayland" - -LICENSE="MIT" -SLOT="0" -IUSE="doc" - -BDEPEND=" - virtual/pkgconfig - doc? ( - >=app-doc/doxygen-1.6[dot] - app-text/xmlto - >=media-gfx/graphviz-2.26.0 - sys-apps/grep[pcre] - ) -" -DEPEND=" - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] - dev-libs/libxml2:= - >=dev-libs/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] -" -RDEPEND="${DEPEND} - !<media-libs/mesa-18.1.1-r1 -" - -src_prepare() { - default - [[ $PV = 9999* ]] && eautoreconf || elibtoolize -} - -multilib_src_configure() { - local myeconfargs=( - --disable-static - $(multilib_native_use_enable doc documentation) - $(multilib_native_enable dtd-validation) - ) - tc-is-cross-compiler && myeconfargs+=( --with-host-scanner ) - - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" -} - -multilib_src_install_all() { - find "${D}" -name '*.la' -delete || die - einstalldocs -} - -src_test() { - # We set it on purpose to only a short subdir name, as socket paths are - # created in there, which are 108 byte limited. With this it hopefully - # barely fits to the limit with /var/tmp/portage/$CAT/$PF/temp/xdr - export XDG_RUNTIME_DIR="${T}"/xdr - mkdir "${XDG_RUNTIME_DIR}" || die - chmod 0700 "${XDG_RUNTIME_DIR}" || die - - multilib-minimal_src_test -} diff --git a/dev-libs/wayland/wayland-1.22.0.ebuild b/dev-libs/wayland/wayland-1.22.0.ebuild new file mode 100644 index 000000000000..2a397f4586d1 --- /dev/null +++ b/dev-libs/wayland/wayland-1.22.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/wayland.git" + inherit git-r3 +else + SRC_URI="https://gitlab.freedesktop.org/wayland/${PN}/-/releases/${PV}/downloads/${P}.tar.xz" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" +fi +inherit meson-multilib + +DESCRIPTION="Wayland protocol libraries" +HOMEPAGE="https://wayland.freedesktop.org/ https://gitlab.freedesktop.org/wayland/wayland" + +LICENSE="MIT" +SLOT="0" +IUSE="doc test" +RESTRICT="!test? ( test )" + +BDEPEND=" + ~dev-util/wayland-scanner-${PV} + virtual/pkgconfig + doc? ( + >=app-text/doxygen-1.6[dot] + app-text/xmlto + >=media-gfx/graphviz-2.26.0 + ) +" +DEPEND=" + >=dev-libs/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] +" +RDEPEND="${DEPEND}" + +multilib_src_configure() { + local emesonargs=( + $(meson_native_use_bool doc documentation) + $(meson_native_true dtd_validation) + -Dlibraries=true + -Dscanner=false + $(meson_use test tests) + ) + meson_src_configure +} + +src_test() { + # We set it on purpose to only a short subdir name, as socket paths are + # created in there, which are 108 byte limited. With this it hopefully + # barely fits to the limit with /var/tmp/portage/${CATEGORY}/${PF}/temp/x + export XDG_RUNTIME_DIR="${T}"/x + mkdir "${XDG_RUNTIME_DIR}" || die + chmod 0700 "${XDG_RUNTIME_DIR}" || die + + multilib-minimal_src_test +} + +src_install() { + meson-multilib_src_install + + if use doc; then + mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die + rmdir "${ED}"/usr/share/doc/"${PN}" || die + fi +} diff --git a/dev-libs/wayland/wayland-9999.ebuild b/dev-libs/wayland/wayland-9999.ebuild index cc89001c551d..7361890a730d 100644 --- a/dev-libs/wayland/wayland-9999.ebuild +++ b/dev-libs/wayland/wayland-9999.ebuild @@ -1,68 +1,66 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 if [[ ${PV} = *9999* ]]; then EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/wayland.git" inherit git-r3 else - SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + SRC_URI="https://gitlab.freedesktop.org/wayland/${PN}/-/releases/${PV}/downloads/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" fi -inherit autotools libtool multilib-minimal toolchain-funcs +inherit meson-multilib DESCRIPTION="Wayland protocol libraries" HOMEPAGE="https://wayland.freedesktop.org/ https://gitlab.freedesktop.org/wayland/wayland" LICENSE="MIT" SLOT="0" -IUSE="doc" +IUSE="doc test" +RESTRICT="!test? ( test )" BDEPEND=" + ~dev-util/wayland-scanner-${PV} virtual/pkgconfig doc? ( - >=app-doc/doxygen-1.6[dot] + >=app-text/doxygen-1.6[dot] app-text/xmlto >=media-gfx/graphviz-2.26.0 - sys-apps/grep[pcre] ) " DEPEND=" - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] - dev-libs/libxml2:= >=dev-libs/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] " RDEPEND="${DEPEND}" -src_prepare() { - default - [[ $PV = 9999* ]] && eautoreconf || elibtoolize -} - multilib_src_configure() { - local myeconfargs=( - --disable-static - $(multilib_native_use_enable doc documentation) - $(multilib_native_enable dtd-validation) + local emesonargs=( + $(meson_native_use_bool doc documentation) + $(meson_native_true dtd_validation) + -Dlibraries=true + -Dscanner=false + $(meson_use test tests) ) - tc-is-cross-compiler && myeconfargs+=( --with-host-scanner ) - - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" -} - -multilib_src_install_all() { - find "${D}" -name '*.la' -delete || die - einstalldocs + meson_src_configure } src_test() { # We set it on purpose to only a short subdir name, as socket paths are # created in there, which are 108 byte limited. With this it hopefully - # barely fits to the limit with /var/tmp/portage/$CAT/$PF/temp/xdr - export XDG_RUNTIME_DIR="${T}"/xdr + # barely fits to the limit with /var/tmp/portage/${CATEGORY}/${PF}/temp/x + export XDG_RUNTIME_DIR="${T}"/x mkdir "${XDG_RUNTIME_DIR}" || die chmod 0700 "${XDG_RUNTIME_DIR}" || die multilib-minimal_src_test } + +src_install() { + meson-multilib_src_install + + if use doc; then + mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die + rmdir "${ED}"/usr/share/doc/"${PN}" || die + fi +} |