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"
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() {
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}
<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>