diff options
author | Yixun Lan <dlan@gentoo.org> | 2017-10-16 14:59:01 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2017-10-16 15:02:04 +0800 |
commit | f2751e7270736adf5701baedb178f51477937d9b (patch) | |
tree | ac3c1af0d36f14f533ca225f8fadce9227510493 /dev-vcs/stgit/stgit-0.18.ebuild | |
parent | sys-apps/toybox: Bump (diff) | |
download | gentoo-f2751e7270736adf5701baedb178f51477937d9b.tar.gz gentoo-f2751e7270736adf5701baedb178f51477937d9b.tar.bz2 gentoo-f2751e7270736adf5701baedb178f51477937d9b.zip |
dev-vcs/stgit: version bump 0.18
also fix broken HOMEPAGE
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Diffstat (limited to 'dev-vcs/stgit/stgit-0.18.ebuild')
-rw-r--r-- | dev-vcs/stgit/stgit-0.18.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/dev-vcs/stgit/stgit-0.18.ebuild b/dev-vcs/stgit/stgit-0.18.ebuild new file mode 100644 index 000000000000..9ecaaef68946 --- /dev/null +++ b/dev-vcs/stgit/stgit-0.18.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="Manage a stack of patches using GIT as a backend" +HOMEPAGE="http://www.procode.org/stgit/" +UPSTREAM_VER= +[[ -n ${UPSTREAM_VER} ]] && \ + UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" + +SRC_URI="https://github.com/ctmarinas/stgit/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${UPSTREAM_PATCHSET_URI}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +RDEPEND=">=dev-vcs/git-1.6.3.3" + +# NOTE: It seems to be quite important which asciidoc version to use. +# So keep an eye on it for the future. +DEPEND="${RDEPEND} + doc? ( + app-text/asciidoc + app-text/xmlto + dev-lang/perl + )" + +PATCHES=( + "${FILESDIR}/${PN}-0.16-man-linkfix.patch" +) + +pkg_setup() { + if ! use doc; then + echo + ewarn "Manpages will not be built and installed." + ewarn "Enable the 'doc' useflag, if you want them." + echo + fi +} + +python_prepare_all() { + # Upstream's patchset + if [[ -n ${UPSTREAM_VER} ]]; then + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}"/patches-upstream + fi + + # this will be a noop, as we are working with a tarball, + # but throws git errors --> just get rid of it + sed -i -e 's/version\.write_builtin_version()//' setup.py || die + + distutils-r1_python_prepare_all +} + +src_compile() { + distutils-r1_src_compile + + # bug 526468 + if use doc; then + emake DESTDIR="${D}" \ + htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \ + mandir="${EPREFIX}/usr/share/man/" \ + doc + fi +} + +src_install() { + if use doc; then + emake DESTDIR="${D}" \ + htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \ + mandir="${EPREFIX}/usr/share/man/" \ + install-doc install-html + fi + + distutils-r1_src_install + + newbashcomp stgit-completion.bash 'stg' +} |