python: add python-tkinter and idle-python to metapkg

also rename idle-python -> idle-python2
This commit is contained in:
classabbyamp 2024-12-19 13:01:59 -05:00
parent 03be795196
commit dc4fd7f6ae
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
5 changed files with 17 additions and 10 deletions

View File

@ -1 +1 @@
python-tkinter
python

1
srcpkgs/idle-python2 Symbolic link
View File

@ -0,0 +1 @@
python2-tkinter

View File

@ -1 +1 @@
python2-tkinter
python

View File

@ -14,3 +14,15 @@ python-devel_package() {
short_desc+=" - development files"
build_style=meta
}
python-tkinter_package() {
depends="python${version%%.*}-tkinter"
short_desc+=" - GUI toolkit"
build_style=meta
}
idle-python_package() {
depends="idle-python${version%%.*}"
short_desc="IDE for Python${version%%.*} using Tkinter"
build_style=meta
}

View File

@ -8,7 +8,7 @@ _desc="Interpreted, interactive, object-oriented programming language"
pkgname=python2-tkinter
version=2.7.18.10
revision=1
revision=2
_commit=3e06fbb19d735aea134b327ad7af28f17eee5d88
pycompile_dirs="usr/lib/python2.7/lib-tk"
hostmakedepends="pkg-config"
@ -77,7 +77,7 @@ do_install() {
ln -sf idle2.7 ${DESTDIR}/usr/bin/idle2
}
idle-python_package() {
idle-python2_package() {
short_desc="${_desc} - IDE for Python2 using Tkinter"
pycompile_dirs="usr/lib/python2.7/idlelib"
depends="${sourcepkg}-${version}_${revision}"
@ -88,9 +88,3 @@ idle-python_package() {
vinstall ${FILESDIR}/idle2.desktop 644 usr/share/applications
}
}
python-tkinter_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
build_style=meta
}