Compare commits

...

2 Commits

Author SHA1 Message Date
~keith cf6f1a2459
Add dev-python/pyshaders 2022-08-08 02:08:29 +00:00
~keith e0cbadd94b
fixed bug where pipgen named ebuilds dev-python-VERSION.ebuild 2022-08-08 02:05:06 +00:00
3 changed files with 47 additions and 1 deletions

View File

@ -0,0 +1 @@
DIST pyshaders-1.4.1.tar.gz 10059 BLAKE2B 593419ea9972c9aed56c2f7e4d8f1c21e5cd8385e7e2a3c9e3a69517f47e7946a66bf995b456e6650ea781562046dcdbc960600539e09bc753df91a8957a8004 SHA512 a95d328f18ae50169ce4e7b62a0059a035d21c8b66053cfc60aef2fd93bb61ae5bd477c6d40b44bc8571fb12a89e83a4ffe20320cc36fdcd93cecfe4c20bd3d0

View File

@ -0,0 +1,45 @@
# Ebuild for pyshaders
# Auto-generated by pipgen.py - TEST ME!
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} pypy3 )
inherit distutils-r1
DESCRIPTION="OpenGL shader wrapper for python"
HOMEPAGE="
https://github.com/gabdube/pyshaders
https://pypi.org/project/pyshaders/
"
MY_PN="pyshaders"
MY_P="${MY_PN}-${PV}"
if [[ "${PV}" == *9999* ]]; then
EGIT_REPO_URI="https://github.com/gabdube/pyshaders.git"
inherit git-r3
else
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
S="${WORKDIR}/${MY_P}"
fi
LICENSE="MIT"
SLOT="0"
IUSE=""
RDEPEND="
dev-python/pyglet[${PYTHON_USEDEP}]
"
# pkg_data:
# {'dependencies': [],
# 'description': 'OpenGL shader wrapper for python',
# 'git_url': 'https://github.com/gabdube/pyshaders.git',
# 'home_url': 'https://github.com/gabdube/pyshaders',
# 'license': 'MIT',
# 'pypi_name': 'pyshaders',
# 'pypi_url': 'https://pypi.org/project/pyshaders/',
# 'setuptools_deps': [],
# 'version': '1.4.1'}

View File

@ -190,7 +190,7 @@ def __main__():
os.makedirs(pkg_name)
pkg_data = get_package((args.name + '/' + args.version) if args.version else args.name)
with open(f'{pkg_name}/{pkg_name.partition("/")[0]}-{pkg_data["version"]}.ebuild', 'w') as fh:
with open(f'{pkg_name}/{pkg_name.partition("/")[2]}-{pkg_data["version"]}.ebuild', 'w') as fh:
fh.write(fill_template(pkg_data))
if __name__ == '__main__':