dev-python/CommonMark: Update for incoming rename
authorMichał Górny <mgorny@gentoo.org>
Thu, 18 Oct 2018 16:06:57 +0000 (18:06 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 18 Oct 2018 16:39:33 +0000 (18:39 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/CommonMark/CommonMark-0.5.4.ebuild
dev-python/CommonMark/CommonMark-0.7.5.ebuild

index f686d655b29637fd9bb72c48ee1cac436ea6d3e0..630fd63052ebce2fcd7384ac0a38996b8c070a9d 100644 (file)
@@ -6,9 +6,11 @@ PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 
 inherit distutils-r1
 
+MY_PN=CommonMark
+MY_P=${MY_PN}-${PV}
 DESCRIPTION="Python parser for the CommonMark Markdown spec"
 HOMEPAGE="https://github.com/rtfd/CommonMark-py"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"
@@ -23,6 +25,8 @@ DEPEND="${RDEPEND}
        dev-python/setuptools[${PYTHON_USEDEP}]
 "
 
+S=${WORKDIR}/${MY_P}
+
 # unrestrict for versions >= 0.7.2
 RESTRICT=test
 
index d2109b61a488d5447e7069948854ff746ac9e53b..52faefc635f9662f7cb22b0d98df7f9b46cfbfab 100644 (file)
@@ -6,9 +6,11 @@ PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
 
 inherit distutils-r1
 
+MY_PN=CommonMark
+MY_P=${MY_PN}-${PV}
 DESCRIPTION="Python parser for the CommonMark Markdown spec"
 HOMEPAGE="https://github.com/rtfd/CommonMark-py"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"
@@ -25,6 +27,8 @@ DEPEND="${RDEPEND}
        dev-python/setuptools[${PYTHON_USEDEP}]
 "
 
+S=${WORKDIR}/${MY_P}
+
 python_test() {
        PYTHONIOENCODING='utf8' \
        esetup.py test