From e2fde52f597b5f9433b15713d259b023844d20c5 Mon Sep 17 00:00:00 2001 From: Marc Schiffbauer Date: Mon, 27 Mar 2023 22:27:42 +0500 Subject: www-apps/isso: add 0.13.0, drop 0.12.5 Closes: https://bugs.gentoo.org/884991 Signed-off-by: Marc Schiffbauer --- www-apps/isso/Manifest | 7 +- www-apps/isso/isso-0.12.5.ebuild | 153 ------------------------------------- www-apps/isso/isso-0.13.0.ebuild | 158 +++++++++++++++++++++++++++++++++++++++ www-apps/isso/metadata.xml | 4 + 4 files changed, 165 insertions(+), 157 deletions(-) delete mode 100644 www-apps/isso/isso-0.12.5.ebuild create mode 100644 www-apps/isso/isso-0.13.0.ebuild diff --git a/www-apps/isso/Manifest b/www-apps/isso/Manifest index e66b933..2a90248 100644 --- a/www-apps/isso/Manifest +++ b/www-apps/isso/Manifest @@ -1,6 +1,5 @@ AUX isso.confd 1016 BLAKE2B 9882ace197b012396d0e485133be4919bb305eab26c6e6e6a28b4832082c517fba5cd43615a31822ee5c71dfc6fdebc3cfed81390d79f205708583882f4635ae SHA512 bbc3b7b2be587a9ff9a2332bdcf1624e2ce6e79c2be9ff07e855a5ced4c4d29d051a71934c341d771527152f4fc5b68f45d5c72f45a46fe8fbf8b2fbd7d62cb1 AUX isso.initd 901 BLAKE2B 100943e7bd8332954d59a84f65967e1bfb9e875c493a0c21f0859c1917f25d5501b8afbd89e5ffd97e5d234a0af53f700e9c27e8df72c7ab2ab14b317a5c0bf9 SHA512 910dbeff557385fd758f38453f2e728e7b923cba469fe8bae6ed1e56a4e0a09042aa3b2fea80b66feb445520caf13d3997093cff8194985da90f017f0aef144a -DIST isso-0.12.5.tar.gz 281138 BLAKE2B 5d11e4092a1f8400f6d6f42603ece510d3e9b807f80f2cdd94af6566063d628ba1c69171875795cc89291bfa530e84ee7ffa00fae1f582e2a9f635f6bacfd055 SHA512 847e0c3396035f0ca26bed30a9bf0471710a2c72862f290d248ee440edb0f6ff5031896bb47d5b490a4eb19743e519f1d0eabead5f5fc90de8df8ca7f8f54875 -EBUILD isso-0.12.5.ebuild 4057 BLAKE2B 514e509fdaeea84183dcd22f9e047cfa4f669713a6c26e6f89ca7e316128a2f5a4a5017fa6c7ce68aa57ee79d65b1ad568cf428c911e10af750b9bff99aaca21 SHA512 3ca21b1fec6154168850871be3bdf4675d59377b0019ec2defd61a913f76c5547cf06436189221860704ca3c97f1746be25fa32dddd3a2c8184e655bc9c939f4 -EBUILD isso-9999.ebuild 4057 BLAKE2B 514e509fdaeea84183dcd22f9e047cfa4f669713a6c26e6f89ca7e316128a2f5a4a5017fa6c7ce68aa57ee79d65b1ad568cf428c911e10af750b9bff99aaca21 SHA512 3ca21b1fec6154168850871be3bdf4675d59377b0019ec2defd61a913f76c5547cf06436189221860704ca3c97f1746be25fa32dddd3a2c8184e655bc9c939f4 -MISC metadata.xml 424 BLAKE2B ec6330b5739b707ab65716ae8850bab260462d9c0327378d4d58463db5f5d0c9c2841d2981e640af64cee75bd528fa2c8a87ca938cf90b3c701bc4837b753e4c SHA512 1334ced03462b9e20001ad78820de0ddeb418c9c3a713706eb414e41a8e1e517a56d3886a920ee3b5613ae61b92e999b18df0a2112e0ff9df4410c4e8d1e2387 +DIST isso-0.13.0.tar.gz 185824 BLAKE2B 40df9612362692c2072c937f253ca04b1d15992e78501bd00be4a0563b07fec41446cc16c3915a8c016299e4665dc6ebcc3153b3bf6e3442e96aecc6bf4405ba SHA512 0fdcca52bd03d92180864b8a60a80a166ae8eba64ac475320d02be631a3f713843ac7b993b2a39d9a41e1842628c985e66a8d65b43e9f3dcefbec80d89e0c895 +EBUILD isso-0.13.0.ebuild 3927 BLAKE2B a9920de2f7d0be313303619de6476185d4c8af3506e2b6c6e8190ec3385bda28c9b75c0e4cf6c61a09534cf9d7f37d047b0822a501af6b0bb2faee534e5e2691 SHA512 ea06655cc359fbce726b069fe7b0760309519f8d95fe886651eee9b109bec5e4bfbdb819ba22ec654aa2b28420e421be31e136fc6ef8dff7b783ccb42ca68a22 +MISC metadata.xml 543 BLAKE2B 23b547711b37ca3a566d18e8223421baaf46277e3001c88fa1eb1c8491a388e04a546b7b1be3dda8d2f8d37d3741bd4b62c823b671e57c5b0634c367d54362c9 SHA512 15118c054c61f7a3cfdaee743f650fe2a9ca57d50d907b7551848c36af940bac3b7229ef8ec8d03721148973b4806cf988977d3e46e30dd27a82835c69978745 diff --git a/www-apps/isso/isso-0.12.5.ebuild b/www-apps/isso/isso-0.12.5.ebuild deleted file mode 100644 index 9e61a71..0000000 --- a/www-apps/isso/isso-0.12.5.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 2014-2021 mschiff, eroen - -EAPI=6 - -# setup.py disallows 30 31 32 -# setup.py documents support 26 27 33 -# dev-python/html5lib -34 -# dev-python/itsdangerous -34 -# dev-python/misaka -26 -33 -34 -# dev-python/werkzeug -34 -# dev-python/configparser -26 -# dev-python/ipaddr -26 -PYTHON_COMPAT=( python3_9 ) - -inherit user distutils-r1 - -if [[ $PV == *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI=https://github.com/posativ/${PN}.git - JS_REPO_URIS=( https://github.com/jrburke/almond.git - https://github.com/jrburke/r.js.git - https://github.com/requirejs/text.git ) - VCS_DEPEND="dev-vcs/git[curl]" -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -fi - -DESCRIPTION="lightweight Disqus alternative" -HOMEPAGE="http://posativ.org/isso/ https://pypi.python.org/pypi/isso/ https://github.com/posativ/isso/" -# BSD: pbkdf2.js sha1.js crypto.py? -LICENSE="MIT BSD" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" -if [[ ${PV} == *9999* ]]; then - IUSE+=" debug doc test" - DOCS=( README.md CHANGES.rst docs/{contribute.rst,faq.rst} ) -else - DOCS=( ) -fi - -LIBDEPEND="dev-python/html5lib[${PYTHON_USEDEP}] - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/misaka-2.0[${PYTHON_USEDEP}] - /dev/null - node dist.js - popd 2>/dev/null - local RJS=${WORKDIR}/r.js.git/r.js - - # generate css - scss isso/css/isso.scss isso/css/isso.css - - # generate js using r.js - node "${RJS}" -o isso/js/build.embed.js - node "${RJS}" -o isso/js/build.count.js - if use debug; then - node "${RJS}" -o isso/js/build.embed.js optimize="none" out="isso/js/embed.dev.js" - node "${RJS}" -o isso/js/build.count.js optimize="none" out="isso/js/count.dev.js" - fi - fi - distutils-r1_src_compile -} - -python_compile_all() { - if [[ ${PV} == *9999* ]]; then - if use doc; then - mkdir -p "${T}"/html - pushd docs 2>/dev/null - sphinx-build -E -b dirhtml -a . "${T}"/html - popd 2>/dev/null - mkdir -p "${T}"/html/_static/css - scss docs/_static/css/site.scss "${T}"/html/_static/css/site.css - fi - fi -} - -python_test() { - if [[ ${PV} == *9999* ]]; then - # doctests fail, require https://github.com/gnublade/doctest-ignore-unicode - nosetests \ - --with-coverage --cover-package=isso \ - isso/ specs/ - #nosetests --with-doctest --with-doctest-ignore-unicode \ - # --with-coverage --cover-package=isso \ - # isso/ specs/ - fi -} - -python_install_all() { - distutils-r1_python_install_all - - insinto /etc - doins share/${PN}.conf - if [[ ${PV} == *9999* ]]; then - use doc && dodoc -r "${T}"/html - fi - - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} diff --git a/www-apps/isso/isso-0.13.0.ebuild b/www-apps/isso/isso-0.13.0.ebuild new file mode 100644 index 0000000..9ba41ab --- /dev/null +++ b/www-apps/isso/isso-0.13.0.ebuild @@ -0,0 +1,158 @@ +# Copyright 2014-2021 mschiff, eroen + +EAPI=7 + +# setup.py disallows 30 31 32 +# setup.py documents support 26 27 33 +# dev-python/html5lib -34 +# dev-python/itsdangerous -34 +# dev-python/misaka -26 -33 -34 +# dev-python/werkzeug -34 +# dev-python/configparser -26 +# dev-python/ipaddr -26 +PYTHON_COMPAT=( python3_{9..10} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +if [[ $PV == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI=https://github.com/posativ/${PN}.git + JS_REPO_URIS=( https://github.com/jrburke/almond.git + https://github.com/jrburke/r.js.git + https://github.com/requirejs/text.git ) + VCS_DEPEND="dev-vcs/git[curl]" +else + inherit pypi +fi + +DESCRIPTION="lightweight Disqus alternative" +HOMEPAGE="http://posativ.org/isso/ https://pypi.python.org/pypi/isso/ https://github.com/posativ/isso/" +# BSD: pbkdf2.js sha1.js crypto.py? +LICENSE="MIT BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +if [[ ${PV} == *9999* ]]; then + IUSE+=" debug doc test" + DOCS=( README.md CHANGES.rst docs/{contribute.rst,faq.rst} ) +else + DOCS=( ) +fi + +LIBDEPEND=" + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/itsdangerous[${PYTHON_USEDEP}] + dev-python/misaka[${PYTHON_USEDEP}] + dev-python/bleach[${PYTHON_USEDEP}] + dev-python/cffi[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/ipaddr[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + " + +HDEP="dev-python/setuptools[${PYTHON_USEDEP}]" +if [[ ${PV} == *9999* ]]; then + HDEP+=" ${VCS_DEPEND} + dev-ruby/sass + net-libs/nodejs + doc? ( dev-python/sphinx )" +fi +DEPEND="${HDEP}" +if [[ ${PV} == *9999* ]]; then + DEPEND+=" test? ( dev-python/nose[${PYTHON_USEDEP}] + ${LIBDEPEND} )" +fi +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + dev-db/sqlite + acct-user/${PN} + acct-group/${PN} + ${LIBDEPEND}" + +src_fetch() { + if [[ ${PV} == *9999* ]]; then + git-r3_src_fetch + for EGIT_REPO_URI in "${JS_REPO_URIS[@]}"; do ( + unset ${PN}_LIVE_REPO + git-r3_src_fetch + ); done + else + default + fi +} + +src_unpack() { + if [[ ${PV} == *9999* ]]; then + git-r3_src_unpack + for EGIT_REPO_URI in "${JS_REPO_URIS[@]}"; do ( + unset ${PN}_LIVE_REPO; + EGIT_CHECKOUT_DIR=${WORKDIR}/${EGIT_REPO_URI##*/} git-r3_src_unpack + ); done + mkdir -p "${S}"/isso/js/components/{requirejs-text,almond} + cp "${WORKDIR}"/text.git/text.js "${S}"/isso/js/components/requirejs-text/ + cp "${WORKDIR}"/almond.git/almond.js "${S}"/isso/js/components/almond/ + else + default + fi +} + +src_compile() { + if [[ ${PV} == *9999* ]]; then + # build r.js + pushd "${WORKDIR}"/r.js.git 2>/dev/null + node dist.js + popd 2>/dev/null + local RJS=${WORKDIR}/r.js.git/r.js + + # generate css + scss isso/css/isso.scss isso/css/isso.css + + # generate js using r.js + node "${RJS}" -o isso/js/build.embed.js + node "${RJS}" -o isso/js/build.count.js + if use debug; then + node "${RJS}" -o isso/js/build.embed.js optimize="none" out="isso/js/embed.dev.js" + node "${RJS}" -o isso/js/build.count.js optimize="none" out="isso/js/count.dev.js" + fi + fi + distutils-r1_src_compile +} + +python_compile_all() { + if [[ ${PV} == *9999* ]]; then + if use doc; then + mkdir -p "${T}"/html + pushd docs 2>/dev/null + sphinx-build -E -b dirhtml -a . "${T}"/html + popd 2>/dev/null + mkdir -p "${T}"/html/_static/css + scss docs/_static/css/site.scss "${T}"/html/_static/css/site.css + fi + fi +} + +python_test() { + if [[ ${PV} == *9999* ]]; then + # doctests fail, require https://github.com/gnublade/doctest-ignore-unicode + nosetests \ + --with-coverage --cover-package=isso \ + isso/ specs/ + #nosetests --with-doctest --with-doctest-ignore-unicode \ + # --with-coverage --cover-package=isso \ + # isso/ specs/ + fi +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc + #doins share/${PN}.conf + if [[ ${PV} == *9999* ]]; then + use doc && dodoc -r "${T}"/html + fi + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/www-apps/isso/metadata.xml b/www-apps/isso/metadata.xml index a3e26e8..02f4415 100644 --- a/www-apps/isso/metadata.xml +++ b/www-apps/isso/metadata.xml @@ -6,4 +6,8 @@ Isso is a lightweight commenting server similar to Disqus. It allows anonymous comments, maintains identity and is simple to administrate. It uses JavaScript and cross-origin ressource sharing for easy integration into static websites. + + posativ/isso + isso + -- cgit v1.2.3-65-gdbad