summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-05-15 16:22:38 +0200
committerLars Wendler <polynomial-c@gentoo.org>2017-05-15 16:22:57 +0200
commitb3ffa65c92351e168c1a490d1bab1488dd56bda9 (patch)
tree5a1de9310103d956745b43f424c393a1b2373e51 /app-mobilephone/heimdall/heimdall-9999.ebuild
parentapp-arch/lziprecover: Bump to versions 1.19 and 1.20_pre1 (diff)
downloadgentoo-b3ffa65c92351e168c1a490d1bab1488dd56bda9.tar.gz
gentoo-b3ffa65c92351e168c1a490d1bab1488dd56bda9.tar.bz2
gentoo-b3ffa65c92351e168c1a490d1bab1488dd56bda9.zip
app-mobilephone/heimdall: Bump to version 1.4.2 (bug #618266).
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'app-mobilephone/heimdall/heimdall-9999.ebuild')
-rw-r--r--app-mobilephone/heimdall/heimdall-9999.ebuild54
1 files changed, 25 insertions, 29 deletions
diff --git a/app-mobilephone/heimdall/heimdall-9999.ebuild b/app-mobilephone/heimdall/heimdall-9999.ebuild
index f2707e0a9d0..70d3660483e 100644
--- a/app-mobilephone/heimdall/heimdall-9999.ebuild
+++ b/app-mobilephone/heimdall/heimdall-9999.ebuild
@@ -1,57 +1,53 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
-CMAKE_IN_SOURCE_BUILD="true"
-
-inherit autotools eutils cmake-utils udev
+inherit cmake-utils udev
if [[ ${PV} != 9999 ]]; then
SRC_URI="https://github.com/Benjamin-Dobell/Heimdall/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/Heimdall-${PV}"
else
- inherit git-2
+ inherit git-r3
EGIT_REPO_URI="git://github.com/Benjamin-Dobell/Heimdall.git
https://github.com/Benjamin-Dobell/Heimdall.git"
fi
DESCRIPTION="Tool suite used to flash firmware onto Samsung Galaxy S devices"
-HOMEPAGE="http://www.glassechidna.com.au/products/heimdall/"
+HOMEPAGE="http://glassechidna.com.au/heimdall/"
LICENSE="MIT"
SLOT="0"
-IUSE="qt5 static-libs"
+IUSE="qt5"
# virtual/libusb is not precise enough
-RDEPEND=">=dev-libs/libusb-1.0.18:1=[static-libs=]
- qt5? ( dev-qt/qtwidgets:5 )"
+RDEPEND="
+ >=dev-libs/libusb-1.0.18:1=
+ qt5? (
+ dev-qt/qtcore:5=
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5=
+ )
+ sys-libs/zlib
+"
DEPEND="${RDEPEND}
virtual/pkgconfig"
-src_prepare() {
- if ! use qt5 ; then
- sed '/heimdall-frontend/d' \
- -i CMakeLists.txt || die
- fi
-}
-
src_configure() {
- cmake-utils_src_configure \
- $(cmake-utils_use_use static-libs STATIC_LIBS)
-}
-
-src_compile() {
- cmake-utils_src_compile
+ local mycmakeargs=(
+ -DDISABLE_FRONTEND="$(usex !qt5)"
+ )
+ cmake-utils_src_configure
}
src_install() {
- # cmake-utils_src_install doesn't work
- dobin "${S}"/bin/${PN}
- use qt5 && dobin "${S}"/bin/${PN}-frontend
+ dobin "${BUILD_DIR}"/bin/heimdall
+ use qt5 && dobin "${BUILD_DIR}"/bin/heimdall-frontend
+
+ insinto "$(get_udevdir)/rules.d"
+ doins heimdall/60-heimdall.rules
- insinto $(get_udevdir)/rules.d
- doins "${S}"/${PN}/60-${PN}.rules
- dodoc Linux/README
+ dodoc README.md Linux/README
}