app-portage/cpuinfo2cpuflags: Update homepage and URIs
authorMichał Górny <mgorny@gentoo.org>
Wed, 13 Jul 2016 21:36:32 +0000 (23:36 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 13 Jul 2016 21:44:15 +0000 (23:44 +0200)
app-portage/cpuinfo2cpuflags/cpuinfo2cpuflags-1.ebuild
app-portage/cpuinfo2cpuflags/cpuinfo2cpuflags-2.ebuild
app-portage/cpuinfo2cpuflags/metadata.xml

index 2954fe7f013a9b37ad26f613551ab026d7df4619..e31a359545a3ba568e619943d06fc01ca57db9f6 100644 (file)
@@ -8,9 +8,11 @@ PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
 
 inherit python-r1
 
+MY_PN=cpuinfo2cpuflags
+MY_P=${MY_PN}-${PV}
 DESCRIPTION="Script to guess CPU_FLAGS_X86 flags from /proc/cpuinfo"
-HOMEPAGE="https://bitbucket.org/mgorny/cpuinfo2cpuflags"
-SRC_URI="https://bitbucket.org/mgorny/cpuinfo2cpuflags/downloads/${P}.tar.gz"
+HOMEPAGE="https://github.com/mgorny/cpuid2cpuflags"
+SRC_URI="https://github.com/mgorny/cpuid2cpuflags/releases/download/v${PV}/${MY_P}.tar.gz"
 
 LICENSE="BSD-2"
 SLOT="0"
@@ -20,8 +22,10 @@ IUSE=""
 RDEPEND=${PYTHON_DEPS}
 REQUIRED_USE=${PYTHON_REQUIRED_USE}
 
+S=${WORKDIR}/${MY_P}
+
 src_install() {
-       python_foreach_impl python_newscript "${PN}-x86"{.py,}
+       python_foreach_impl python_newscript "${MY_PN}-x86"{.py,}
 }
 
 pkg_postinst() {
index 02af3a821e4322f9c0956b1fdfbfcca5a1f07284..5c625c7cf062573969bfd64c0548402377dca836 100644 (file)
@@ -4,11 +4,14 @@
 
 EAPI=5
 
+MY_P=cpuinfo2cpuflags-${PV}
 DESCRIPTION="Tool to guess CPU_FLAGS_X86 flags for the host"
-HOMEPAGE="https://bitbucket.org/mgorny/cpuinfo2cpuflags"
-SRC_URI="https://bitbucket.org/mgorny/cpuinfo2cpuflags/downloads/${P}.tar.bz2"
+HOMEPAGE="https://github.com/mgorny/cpuid2cpuflags"
+SRC_URI="https://github.com/mgorny/cpuid2cpuflags/releases/download/v${PV}/${MY_P}.tar.bz2"
 
 LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
 IUSE=""
+
+S=${WORKDIR}/${MY_P}
index 6e2ac5e4d689cbe5dc3616bfaae8068f5713e18f..422aab7218c16b9b721a9d8c82bf2c6768b9b3fa 100644 (file)
@@ -6,6 +6,6 @@
     <name>Michał Górny</name>
   </maintainer>
   <upstream>
-    <remote-id type="bitbucket">mgorny/cpuinfo2cpuflags</remote-id>
+    <remote-id type="github">mgorny/cpuid2cpuflags</remote-id>
   </upstream>
 </pkgmetadata>