dev-libs/wlc: version bump to 0.0.6.
authorMykyta Holubakha <hilobakho@gmail.com>
Fri, 4 Nov 2016 18:58:07 +0000 (20:58 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 4 Nov 2016 22:23:04 +0000 (23:23 +0100)
Closes: https://github.com/gentoo/gentoo/pull/2744

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-libs/wlc/Manifest
dev-libs/wlc/wlc-0.0.6.ebuild [new file with mode: 0644]

index 54e1db359cd92a2e866227993069a7641d253af6..f395fa1341f998fcd6449a76982527744e23cc33 100644 (file)
@@ -1,2 +1,3 @@
 DIST wlc-0.0.3.tar.bz2 206972 SHA256 086556f97e635469afd1f73e191ac57c888925f4480d526346946350273ebb3f SHA512 e1e3c7d80d8888a8fe3102e8ea891d4c52fa160f99fdb3fb837c6ff69ef3468ca2ec2b1f850cfac3d64a7df0e426f1113963395a562ef252c096af48b55c99d4 WHIRLPOOL c59b51b37a6fe9bcc580cd3aa4ecae224f680be507a160a0cb88d5ce68de1c31fedd1e236e8a19c84175364aa26987f1b053b4d41fee2ecd5b1f9d470da544fa
 DIST wlc-0.0.5.tar.bz2 207900 SHA256 17aa8e8f4beb62b630433dd69247f272caf0575d2638726cfc1808a4239db136 SHA512 d5d0f299e713306b6c08e78b87ab8eaf9ff974aedd29b353c0db5a1a23602248306e7cd1918136f95663726fa028aa531bd496a7f24f5eaba8ba309e9af801f7 WHIRLPOOL 04f46251eac5dc21ec3071d46020819330452f61f7d60f4b9a3ac44104d0da8e65a8cd073d4a74968cb0bbf3eab57d13a62a09fd942a45157b470c2a89f742bc
+DIST wlc-0.0.6.tar.bz2 234155 SHA256 302a14252757f05ed009077a674b07942ff46fc7c3da0759fed4fedbc8c12329 SHA512 944e3b34436618a1288488dcb8eb7ea2db46e32f73e4d07e4e896fe94cd0084857008f900257846098af4094bf5351bd7ec7d4c6aef427d0991922fd04049dc9 WHIRLPOOL a026a240edb1fa3d961f6fe765b5e30abfe448e2beb6c6623e8d95fa2640ffdc02b030c1f0fa8733fda235b541ca373c0e88bdbb2e253a203b2f3bf6da1fd6dc
diff --git a/dev-libs/wlc/wlc-0.0.6.ebuild b/dev-libs/wlc/wlc-0.0.6.ebuild
new file mode 100644 (file)
index 0000000..efbef44
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="A helper library for Wayland compositors"
+HOMEPAGE="https://github.com/Cloudef/wlc"
+
+SRC_URI="https://github.com/Cloudef/wlc/releases/download/v${PV}/${P}.tar.bz2"
+
+LICENSE="MIT ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X static-libs systemd xwayland"
+
+RDEPEND="virtual/opengl
+       media-libs/mesa[wayland,gbm,gles2,egl]
+       x11-libs/libdrm
+       x11-libs/pixman
+       x11-libs/libxkbcommon
+       x11-misc/xkeyboard-config
+       dev-libs/libinput
+       dev-libs/wayland
+       X? ( x11-libs/libX11
+                x11-libs/libxcb
+                x11-libs/xcb-util-image
+                x11-libs/xcb-util-wm
+                x11-libs/libXfixes )
+       xwayland? ( x11-base/xorg-server[wayland] )
+       systemd? ( sys-apps/systemd sys-apps/dbus )"
+
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       dev-libs/wayland-protocols"
+
+src_configure() {
+       local mycmakeargs=(
+               -DWLC_BUILD_EXAMPLES=OFF
+               -DWLC_BUILD_TESTS=OFF
+
+               -DWLC_BUILD_STATIC=$(usex static-libs)
+
+               -DWLC_X11_SUPPORT=$(usex X)
+
+               $(cmake-utils_use_find_package systemd Systemd)
+               $(cmake-utils_use_find_package systemd Dbus)
+       )
+
+       cmake-utils_src_configure
+}
+
+pkg_postinst() {
+       if use X && !use xwayland
+       then
+               elog "xwayland use flag is required for X11 applications support"
+       fi
+}