dev-libs/wlroots: minor fixes
authorNiccolò Scatena <speedjack95@gmail.com>
Sat, 9 Feb 2019 15:43:51 +0000 (16:43 +0100)
committerAaron Bauman <bman@gentoo.org>
Wed, 13 Feb 2019 00:04:16 +0000 (19:04 -0500)
 - Update copyright header in all versions;

 - Use ${PN} wherever possible;

 - Remove explicit dependency on meson (no longer required);

 - Fix the order of (R)DEPEND;

 - wayland-protocols is a build-time dependency: move it in BDEPEND;

 - Add xcb-util-image dependency (required);

 - Remove `xkb` flag from libxcb dep (not required for >=wlroots-0.2).

Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Niccolò Scatena <speedjack95@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11017
Signed-off-by: Aaron Bauman <bman@gentoo.org>
dev-libs/wlroots/metadata.xml
dev-libs/wlroots/wlroots-0.1.ebuild
dev-libs/wlroots/wlroots-0.2.ebuild
dev-libs/wlroots/wlroots-0.3.ebuild
dev-libs/wlroots/wlroots-9999.ebuild

index c5b96abdf82611d42111a507f0c2ac61572df39d..5fb5999bdba5489ce279e2a7f2e0a5ae2ef9c45d 100644 (file)
@@ -9,7 +9,7 @@
                <email>speedjack95@gmail.com</email>
                <name>Niccolò Scatena</name>
        </maintainer>
-       <longdescription>
+       <longdescription lang="en">
                Pluggable, composable, unopinionated modules for building a Wayland
                compositor.
 
index eae2493458cd358e2bab29ac0272d28b1f18ff07..ccb05632597546942fa119e4a3e0f1e44be1a63e 100644 (file)
@@ -1,29 +1,29 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-if [[ ${PV} == 9999 ]] ; then
-       EGIT_REPO_URI="https://github.com/swaywm/wlroots.git"
-       inherit git-r3
-else
-       SRC_URI="https://github.com/swaywm/wlroots/archive/${PV}.tar.gz -> ${P}.tar.gz"
-       KEYWORDS="~amd64 ~x86"
-fi
-
 inherit fcaps meson
 
 DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
 HOMEPAGE="https://github.com/swaywm/wlroots"
 
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
 LICENSE="MIT"
 SLOT="0"
 IUSE="elogind icccm rootston systemd x11-backend X"
 REQUIRED_USE="?? ( elogind systemd )"
 
-RDEPEND=">=dev-libs/libinput-1.7.0:0=
+DEPEND="
+       >=dev-libs/libinput-1.7.0:0=
        >=dev-libs/wayland-1.16.0
-       >=dev-libs/wayland-protocols-1.15
        media-libs/mesa[egl,gles2,gbm]
        virtual/libudev
        x11-libs/libdrm
@@ -36,10 +36,16 @@ RDEPEND=">=dev-libs/libinput-1.7.0:0=
        X? (
                x11-base/xorg-server[wayland]
                x11-libs/libxcb:0=
-       )"
-DEPEND="${RDEPEND}"
-BDEPEND=">=dev-util/meson-0.48
-       virtual/pkgconfig"
+               x11-libs/xcb-util-image
+       )
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       >=dev-libs/wayland-protocols-1.15
+       virtual/pkgconfig
+"
 
 FILECAPS=( cap_sys_admin usr/bin/rootston )
 
@@ -52,13 +58,13 @@ src_configure() {
                -Dxcb-xkb=$(usex x11-backend enabled disabled)
                -Dxwayland=$(usex X enabled disabled)
                -Dx11-backend=$(usex x11-backend enabled disabled)
-               -Drootston=$(usex rootston true false)
+               $(meson_use rootston)
                "-Dexamples=false"
                "-Dwerror=false"
        )
-       if use systemd ; then
+       if use systemd; then
                emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
