]> git.bzium.org/ - embe/overlay.git/commitdiff
www-apps/bzium-lister: new package
authorMichał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Tue, 20 Oct 2020 15:36:11 +0000 (17:36 +0200)
committerMichał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Tue, 20 Oct 2020 15:36:11 +0000 (17:36 +0200)
www-apps/bzium-lister/Manifest [new file with mode: 0644]
www-apps/bzium-lister/bzium-lister-0.1.0.ebuild [new file with mode: 0644]

diff --git a/www-apps/bzium-lister/Manifest b/www-apps/bzium-lister/Manifest
new file mode 100644 (file)
index 0000000..4397c77
--- /dev/null
@@ -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 (file)
index 0000000..1b01535
--- /dev/null
@@ -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}
+}