diff --git a/srcpkgs/python-prompt_toolkit b/srcpkgs/python-prompt_toolkit new file mode 120000 index 00000000000..1e14e8845b4 --- /dev/null +++ b/srcpkgs/python-prompt_toolkit @@ -0,0 +1 @@ +python-prompt_toolkit1 \ No newline at end of file diff --git a/srcpkgs/python-prompt_toolkit1/template b/srcpkgs/python-prompt_toolkit1/template index 9f9418afe91..dfd7b89927d 100644 --- a/srcpkgs/python-prompt_toolkit1/template +++ b/srcpkgs/python-prompt_toolkit1/template @@ -1,7 +1,8 @@ # Template file for 'python-prompt_toolkit1' pkgname=python-prompt_toolkit1 +reverts="2.0.9_1" version=1.0.15 -revision=1 +revision=2 archs=noarch wrksrc="prompt_toolkit-${version}" build_style=python-module @@ -14,22 +15,36 @@ license="BSD-3-Clause" homepage="https://github.com/jonathanslenders/python-prompt-toolkit" distfiles="${PYPI_SITE}/p/prompt_toolkit/prompt_toolkit-${version}.tar.gz" checksum=858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917 -conflicts="python-prompt_toolkit>=2" -replaces="python-prompt_toolkit<2" +conflicts="python-prompt_toolkit2" post_install() { vlicense LICENSE } python3-prompt_toolkit1_package() { - archs=noarch + archs=noarch pycompile_module="prompt_toolkit" depends="python3-six python3-wcwidth" short_desc="${short_desc/Python2/Python3}" - conflicts="python3-prompt_toolkit>=2" - replaces="python3-prompt_toolkit<2" + conflicts="python3-prompt_toolkit2" pkg_install() { vmove usr/lib/python3* vlicense LICENSE } } + +python-prompt_toolkit_package() { + archs=noarch + reverts="2.0.9_1" + build_style=meta + depends="python-prompt_toolkit1-${version}_${revision}" + short_desc="${short_desc} (transition package)" +} + +python3-prompt_toolkit_package() { + archs=noarch + reverts="2.0.9_1" + build_style=meta + depends="python3-prompt_toolkit1-${version}_${revision}" + short_desc="${short_desc/Python2/Python3} (transition package)" +} diff --git a/srcpkgs/python3-prompt_toolkit b/srcpkgs/python3-prompt_toolkit index 3c06d00254a..1e14e8845b4 120000 --- a/srcpkgs/python3-prompt_toolkit +++ b/srcpkgs/python3-prompt_toolkit @@ -1 +1 @@ -python-prompt_toolkit \ No newline at end of file +python-prompt_toolkit1 \ No newline at end of file