dev-libs/libplatform: EAPI=7
authorCraig Andrews <candrews@gentoo.org>
Tue, 12 Mar 2019 13:50:21 +0000 (09:50 -0400)
committerCraig Andrews <candrews@gentoo.org>
Tue, 12 Mar 2019 21:43:12 +0000 (17:43 -0400)
With EAPI=7, cmake-utils builds a shared library by default.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews@gentoo.org>
dev-libs/libplatform/libplatform-2.1.0.1-r1.ebuild [new file with mode: 0644]

diff --git a/dev-libs/libplatform/libplatform-2.1.0.1-r1.ebuild b/dev-libs/libplatform/libplatform-2.1.0.1-r1.ebuild
new file mode 100644 (file)
index 0000000..4ef9c15
--- /dev/null
@@ -0,0 +1,25 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+MY_PN="platform"
+MY_PN_PREFIX="p8"
+
+DESCRIPTION="Platform support library used by libCEC and binary add-ons for Kodi"
+HOMEPAGE="https://github.com/Pulse-Eight/platform"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+if [[ ${PV} == *9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/Pulse-Eight/${MY_PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/Pulse-Eight/${MY_PN}/archive/${MY_PN_PREFIX}-${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
+       S="${WORKDIR}/${MY_PN}-${MY_PN_PREFIX}-${MY_PN}-${PV}"
+       KEYWORDS="~amd64 ~arm ~x86"
+fi