diff options
-rw-r--r-- | dev-libs/weston/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/weston/files/README.gentoo | 9 | ||||
-rw-r--r-- | dev-libs/weston/weston-1.12.0.ebuild | 155 |
3 files changed, 167 insertions, 0 deletions
diff --git a/dev-libs/weston/Manifest b/dev-libs/weston/Manifest new file mode 100644 index 0000000..4e31110 --- /dev/null +++ b/dev-libs/weston/Manifest @@ -0,0 +1,3 @@ +AUX README.gentoo 383 SHA256 ded85eb05b14162aceb7ba67e49be207bbe15591fa519743478618def88cee85 SHA512 e4d8f8e0edeb6773dd7ef6329074d1e40b694b9e7e10b6a429d8c5dd4fe1170594f447a42eb41446ec2355829a1da1606bf6c544434551c5c931b0794422e786 WHIRLPOOL 8bc2485d91a399eb9d283ec3363546852be9a1a3e69214b3c7cc9a6427c4e10355dc8732de0d8b688f9df8a4bc03df25c3ce7b33c19773b7a47616c93f82bd81 +DIST weston-1.12.0.tar.xz 1260892 SHA256 ac7ac2a32e3b9f50131fccded5d2326bd36b2226712d90b61999118a09af5033 SHA512 80cf7c01951cc72b32284a5a6960c2ae7a8dfffffb155cb0f94cd3585b0afa3f06bb8e2b87467d18ab95f0fd673ad9319a6e14ee5f3cec1d3b72c7c0146c927e WHIRLPOOL a809994ea312c01548280e1e5b5915fa3f0fae32ae152a0e64edd0b86db4995a97705d4ab5af5b09cfce32633ae9cdaa6f5db2afad3e0f3c5faab583d1109725 +EBUILD weston-1.12.0.ebuild 3585 SHA256 9b9d6a69fdfdca757bb2a272aaf751dd29df47786b36ca3512326feeab05b2b2 SHA512 73b515fe3899ee218e6c88288005f724e3f0b4eb835f31da812b495fefc711d8a773cbb14940f78f0037f1e618249ff4db9a2a5e5f15925bfedb5f1e6c6e1798 WHIRLPOOL ef3594e3211d7e4bf82979e8d14b65f8001bd6dc3392893d3a3f440e3c8af5118d551e5cd9b7ecc58dcf5c55249ffe7dfb49768f0b8d1628242096b422d8eb70 diff --git a/dev-libs/weston/files/README.gentoo b/dev-libs/weston/files/README.gentoo new file mode 100644 index 0000000..ed8c5c3 --- /dev/null +++ b/dev-libs/weston/files/README.gentoo @@ -0,0 +1,9 @@ +For running Weston you need to have $XDG_RUNTIME_DIR in your environment, +directory must exist and have correct permissions. If you are not using systemd, +it will not be created automatically, you can create it using your shell, +add these lines to ~/.bash_profile: + +# wayland +export XDG_RUNTIME_DIR=/tmp/.runtime-${USER} +mkdir -p "${XDG_RUNTIME_DIR}" +chmod 0700 "${XDG_RUNTIME_DIR}" diff --git a/dev-libs/weston/weston-1.12.0.ebuild b/dev-libs/weston/weston-1.12.0.ebuild new file mode 100644 index 0000000..c289b33 --- /dev/null +++ b/dev-libs/weston/weston-1.12.0.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + EGIT_REPO_URI="git://anongit.freedesktop.org/git/wayland/${PN}" + GIT_ECLASS="git-r3" + EXPERIMENTAL="true" +fi +VIRTUALX_REQUIRED="test" +RESTRICT="test" + +inherit autotools readme.gentoo-r1 toolchain-funcs virtualx $GIT_ECLASS + +DESCRIPTION="Wayland reference compositor" +HOMEPAGE="https://wayland.freedesktop.org/" + +if [[ $PV = 9999* ]]; then + SRC_URI="${SRC_PATCHES}" + KEYWORDS="amd64 arm x86" +else + SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT CC-BY-SA-3.0" +SLOT="0" + +IUSE_VIDEO_CARDS="video_cards_intel video_cards_v4l" +IUSE="colord dbus +drm editor examples fbdev +gles2 headless ivi jpeg lcms rdp +resize-optimization rpi +launch screen-sharing static-libs +suid systemd test unwind wayland-compositor webp +X xwayland ${IUSE_VIDEO_CARDS}" + +REQUIRED_USE=" + drm? ( gles2 ) + screen-sharing? ( rdp ) + systemd? ( dbus ) + test? ( X ) + wayland-compositor? ( gles2 ) +" + +RDEPEND=" + >=dev-libs/libinput-0.8.0 + >=dev-libs/wayland-1.12.0 + >=dev-libs/wayland-protocols-1.7 + lcms? ( media-libs/lcms:2 ) + media-libs/libpng:0= + webp? ( media-libs/libwebp:0= ) + jpeg? ( virtual/jpeg:0= ) + >=x11-libs/cairo-1.11.3 + >=x11-libs/libdrm-2.4.30 + x11-libs/libxkbcommon + x11-libs/pixman + x11-misc/xkeyboard-config + fbdev? ( + >=sys-libs/mtdev-1.1.0 + >=virtual/udev-136 + ) + colord? ( >=x11-misc/colord-0.1.27 ) + dbus? ( sys-apps/dbus ) + drm? ( + media-libs/mesa[gbm] + >=sys-libs/mtdev-1.1.0 + >=virtual/udev-136 + ) + editor? ( x11-libs/pango ) + gles2? ( + media-libs/mesa[gles2,wayland] + ) + rdp? ( >=net-misc/freerdp-1.1.0_beta1_p20130710 ) + rpi? ( + >=sys-libs/mtdev-1.1.0 + >=virtual/udev-136 + ) + systemd? ( + sys-auth/pambase[systemd] + sys-apps/systemd[pam] + ) + launch? ( sys-auth/pambase ) + unwind? ( sys-libs/libunwind ) + X? ( + x11-libs/libxcb + x11-libs/libX11 + ) + xwayland? ( + x11-base/xorg-server[wayland] + x11-libs/cairo[xcb] + x11-libs/libxcb + x11-libs/libXcursor + ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + if [[ ${PV} = 9999* ]]; then + eautoreconf + fi +} + +src_configure() { + local myconf + if use examples || use test; then + myconf="--enable-simple-clients" + else + myconf="--disable-simple-clients" + fi + + myconf+=" --with-cairo=image --disable-simple-egl-clients" + + econf \ + $(use_enable examples demo-clients-install) \ + $(use_enable fbdev fbdev-compositor) \ + $(use_enable dbus) \ + $(use_enable drm drm-compositor) \ + $(use_enable headless headless-compositor) \ + $(use_enable ivi ivi-shell) \ + $(use_enable lcms) \ + $(use_enable rdp rdp-compositor) \ + $(use_enable rpi rpi-compositor) \ + $(use_enable wayland-compositor) \ + $(use_enable X x11-compositor) \ + $(use_enable launch weston-launch) \ + $(use_enable colord) \ + $(use_enable gles2 egl) \ + $(use_enable unwind libunwind) \ + $(use_enable resize-optimization) \ + $(use_enable screen-sharing) \ + $(use_enable suid setuid-install) \ + $(use_enable systemd systemd-login) \ + $(use_enable systemd systemd-notify) \ + $(use_enable xwayland) \ + $(use_enable xwayland xwayland-test) \ + $(use_enable video_cards_intel simple-dmabuf-intel-client) \ + $(use_enable video_cards_v4l simple-dmabuf-v4l-client) \ + $(use_with jpeg) \ + $(use_with webp) \ + ${myconf} +} + +src_test() { + export XDG_RUNTIME_DIR="${T}/runtime-dir" + mkdir "${XDG_RUNTIME_DIR}" || die + chmod 0700 "${XDG_RUNTIME_DIR}" || die + + cd "${BUILD_DIR}" || die + Xemake check +} + +src_install() { + default + + readme.gentoo_create_doc +} |