diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/blohg |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/blohg')
-rw-r--r-- | www-apps/blohg/Manifest | 7 | ||||
-rw-r--r-- | www-apps/blohg/blohg-0.13-r2.ebuild | 83 | ||||
-rw-r--r-- | www-apps/blohg/blohg-9999.ebuild | 81 | ||||
-rw-r--r-- | www-apps/blohg/files/use-recent-libgit2.patch | 17 | ||||
-rw-r--r-- | www-apps/blohg/metadata.xml | 27 |
5 files changed, 215 insertions, 0 deletions
diff --git a/www-apps/blohg/Manifest b/www-apps/blohg/Manifest new file mode 100644 index 000000000000..639cd07e9eae --- /dev/null +++ b/www-apps/blohg/Manifest @@ -0,0 +1,7 @@ +AUX use-recent-libgit2.patch 724 SHA256 504091526249be032bc126a9d9b8a75ff8df11861eff9cdd9b440a1d185e6c33 SHA512 fab12807128e60d6c9105947ca313233ea00e8b81329d9eb92e5307d24f0ec7b1173de6d1b6b6571bf2e8ce4820dc8d7c1e5dac0a3dfed14157357532b99d1e9 WHIRLPOOL 7a6be57653e2bfa1f00a65e3975c856848a6ade715e46e1006b04a7467d9d18a22ea67fa95bee72d699a0221eb2bedf125e1345422baddef0b1cd670acd48c09 +DIST blohg-0.13.tar.gz 75003 SHA256 34d10db8bdadee16931cadbdec904508e61d8f862b143f3a9e224171d92d0579 SHA512 de8643e85e3f72827408d726bbe2f8674dcc6dcf1efdc47d33a934892071f8365cb54e63a6adb803361c7fd04032b2ac4e786c442676e8a8132b6d3221696865 WHIRLPOOL b3396dfca37ff4279ece72d62c413cd590f7106c2d8aaeeaf0c46eba16c8a5f803955385052d557c39478ef71c37936a6204dccfb8db6384e9071ba346ee35f1 +EBUILD blohg-0.13-r2.ebuild 1713 SHA256 18460f49d3013f58c7d7bd43f0ac98176e58f2dcb0d1505bc3d5b29a41e751bf SHA512 040054a42203df846da96b8c3c3fc86d9704e704a92c330361cb2e0f221db5457fdd4b66ea512abeb2a8239a3601868ba5132f6cffa745794ab5358d6e0a06d4 WHIRLPOOL 3c5a5cd0a27fb1e433778755a39ce26d17454b26f1e8b5b52d698cd221bb875ab2bf05c46fe2608b0da29a5f3ab2c19926684c477516969b55a11f1a07e942ea +EBUILD blohg-9999.ebuild 1648 SHA256 5e10417baf764b60f0af9bfeef1aec01959a2a64bbfbb7fb0130d5177afa30a0 SHA512 a2a1d8a11ff880bf5b0531a43e3d9bd11918fbed9262b77bfd3759aa0708036831fe0c1199612c6514eae3f7fb48b4a371f0b7ece8ac97afd3ec4591743a84f3 WHIRLPOOL f7e83cd32d2170b0010ca666ff0e17b9e9d2464381c314400427832c86a745edaf4835b3a5c395dc53cc4887c77ba198e56162e96c579eec5a54b9dd8f8e9189 +MISC ChangeLog 3124 SHA256 ae5270a2461030998eb4f38e10481bd469cbb4db88a1f6fcacf483ce79c5a77e SHA512 a5c1ebd8a8d0fc7421342a6fb367c500dba2f1e5e12f8b7ad24827495d52ce331f6803f9c112cd9ca74367a48759b28bc405af58824cf52bdaca60429cde3684 WHIRLPOOL cbf3f0053392458c5d9a67a9cf4447346212aa0d726cb96d033c665dbfc12408621fa7d4ba1f073be519588e1f1deb9746e67dd722343c456c6752700e438c2d +MISC ChangeLog-2015 5519 SHA256 9fe96546c4df392704fa561bf5677a19435a336289d136c118c14d91ccc8a3e0 SHA512 f53210df613d1baa6491a9a76b301d9c449a9d8b11f177264c492c7e24e73cb6a41bde132fe984a20ab8466865c17dcd29589b8d551d1bdd40c791ac889fcef0 WHIRLPOOL 34e9dec85222742de7e13f024213aeeca5347dfc401e05ff7461a2132b2f0160c5102edc6c481d6709bcef750d92c2c0ceeea32866f82ee0d889fe8627f6d276 +MISC metadata.xml 983 SHA256 47376fea0ad9395bfad4b152b6b16abe4c1d2721cc9e8237cf2d6a35eb77af16 SHA512 39e0799c5a6e685ea188c12b8e2ddd34178fce3630a0cb84308a66c710730e8aeaeaf23444e4f8091ec2adf6eb1da3ea7bf74e1df1adb3d5caa2205da99cc6f8 WHIRLPOOL f2cbde055f56c97cc810a7d77aae8f5d2c1d4c4da2e334f2115e10f411ec1ecb335fa70967c090cbda234f49cf7d6166807a15cd0d1728a9494916b9eb8fa113 diff --git a/www-apps/blohg/blohg-0.13-r2.ebuild b/www-apps/blohg/blohg-0.13-r2.ebuild new file mode 100644 index 000000000000..f28eb4067fe4 --- /dev/null +++ b/www-apps/blohg/blohg-0.13-r2.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +GIT_ECLASS="" +if [[ ${PV} = *9999* ]]; then + GIT_ECLASS="git-r3" + EGIT_REPO_URI="https://github.com/rafaelmartins/blohg" +fi + +inherit distutils-r1 ${GIT_ECLASS} + +DESCRIPTION="A Mercurial (or Git) based blogging engine" +HOMEPAGE="https://github.com/rafaelmartins/blohg" + +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +KEYWORDS="~amd64 ~x86" +if [[ ${PV} = *9999* ]]; then + SRC_URI="" + KEYWORDS="" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="doc git +mercurial test" + +REQUIRED_USE="|| ( git mercurial ) + test? ( git mercurial )" + +RDEPEND=" + >=dev-python/click-2.0 + =dev-python/docutils-0.11* + >=dev-python/flask-0.10.1 + >=dev-python/flask-babel-0.7 + >=dev-python/frozen-flask-0.7 + >=dev-python/jinja-2.5.2 + dev-python/pyyaml + dev-python/setuptools + dev-python/pygments + git? ( >=dev-python/pygit2-0.21.3 ) + mercurial? ( >=dev-vcs/mercurial-1.6 )" + +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx ) + test? ( dev-python/mock )" + +python_prepare_all() { + if ! use git; then + rm -rf blohg/vcs_backends/git || die 'rm failed' + else + local PATCHES=( "${FILESDIR}/use-recent-libgit2.patch" ) + fi + + if ! use mercurial; then + rm -rf blohg/vcs_backends/hg || die 'rm failed' + fi + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} + +python_test() { + esetup.py test +} + +pkg_postinst() { + local ver="${PV}" + [[ ${PV} = *9999* ]] && ver="latest" + + elog "You may want to check the upgrade notes:" + elog "http://docs.blohg.org/en/${ver}/upgrade/" +} diff --git a/www-apps/blohg/blohg-9999.ebuild b/www-apps/blohg/blohg-9999.ebuild new file mode 100644 index 000000000000..f27bdfa76f24 --- /dev/null +++ b/www-apps/blohg/blohg-9999.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +GIT_ECLASS="" +if [[ ${PV} = *9999* ]]; then + GIT_ECLASS="git-r3" + EGIT_REPO_URI="https://github.com/rafaelmartins/blohg" +fi + +inherit distutils-r1 ${GIT_ECLASS} + +DESCRIPTION="A Mercurial (or Git) based blogging engine" +HOMEPAGE="https://github.com/rafaelmartins/blohg" + +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +KEYWORDS="~amd64 ~x86" +if [[ ${PV} = *9999* ]]; then + SRC_URI="" + KEYWORDS="" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="doc git +mercurial test" + +REQUIRED_USE="|| ( git mercurial ) + test? ( git mercurial )" + +RDEPEND=" + >=dev-python/click-2.0 + >=dev-python/docutils-0.11 + >=dev-python/flask-0.10.1 + >=dev-python/flask-babel-0.7 + >=dev-python/frozen-flask-0.7 + >=dev-python/jinja-2.5.2 + dev-python/pyyaml + dev-python/setuptools + dev-python/pygments + git? ( >=dev-python/pygit2-0.21.3 ) + mercurial? ( >=dev-vcs/mercurial-1.6 )" + +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx ) + test? ( dev-python/mock )" + +python_prepare_all() { + if ! use git; then + rm -rf blohg/vcs_backends/git || die 'rm failed' + fi + + if ! use mercurial; then + rm -rf blohg/vcs_backends/hg || die 'rm failed' + fi + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} + +python_test() { + esetup.py test +} + +pkg_postinst() { + local ver="${PV}" + [[ ${PV} = *9999* ]] && ver="latest" + + elog "You may want to check the upgrade notes:" + elog "http://docs.blohg.org/en/${ver}/upgrade/" +} diff --git a/www-apps/blohg/files/use-recent-libgit2.patch b/www-apps/blohg/files/use-recent-libgit2.patch new file mode 100644 index 000000000000..decd01b78fb5 --- /dev/null +++ b/www-apps/blohg/files/use-recent-libgit2.patch @@ -0,0 +1,17 @@ +diff --git a/blohg/vcs_backends/git/filectx.py b/blohg/vcs_backends/git/filectx.py +index 84f7aa3..5e20762 100644 +--- a/blohg/vcs_backends/git/filectx.py ++++ b/blohg/vcs_backends/git/filectx.py +@@ -73,7 +73,11 @@ def _last_changeset(self): + GIT_SORT_TIME): + diff = self._repo.diff(head, commit) + for patch in diff: +- if patch.new_file_path == self._path: ++ try: ++ new_file_path = patch.delta.new_file.path ++ except AttributeError: ++ new_file_path = patch.new_file_path ++ if new_file_path == self._path: + return head + head = commit + diff --git a/www-apps/blohg/metadata.xml b/www-apps/blohg/metadata.xml new file mode 100644 index 000000000000..bd59b4b58880 --- /dev/null +++ b/www-apps/blohg/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>rafaelmartins@gentoo.org</email> + <name>Rafael G. Martins</name> + </maintainer> + <longdescription lang="en"> + blohg is a Mercurial (or Git) based blogging engine written in Python, + built with the Flask micro-framework and some of his available extensions. + All the content of the blogs are stored inside repositories and the + repository history is used for build the posts and pages. blohg uses + Jinja2 as template engine. + </longdescription> + <upstream> + <maintainer status="active"> + <email>rafaelmartins@gentoo.org</email> + <name>Rafael G. Martins</name> + </maintainer> + <bugs-to>mailto:blohg@librelist.com</bugs-to> + <remote-id type="pypi">blohg</remote-id> + </upstream> + <use> + <flag name="git">Enable Git support</flag> + <flag name="mercurial">Enable Mercurial support</flag> + </use> +</pkgmetadata> |