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

Package-Manager: Portage-2.3.28, Repoman-2.3.9

dev-python/libpillowfight/Manifest
dev-python/libpillowfight/libpillowfight-0.2.3-r1.ebuild [moved from dev-python/libpillowfight/libpillowfight-0.2.3.ebuild with 71% similarity]
dev-python/libpillowfight/metadata.xml

index d98340a942164340c3ddabc848591076596ae213..cfdb5bd70d750d6d636fe7fe682dd50deca4b227 100644 (file)
@@ -1,2 +1,2 @@
 DIST libpillowfight-0.2.2.tar.gz 23125494 BLAKE2B b9620b0e574869d1efcc9449e09f281a5d2611ec15f144ee24b385b5f6f693f037c844904f0abc715d49125df7d1a27d6c433aed83b33371b3f07310be8288db SHA512 76dcaf9105b4dbbe427851d794e92ba023453e2d750ecdd4e3feb864534f9d99adb562b719b7c9af299ae16c0778b510ab96b4997cf9bcc6ea4c6f8f7471ae8a
-DIST libpillowfight-0.2.3.tar.gz 14567996 BLAKE2B 2b3f289f8a86b2b50004adb158dd992fd18bdaac17f21de6f3a9493c8a54a869a788a71d71257845de43f6fa048789944d1b49fd2da190919dad18db7f7d70d0 SHA512 a1098776157a2f552c84bc0e36d8d69ec59e2405bb351253ebf4c5c241fe1ce0de01fac20b4240d010d555afaf4d2c269adce8c89894ab301e14f8c891a744da
+DIST pypillowfight-0.2.3.tar.gz 39416 BLAKE2B e216ddb1717189c142fc3d81d41c91855c52468e1af350d8f5db470f8901bd883223cad56dc8ced9cf61e90e511e0a5ef508ec6966a7f01a837e2bb0d393589f SHA512 6d3e35ed567d66060f5bf4307b0bd7d9ee5c3e7ec430e6e04ee6a1e83e18ff829a7681a85186e6b2151f043f66453c12a60e7cce56c0558da3d72f1fce155097
similarity index 71%
rename from dev-python/libpillowfight/libpillowfight-0.2.3.ebuild
rename to dev-python/libpillowfight/libpillowfight-0.2.3-r1.ebuild
index 72af33a9a7413e4aed6c7e9aa9ac3af5bb32b484..b18a134d64862a1c6cad3f42f4717fff01dab7f7 100644 (file)
@@ -6,9 +6,11 @@ PYTHON_COMPAT=( python3_{4,5,6} )
 
 inherit distutils-r1
 
+MY_PN="pypillowfight"
+
 DESCRIPTION="Small library containing various image processing algorithms"
 HOMEPAGE="https://github.com/openpaperwork/libpillowfight"
-SRC_URI="https://github.com/openpaperwork/libpillowfight/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="0"
@@ -19,10 +21,9 @@ RDEPEND="dev-python/pillow[${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}
        test? ( dev-python/nose[${PYTHON_USEDEP}] )"
 
+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 "#define INTERNAL_PILLOWFIGHT_VERSION \"${PV}\"" > src/pillowfight/_version.h || die
 }
index ce9bac02678d79554e665f4ae09593eacc343b0d..c7823a9260d831a5d4b6bc0016a2e8d7f2dcc234 100644 (file)
@@ -6,6 +6,7 @@
     <name>Bernard Cafarelli</name>
   </maintainer>
   <upstream>
-    <remote-id type="github">jflesch/libpillowfight</remote-id>
+    <remote-id type="pypi">pypillowfight</remote-id>
+    <remote-id type="github">openpaperwork/libpillowfight</remote-id>
   </upstream>
 </pkgmetadata>