From 1ba98f9e20c07408dd4341290618b04d63df7f84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Bartoszkiewicz?= Date: Tue, 20 Oct 2020 17:36:11 +0200 Subject: [PATCH 1/1] www-apps/bzium-lister: new package --- www-apps/bzium-lister/Manifest | 1 + .../bzium-lister/bzium-lister-0.1.0.ebuild | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 www-apps/bzium-lister/Manifest create mode 100644 www-apps/bzium-lister/bzium-lister-0.1.0.ebuild diff --git a/www-apps/bzium-lister/Manifest b/www-apps/bzium-lister/Manifest new file mode 100644 index 0000000..4397c77 --- /dev/null +++ b/www-apps/bzium-lister/Manifest @@ -0,0 +1 @@ +DIST bzium.lister-0.1.0.tar.gz 224636 BLAKE2B 4908dcf154fcb6aa6eb92c1489aee99f1155010d64fe98f624d5b3efea240e0ba82671bd8aeb023357602e381fd2d23120b6152e249bcec061a9fa397ca14a24 SHA512 22d758e894afea6488346f571ce99cfef6835e82572c2e6b430a0732951848df3272b57a302bb13a89ae3942fcf42296e213ab1a561d018dedd112088dc2a531 diff --git a/www-apps/bzium-lister/bzium-lister-0.1.0.ebuild b/www-apps/bzium-lister/bzium-lister-0.1.0.ebuild new file mode 100644 index 0000000..1b01535 --- /dev/null +++ b/www-apps/bzium-lister/bzium-lister-0.1.0.ebuild @@ -0,0 +1,47 @@ +EAPI=7 + +PYTHON_COMPAT=( python3_9 ) +inherit distutils-r1 + +MY_PN="${PN/-/.}" +MY_P="${MY_PN}-${PV}" +S="${WORKDIR}/${MY_P}" + +MY_PN_PATH="${PN/-//}" + +DESCRIPTION="" +HOMEPAGE="" +SRC_URI="https://embe.bzium.org/lister/${MY_P}.tar.gz" + +LICENSE="MIT OFL-1.1" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/flask[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/PyICU[${PYTHON_USEDEP}] +" + +python_prepare_all() +{ + distutils-r1_python_prepare_all + + sed -i -r -e "s@'(static|templates)/\*'(, *)?@@g" setup.py || die +} + +python_install() +{ + distutils-r1_python_install + + ln -s "${EPREFIX}/usr/share/${PN}/"{static,templates} "${ED}/$(python_get_sitedir)/${MY_PN_PATH}"/ +} + +python_install_all() +{ + distutils-r1_python_install_all + + insinto "${EPREFIX}/usr/share/${PN}" + doins -r "${MY_PN_PATH}"/{static,templates} +} -- 2.45.2