-       elif use elogind ; then
+       elif use elogind; then
                emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
        else
                emesonargs+=("-Dlogind=disabled")
@@ -68,7 +74,7 @@ src_configure() {
 }
 
 src_install() {
-       if use rootston ; then
+       if use rootston; then
                dobin "${BUILD_DIR}"/rootston/rootston
                newdoc rootston/rootston.ini.example rootston.ini
        fi
@@ -79,13 +85,13 @@ src_install() {
 pkg_postinst() {
        elog "You must be in the input group to allow your compositor"
        elog "to access input devices via libinput."
-       if use rootston ; then
+       if use rootston; then
                elog ""
                elog "You should copy (and decompress) the example configuration file"
                elog "from ${EROOT:-${ROOT}}/usr/share/doc/${PF}/rootston.ini"
                elog "to the working directory from where you launch rootston"
                elog "(or pass the '-C path-to-config' option to rootston)."
-               if ! use systemd && ! use elogind ; then
+               if ! use systemd && ! use elogind; then
                        elog ""
                        elog "If you use ConsoleKit2, remember to launch rootston using:"
                        elog "exec ck-launch-session rootston"
index c3bccd9f7fe9dc23451d9b04821aa3ac798f854e..a3427d6c6fc3d5f08f030ad14fade40c02b217f7 100644 (file)
@@ -1,29 +1,29 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-if [[ ${PV} == 9999 ]] ; then
-       EGIT_REPO_URI="https://github.com/swaywm/wlroots.git"
-       inherit git-r3
-else
-       SRC_URI="https://github.com/swaywm/wlroots/archive/${PV}.tar.gz -> ${P}.tar.gz"
-       KEYWORDS="~amd64 ~x86"
-fi
-
 inherit fcaps meson
 
 DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
 HOMEPAGE="https://github.com/swaywm/wlroots"
 
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
 LICENSE="MIT"
 SLOT="0"
 IUSE="elogind icccm rootston systemd x11-backend X"
 REQUIRED_USE="?? ( elogind systemd )"
 
-RDEPEND=">=dev-libs/libinput-1.7.0:0=
+DEPEND="
+       >=dev-libs/libinput-1.7.0:0=
        >=dev-libs/wayland-1.16.0
-       >=dev-libs/wayland-protocols-1.15
        media-libs/mesa[egl,gles2,gbm]
        virtual/libudev
        x11-libs/libdrm
@@ -36,10 +36,16 @@ RDEPEND=">=dev-libs/libinput-1.7.0:0=
        X? (
                x11-base/xorg-server[wayland]
                x11-libs/libxcb:0=
-       )"
-DEPEND="${RDEPEND}"
-BDEPEND=">=dev-util/meson-0.48
-       virtual/pkgconfig"
+               x11-libs/xcb-util-image
+       )
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       >=dev-libs/wayland-protocols-1.15
+       virtual/pkgconfig
+"
 
 FILECAPS=( cap_sys_admin usr/bin/rootston )
 
@@ -51,13 +57,13 @@ src_configure() {
                -Dxcb-icccm=$(usex icccm enabled disabled)
                -Dxwayland=$(usex X enabled disabled)
                -Dx11-backend=$(usex x11-backend enabled disabled)
-               -Drootston=$(usex rootston true false)
+               $(meson_use rootston)
                "-Dexamples=false"
                "-Dwerror=false"
        )
-       if use systemd ; then
+       if use systemd; then
                emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
-       elif use elogind ; then
+       elif use elogind; then
                emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
        else
                emesonargs+=("-Dlogind=disabled")
@@ -67,7 +73,7 @@ src_configure() {
 }
 
 src_install() {
-       if use rootston ; then
+       if use rootston; then
                dobin "${BUILD_DIR}"/rootston/rootston
                newdoc rootston/rootston.ini.example rootston.ini
        fi
@@ -78,13 +84,13 @@ src_install() {
 pkg_postinst() {
        elog "You must be in the input group to allow your compositor"
        elog "to access input devices via libinput."
-       if use rootston ; then
+       if use rootston; then
                elog ""
                elog "You should copy (and decompress) the example configuration file"
                elog "from ${EROOT:-${ROOT}}/usr/share/doc/${PF}/rootston.ini"
                elog "to the working directory from where you launch rootston"
                elog "(or pass the '-C path-to-config' option to rootston)."
-               if ! use systemd && ! use elogind ; then
+               if ! use systemd && ! use elogind; then
                        elog ""
                        elog "If you use ConsoleKit2, remember to launch rootston using:"
                        elog "exec ck-launch-session rootston"
index c762765d60bc10f01eb896a90df0e05f7cfdd58d..c96b1fcfc3fe578fced6b7ac783fe17cf20ca14d 100644 (file)
@@ -3,27 +3,27 @@
 
 EAPI=7
 
-if [[ ${PV} == 9999 ]] ; then
-       EGIT_REPO_URI="https://github.com/swaywm/wlroots.git"
-       inherit git-r3
-else
-       SRC_URI="https://github.com/swaywm/wlroots/archive/${PV}.tar.gz -> ${P}.tar.gz"
-       KEYWORDS="~amd64 ~x86"
-fi
-
 inherit fcaps meson
 
 DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
 HOMEPAGE="https://github.com/swaywm/wlroots"
 
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
 LICENSE="MIT"
 SLOT="0"
 IUSE="elogind icccm rootston systemd x11-backend X"
 REQUIRED_USE="?? ( elogind systemd )"
 
-RDEPEND=">=dev-libs/libinput-1.7.0:0=
+DEPEND="
+       >=dev-libs/libinput-1.7.0:0=
        >=dev-libs/wayland-1.16.0
-       >=dev-libs/wayland-protocols-1.15
        media-libs/mesa[egl,gles2,gbm]
        virtual/libudev
        x11-libs/libdrm
@@ -32,14 +32,20 @@ RDEPEND=">=dev-libs/libinput-1.7.0:0=
        elogind? ( >=sys-auth/elogind-237 )
        icccm? ( x11-libs/xcb-util-wm )
        systemd? ( >=sys-apps/systemd-237 )
-       x11-backend? ( x11-libs/libxcb:0=[xkb] )
+       x11-backend? ( x11-libs/libxcb:0= )
        X? (
                x11-base/xorg-server[wayland]
                x11-libs/libxcb:0=
-       )"
-DEPEND="${RDEPEND}"
-BDEPEND=">=dev-util/meson-0.48
-       virtual/pkgconfig"
+               x11-libs/xcb-util-image
+       )
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       >=dev-libs/wayland-protocols-1.16
+       virtual/pkgconfig
+"
 
 FILECAPS=( cap_sys_admin usr/bin/rootston )
 
@@ -51,13 +57,13 @@ src_configure() {
                -Dxcb-icccm=$(usex icccm enabled disabled)
                -Dxwayland=$(usex X enabled disabled)
                -Dx11-backend=$(usex x11-backend enabled disabled)
-               -Drootston=$(usex rootston true false)
+               $(meson_use rootston)
                "-Dexamples=false"
                "-Dwerror=false"
        )
-       if use systemd ; then
+       if use systemd; then
                emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
-       elif use elogind ; then
+       elif use elogind; then
                emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
        else
                emesonargs+=("-Dlogind=disabled")
@@ -67,7 +73,7 @@ src_configure() {
 }
 
 src_install() {
-       if use rootston ; then
+       if use rootston; then
                dobin "${BUILD_DIR}"/rootston/rootston
                newdoc rootston/rootston.ini.example rootston.ini
        fi
@@ -78,13 +84,13 @@ src_install() {
 pkg_postinst() {
        elog "You must be in the input group to allow your compositor"
        elog "to access input devices via libinput."
-       if use rootston ; then
+       if use rootston; then
                elog ""
                elog "You should copy (and decompress) the example configuration file"
                elog "from ${EROOT:-${ROOT}}/usr/share/doc/${PF}/rootston.ini"
                elog "to the working directory from where you launch rootston"
                elog "(or pass the '-C path-to-config' option to rootston)."
-               if ! use systemd && ! use elogind ; then
+               if ! use systemd && ! use elogind; then
                        elog ""
                        elog "If you use ConsoleKit2, remember to launch rootston using:"
                        elog "exec ck-launch-session rootston"
index c3bccd9f7fe9dc23451d9b04821aa3ac798f854e..c96b1fcfc3fe578fced6b7ac783fe17cf20ca14d 100644 (file)
@@ -1,29 +1,29 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-if [[ ${PV} == 9999 ]] ; then
-       EGIT_REPO_URI="https://github.com/swaywm/wlroots.git"
-       inherit git-r3
-else
-       SRC_URI="https://github.com/swaywm/wlroots/archive/${PV}.tar.gz -> ${P}.tar.gz"
-       KEYWORDS="~amd64 ~x86"
-fi
-
 inherit fcaps meson
 
 DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
 HOMEPAGE="https://github.com/swaywm/wlroots"
 
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
 LICENSE="MIT"
 SLOT="0"
 IUSE="elogind icccm rootston systemd x11-backend X"
 REQUIRED_USE="?? ( elogind systemd )"
 
-RDEPEND=">=dev-libs/libinput-1.7.0:0=
+DEPEND="
+       >=dev-libs/libinput-1.7.0:0=
        >=dev-libs/wayland-1.16.0
-       >=dev-libs/wayland-protocols-1.15
        media-libs/mesa[egl,gles2,gbm]
        virtual/libudev
        x11-libs/libdrm
@@ -36,10 +36,16 @@ RDEPEND=">=dev-libs/libinput-1.7.0:0=
        X? (
                x11-base/xorg-server[wayland]
                x11-libs/libxcb:0=
-       )"
-DEPEND="${RDEPEND}"
-BDEPEND=">=dev-util/meson-0.48
-       virtual/pkgconfig"
+               x11-libs/xcb-util-image
+       )
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       >=dev-libs/wayland-protocols-1.16
+       virtual/pkgconfig
+"
 
 FILECAPS=( cap_sys_admin usr/bin/rootston )
 
@@ -51,13 +57,13 @@ src_configure() {
                -Dxcb-icccm=$(usex icccm enabled disabled)
                -Dxwayland=$(usex X enabled disabled)
                -Dx11-backend=$(usex x11-backend enabled disabled)
-               -Drootston=$(usex rootston true false)
+               $(meson_use rootston)
                "-Dexamples=false"
                "-Dwerror=false"
        )
-       if use systemd ; then
+       if use systemd; then
                emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
-       elif use elogind ; then
+       elif use elogind; then
                emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
        else
                emesonargs+=("-Dlogind=disabled")
@@ -67,7 +73,7 @@ src_configure() {
 }
 
 src_install() {
-       if use rootston ; then
+       if use rootston; then
                dobin "${BUILD_DIR}"/rootston/rootston
                newdoc rootston/rootston.ini.example rootston.ini
        fi
@@ -78,13 +84,13 @@ src_install() {
 pkg_postinst() {
        elog "You must be in the input group to allow your compositor"
        elog "to access input devices via libinput."
-       if use rootston ; then
+       if use rootston; then
                elog ""
                elog "You should copy (and decompress) the example configuration file"
                elog "from ${EROOT:-${ROOT}}/usr/share/doc/${PF}/rootston.ini"
                elog "to the working directory from where you launch rootston"
                elog "(or pass the '-C path-to-config' option to rootston)."
-               if ! use systemd && ! use elogind ; then
+               if ! use systemd && ! use elogind; then
                        elog ""
                        elog "If you use ConsoleKit2, remember to launch rootston using:"
                        elog "exec ck-launch-session rootston"