Commits

Mike Gilbert committed 946a24f

Update heimdall, add a release ebuild.

--HG--
rename : app-mobilephone/heimdall/heimdall-9999.ebuild => app-mobilephone/heimdall/heimdall-1.4.0.ebuild

Comments (0)

Files changed (3)

app-mobilephone/heimdall/Manifest

+DIST heimdall-1.4.0.tar.gz 6565316 SHA256 13f5edff2fc857cf7d82708a2ac9ad1f6d2f5d6a2e5d84587f55f62583d60531 SHA512 ae6c55af97fe95587b89cce90e75fd3b236fd8ac0d506112c9c143fb1d0982aac6d1bef7a6c6635b547148ac4913aeb4215ed9c7c8084fd0912010c5ad9604ee WHIRLPOOL b4c64a755d2f3577f894e22633e11cf60323d028b89e8117fa2c6cbedf7b55d9227cb17017d966d3d48fb56958a11ce87f3334aafedfcae57e6928ef42d8c121

app-mobilephone/heimdall/heimdall-1.4.0.ebuild

+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit autotools eutils qt4-r2 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
+	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/"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="qt4"
+
+RDEPEND="dev-libs/libusbx:1=
+	qt4? ( dev-qt/qtcore:4= dev-qt/qtgui:4= )"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+src_prepare() {
+	rm -r libusbx-1.0 || die
+	cd "${S}/heimdall" || die
+	edos2unix configure.ac Makefile.am || die
+	sed -i -e /sudo/d Makefile.am || die
+	eautoreconf
+}
+
+src_configure() {
+	cd "${S}/libpit" || die
+	econf
+
+	cd "${S}/heimdall" || die
+	econf
+
+	if use qt4; then
+		cd "${S}/heimdall-frontend" || die
+		eqmake4 heimdall-frontend.pro OUTPUTDIR=/usr/bin || die
+	fi
+}
+
+src_compile() {
+	emake -C libpit
+	emake -C heimdall
+	use qt4 && emake -C heimdall-frontend
+}
+
+src_install() {
+	emake -C heimdall DESTDIR="${D}" udevrulesdir="$(get_udevdir)/rules.d" install
+	dodoc Linux/README
+	use qt4 && emake -C heimdall-frontend INSTALL_ROOT="${D}" install
+}

app-mobilephone/heimdall/heimdall-9999.ebuild

 
 EAPI=5
 
-inherit autotools eutils qt4-r2 git-2 udev
+inherit autotools eutils qt4-r2 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
+	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/"
-SRC_URI=""
-EGIT_REPO_URI="git://github.com/Benjamin-Dobell/Heimdall.git
-	https://github.com/Benjamin-Dobell/Heimdall.git"
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS=""
 IUSE="qt4"
 
 RDEPEND="dev-libs/libusbx:1=
 
 src_prepare() {
 	rm -r libusbx-1.0 || die
-
 	cd "${S}/heimdall" || die
 	edos2unix configure.ac Makefile.am || die
 	sed -i -e /sudo/d Makefile.am || die
 
 	if use qt4; then
 		cd "${S}/heimdall-frontend" || die
-		export OUTPUTDIR=/usr/bin
-		eqmake4 heimdall-frontend.pro OUTPUTDIR=${OUTPUTDIR} || die
+		eqmake4 heimdall-frontend.pro OUTPUTDIR=/usr/bin || die
 	fi
 }
 
 src_compile() {
 	emake -C libpit
 	emake -C heimdall
-
-	if use qt4; then
-		cd "${S}/heimdall-frontend" || die
-		emake
-	fi
+	use qt4 && emake -C heimdall-frontend
 }
 
 src_install() {
 	emake -C heimdall DESTDIR="${D}" udevrulesdir="$(get_udevdir)/rules.d" install
 	dodoc Linux/README
-
-	if use qt4; then
-		cd "${S}/heimdall-frontend" || die
-		emake INSTALL_ROOT="${D}" install
-	fi
+	use qt4 && emake -C heimdall-frontend INSTALL_ROOT="${D}" install
 }