-
Notifications
You must be signed in to change notification settings - Fork 16
/
nux-4.0.8a_p0_p02_p20160209.ebuild
90 lines (76 loc) · 1.96 KB
/
nux-4.0.8a_p0_p02_p20160209.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
URELEASE="xenial"
inherit autotools eutils ubuntu-versionator xdummy
UURL="mirror://unity/pool/main/n/${PN}"
UVER_PREFIX="+${UVER_RELEASE}.${PVR_MICRO}"
DESCRIPTION="Visual rendering toolkit for the Unity desktop"
HOMEPAGE="http://launchpad.net/nux"
SRC_URI="${UURL}/${MY_P}${UVER_PREFIX}.orig.tar.gz
${UURL}/${MY_P}${UVER_PREFIX}-${UVER}.diff.gz"
LICENSE="GPL-3 LGPL-3"
SLOT="0/4"
#KEYWORDS="~amd64 ~x86"
IUSE="debug doc examples test"
RESTRICT="mirror"
DEPEND="app-i18n/ibus
dev-cpp/gtest
dev-libs/boost:=
dev-libs/glib:2
dev-libs/libpcre
dev-libs/libsigc++:2
gnome-base/gnome-common
media-libs/glew:=
media-libs/libpng:0
sys-apps/pciutils
>=sys-devel/gcc-4.7
unity-base/geis
x11-libs/cairo
x11-libs/gdk-pixbuf
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXxf86vm
x11-libs/pango
x11-proto/dri2proto
x11-proto/glproto
doc? ( app-doc/doxygen )
test? ( dev-cpp/gmock
dev-cpp/gtest )"
S="${WORKDIR}/${PN}-${PV}${UVER_PREFIX}"
src_prepare() {
epatch -p1 "${WORKDIR}/${MY_P}${UVER_PREFIX}-${UVER}.diff" # This needs to be applied for the debian/ directory to be present #
ubuntu-versionator_src_prepare
eautoreconf
}
src_configure() {
use debug && \
myconf="${myconf}
--enable-debug=yes"
use doc && \
myconf="${myconf}
--enable-documentation=yes"
! use examples && \
myconf="${myconf}
--enable-examples=no"
! use test && \
myconf="${myconf}
--enable-tests=no
--enable-gputests=no"
econf ${myconf}
}
src_test() {
local XDUMMY_COMMAND="make check"
xdummymake
}
src_install() {
emake DESTDIR="${D}" install || die
dosym /usr/libexec/nux/unity_support_test /usr/lib/nux/unity_support_test
## Install gfx hardware support test script ##
sed -e 's:xubuntu:xunity:g' \
-i debian/50_check_unity_support
exeinto /etc/X11/xinit/xinitrc.d/
doexe debian/50_check_unity_support
prune_libtool_files --modules
}