aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2017-04-13 19:21:48 -0700
committerSteve Arnold <nerdboy@gentoo.org>2017-04-13 19:21:48 -0700
commitb0634433de8853df924c98fb7f119689a6db74e1 (patch)
tree528320dd17d3d2b2e351150fe56957d3095c55e0
parentvirtual/opengl: update keywords (diff)
downloadarm-b0634433de8853df924c98fb7f119689a6db74e1.tar.gz
arm-b0634433de8853df924c98fb7f119689a6db74e1.tar.bz2
arm-b0634433de8853df924c98fb7f119689a6db74e1.zip
x11-libs/libetnaviv: add "version" to get full legacy library
Signed-off-by: Steve Arnold <nerdboy@gentoo.org>
-rw-r--r--x11-libs/libetnaviv/Manifest1
-rw-r--r--x11-libs/libetnaviv/libetnaviv-20141102.ebuild55
-rw-r--r--x11-libs/libetnaviv/libetnaviv-99999999.ebuild (renamed from x11-libs/libetnaviv/libetnaviv-9999.ebuild)12
3 files changed, 65 insertions, 3 deletions
diff --git a/x11-libs/libetnaviv/Manifest b/x11-libs/libetnaviv/Manifest
new file mode 100644
index 0000000..b2a8dd0
--- /dev/null
+++ b/x11-libs/libetnaviv/Manifest
@@ -0,0 +1 @@
+DIST libetnaviv-20141102.zip 83366 SHA256 ddf0dcce8189771249225afeac86f1d44d9fa19cf2667ee3e7729c8d3d95170c SHA512 4de7294f882dd8ee56d56e9ec0d5319e1882e9b255ff2fb761450e8cdb5d3cfbf7d037552b79cca49d9c7f8f8a2a7c23b56429ecc66af20ad909d3a5ea9f54ad WHIRLPOOL 3eef9f1f426005b4537d40087f502ba24099047767a1d46c69260e989ca10b7f4d855e5fa3812c1d34973c6a6c5fb3fa7512b0490afdf71d1b1736a7aa4dffce
diff --git a/x11-libs/libetnaviv/libetnaviv-20141102.ebuild b/x11-libs/libetnaviv/libetnaviv-20141102.ebuild
new file mode 100644
index 0000000..08967c5
--- /dev/null
+++ b/x11-libs/libetnaviv/libetnaviv-20141102.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+MY_PN="${PN/_/}"
+P="${MY_PN}-${PV}"
+
+if [ "${PV}" = "99999999" ]; then
+ EGIT_REPO_URI="git://github.com/etnaviv/etna_viv"
+ inherit git-r3
+ KEYWORDS=""
+ MERGE_TYPE="binary"
+else
+ # Note this is the legacy library plus headers
+ COMMIT_ID="60105d1b0755e48b37d779d8a2b9c4b458b5a2fd"
+ SRC_URI="https://github.com/etnaviv/libetnaviv/archive/master.zip -> ${P}.zip"
+ KEYWORDS="~arm"
+ IUSE=""
+ S=${WORKDIR}/${PN}-master
+fi
+
+DESCRIPTION="FOSS driver headers and library for the Vivante GCxxx series of embedded GPUs"
+HOMEPAGE="https://github.com/etnaviv/etna_viv"
+
+LICENSE="MIT"
+SLOT="0"
+
+DEPEND=">=x11-libs/libdrm-2.4.75:=[video_cards_vivante]
+ ~media-libs/galcore-headers-4.6.6
+ x11-proto/xproto
+ virtual/pkgconfig"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ myeconf=( --with-galcore-include=/usr/include/HAL )
+
+ econf "${myeconf[@]}"
+}
+
+src_install() {
+ if [ "${PV}" = "99999999" ]; then
+ insinto /usr/include/etnaviv
+ doins src/etnaviv/*.h attic/etnaviv/*.h
+ else
+ default
+ prune_libtool_files --all
+ fi
+}
+
diff --git a/x11-libs/libetnaviv/libetnaviv-9999.ebuild b/x11-libs/libetnaviv/libetnaviv-99999999.ebuild
index 7123d31..fe7549f 100644
--- a/x11-libs/libetnaviv/libetnaviv-9999.ebuild
+++ b/x11-libs/libetnaviv/libetnaviv-99999999.ebuild
@@ -8,10 +8,11 @@ inherit autotools
MY_PN="${PN/_/}"
P="${MY_PN}-${PV}"
-if [ "${PV}" = "9999" ]; then
+if [ "${PV}" = "99999999" ]; then
EGIT_REPO_URI="git://github.com/etnaviv/etna_viv"
inherit git-r3
- KEYWORDS="~arm"
+ KEYWORDS=""
+ IUSE="src"
else
# this commit is 1 before the attic-move; if you want to try
# building the src, you might start here...
@@ -37,6 +38,11 @@ MERGE_TYPE="binary"
src_install() {
insinto /usr/include/etnaviv
- doins src/etnaviv/*.h attic/etnaviv/*.h
+
+ if use src; then
+ doins -r src attic
+ else
+ doins src/etnaviv/*.h attic/etnaviv/*.h
+ fi
}