diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-03-22 11:07:55 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-03-22 11:09:31 +0100 |
commit | b49eee7e14b1626df7f88ac239f04ee2151d419e (patch) | |
tree | 6f8fdaf687d789ceead4dd4fc04e26b76793f61a /dev-util/redo/redo-0.42a.ebuild | |
parent | dev-ruby/rails: add 6.0.2.2 (diff) | |
download | gentoo-b49eee7e14b1626df7f88ac239f04ee2151d419e.tar.gz gentoo-b49eee7e14b1626df7f88ac239f04ee2151d419e.tar.bz2 gentoo-b49eee7e14b1626df7f88ac239f04ee2151d419e.zip |
dev-util/redo: Version 0.42a
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Closes: https://bugs.gentoo.org/693034
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'dev-util/redo/redo-0.42a.ebuild')
-rw-r--r-- | dev-util/redo/redo-0.42a.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/redo/redo-0.42a.ebuild b/dev-util/redo/redo-0.42a.ebuild new file mode 100644 index 000000000000..47a81ecf2022 --- /dev/null +++ b/dev-util/redo/redo-0.42a.ebuild @@ -0,0 +1,57 @@ +# Copyright 2018-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE="sqlite" +inherit multilib multiprocessing python-utils-r1 python-single-r1 + +DESCRIPTION="Smaller, easier, more powerful, and more reliable than make" +HOMEPAGE="https://github.com/apenwarr/redo" +SRC_URI="https://github.com/apenwarr/redo/archive/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/beautifulsoup[${PYTHON_MULTI_USEDEP}] + dev-python/markdown[${PYTHON_MULTI_USEDEP}] + ') + ${PYTHON_DEPS} +" +RDEPEND=" + ${BDEPEND} +" +S=${WORKDIR}/${PN}-${P} + +src_configure() { + echo ${PYTHON} > redo/whichpython || die +} + +src_compile() { + ./do -j$(makeopts_jobs) build || die +} + +src_test() { + local ARCH= CFLAGS= CXXFLAGS= LDFLAGS= + ./do -j$(makeopts_jobs) test || die +} + +src_install() { + DESTDIR="${D}" \ + DOCDIR="${D}/usr/share/doc/${PF}" \ + LIBDIR="${D}/$(python_get_sitedir)/${PN}" \ + ./do -j$(makeopts_jobs) \ + install || die + + python_fix_shebang "${D}" + + sed -i \ + -e 's|/lib/|/'"$(get_libdir)"'/|g' \ + "${D}"/usr/bin/* || die + + python_optimize +} |