dev-python/pyinsane: switch to pypi releases
authorBernard Cafarelli <voyageur@gentoo.org>
Mon, 9 Apr 2018 10:01:42 +0000 (12:01 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Mon, 9 Apr 2018 10:15:15 +0000 (12:15 +0200)
Update metadata links

Package-Manager: Portage-2.3.28, Repoman-2.3.9

dev-python/pyinsane/Manifest
dev-python/pyinsane/metadata.xml
dev-python/pyinsane/pyinsane-2.0.12-r1.ebuild [moved from dev-python/pyinsane/pyinsane-2.0.12.ebuild with 78% similarity]

index 25b964bc688404b3a9decc9a4a5f31b565b9e280..6881adbaf6b564c476fd0ea2f0cee52055467a16 100644 (file)
@@ -1,2 +1,2 @@
 DIST pyinsane-2.0.10.tar.gz 327159 BLAKE2B ae63e08fc557513ccac0633fac47bb29b3c8a023c481289ec60724f5fcdae0827e02d5f37d3f104d454ebcb1d1a7681248866461bce6201f056c988f858aa0d3 SHA512 bb882ab51c1e6cea7cad75851ffe5918ee08467d4772d27c23a0c5ec9f2dea3ee7d83601ae35e56e2f717ff7683cec5a45aa47b2a4e167fe4dddb9db3229a3b1
-DIST pyinsane-2.0.12.tar.gz 333115 BLAKE2B 9f0e557fe597acd34755868b90505ba77b79e883ceefda7709712c7ef9f5bdc4429e4b848520a3997948fb2a3f94096b5364acd4cdfbc3f0c9ec8bc364dfd243 SHA512 284508ce88d2619ba59b3cda56e2e2fa74d8db5ef5ef490ab93d0b14592ed6f2a6574f7dd108ccb23dc69d6d90701146cf42cf8ebf0fb56d1755e4c86df9fe86
+DIST pyinsane2-2.0.12.tar.gz 56107 BLAKE2B 81085e414f162c4fe3623e05b904c35864b95c8ceb5aa25cb92aa87086d4ee44f9f1bea58239373217e93793bfba0d8bb894ab75d69d6c213741cf6e53721284 SHA512 72fc87d5c7eab078f4a9694569c5759046587a8439820fadfe1b8899b7445e063f9fc2f3e93a86b1f9329f729466a5e19b86e46c128caf9ac8b143cfd9e17817
index 5682d1ca182377128a892bd5c77920b52a86e357..81b6fe8da176aa16db1dcb03fff21e161dbcbd21 100644 (file)
@@ -15,6 +15,7 @@ The code is divided in 3 layers:
  * abstract_th : The Sane API is not thread-safe and cannot be used in a multi-threaded environment easily. This layer solves this problem by using a fully dedicated thread.
 </longdescription>
   <upstream>
+    <remote-id type="pypi">pyinsane2</remote-id>
     <remote-id type="github">openpaperwork/pyinsane</remote-id>
   </upstream>
 </pkgmetadata>
similarity index 78%
rename from dev-python/pyinsane/pyinsane-2.0.12.ebuild
rename to dev-python/pyinsane/pyinsane-2.0.12-r1.ebuild
index 49ee194e7e56ef7fb75420e36ecb8d326953bc88..c1235e64b98451454f8dfef10aad1a537e88d7b0 100644 (file)
@@ -6,9 +6,11 @@ PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 
 inherit distutils-r1
 
+MY_PN="${PN}2"
+
 DESCRIPTION="Python implementation of the Sane API and abstration layer"
 HOMEPAGE="https://github.com/openpaperwork/pyinsane"
-SRC_URI="https://github.com/openpaperwork/pyinsane/archive/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="2"
@@ -22,11 +24,10 @@ DEPEND="${RDEPEND}
 
 RESTRICT="test" # Tests require at least one scanner with a flatbed and an ADF
 
+S=${WORKDIR}/${MY_PN}-${PV}
+
 python_prepare_all() {
        sed -e "/'nose>=1.0'/d" \
                -i setup.py || die
        distutils-r1_python_prepare_all
-
-       # Upstream Makefile requires git checkout
-       echo "version = \"${PV}\"" > pyinsane2/_version.py || die
 }