net-wireless/inspectrum: minor ebuild cleanup, versioned release
authorZero_Chaos <zerochaos@gentoo.org>
Sat, 3 Oct 2015 22:07:04 +0000 (18:07 -0400)
committerZero_Chaos <zerochaos@gentoo.org>
Sat, 3 Oct 2015 22:07:04 +0000 (18:07 -0400)
Package-Manager: portage-2.2.21

net-wireless/inspectrum/Manifest [new file with mode: 0644]
net-wireless/inspectrum/inspectrum-0.1.ebuild [new file with mode: 0644]
net-wireless/inspectrum/inspectrum-9999.ebuild

diff --git a/net-wireless/inspectrum/Manifest b/net-wireless/inspectrum/Manifest
new file mode 100644 (file)
index 0000000..7296f31
--- /dev/null
@@ -0,0 +1 @@
+DIST inspectrum-0.1.tar.gz 151125 SHA256 30eeec26166e41fe2d8007b0042420602d9920bcd4ccf0f74ea1fd64dfc93bfe SHA512 f451a7d9d6fda95f6b0c1c03fc5679c859331df5df85d2f378648e95d8db94552bc2b237d552e705db302841dbab87bfa61f799886108ec1e4ba78df4beae441 WHIRLPOOL b2f35c6bef7af93fb6a3c71cc9c8718c5a8da63e649f574bfb53149cce7688a1ba2b37c5e0885f3be9d2de18d72ed376f12100308f08b2f5c0ca241bd700c997
diff --git a/net-wireless/inspectrum/inspectrum-0.1.ebuild b/net-wireless/inspectrum/inspectrum-0.1.ebuild
new file mode 100644 (file)
index 0000000..9d93c62
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="a tool for analysing captured signals, primarily from software-defined radio receivers"
+HOMEPAGE="https://github.com/miek/inspectrum"
+if [[ ${PV} == "9999" ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/miek/inspectrum.git"
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/miek/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="sci-libs/fftw:3.0=
+       dev-qt/qtwidgets:5
+       dev-qt/qtgui:5
+       dev-qt/qtcore:5"
+DEPEND="virtual/pkgconfig
+       ${RDEPEND}"
index eca6969c236ed9959a6d717d0fb6b7812b1d33a5..9d93c6238b06398cf0fa7b5dc590e2fad38ab4d5 100644 (file)
@@ -5,16 +5,20 @@
 EAPI=5
 
 inherit cmake-utils
-inherit git-r3
 
 DESCRIPTION="a tool for analysing captured signals, primarily from software-defined radio receivers"
 HOMEPAGE="https://github.com/miek/inspectrum"
-SRC_URI=""
-EGIT_REPO_URI="https://github.com/miek/inspectrum.git"
+if [[ ${PV} == "9999" ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/miek/inspectrum.git"
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/miek/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-KEYWORDS=""
 IUSE=""
 
 RDEPEND="sci-libs/fftw:3.0=
@@ -23,7 +27,3 @@ RDEPEND="sci-libs/fftw:3.0=
        dev-qt/qtcore:5"
 DEPEND="virtual/pkgconfig
        ${RDEPEND}"
-
-src_install() {
-       dobin "${BUILD_DIR}"/inspectrum
-}