diff options
Diffstat (limited to 'dev-vcs/stgit')
-rw-r--r-- | dev-vcs/stgit/Manifest | 4 | ||||
-rw-r--r-- | dev-vcs/stgit/files/stgit-0.16-asciidoc-compat.patch | 13 | ||||
-rw-r--r-- | dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch | 11 | ||||
-rw-r--r-- | dev-vcs/stgit/metadata.xml | 18 | ||||
-rw-r--r-- | dev-vcs/stgit/stgit-0.16-r2.ebuild | 77 | ||||
-rw-r--r-- | dev-vcs/stgit/stgit-0.17.1-r1.ebuild | 87 |
6 files changed, 210 insertions, 0 deletions
diff --git a/dev-vcs/stgit/Manifest b/dev-vcs/stgit/Manifest new file mode 100644 index 000000000000..1c7e0faaf781 --- /dev/null +++ b/dev-vcs/stgit/Manifest @@ -0,0 +1,4 @@ +DIST stgit-0.16-missing-patches.tar.gz 1667 SHA256 f105bb417592be3c68d830ad1cf2e212e6e5cb809bf64cdffb516a0f7badd4f4 SHA512 29d4c3e68121654153b4e5142dd70d818737b09bbc8371d644a36dd9d18afaf78fdda91bc16f953c330bcbae19084384d8bcd216cdfe674df784e33165186db1 WHIRLPOOL c7628853e6c1eff498a95ff22ec3eb3bb69b60dfb0c6dcd5895a650b8d3aba966166dfd426a0c728e3d292f0a2ed197325b0af5ccd63fc99011b5b2e841e7194 +DIST stgit-0.16.tar.gz 362687 SHA256 02f1a19350ccf4a26abac1421df8c2d021e78f995c913f9562718a1700318a42 SHA512 782de3d5855aad4f5d040478745990517ebe2b26dc315a3ed41db95399bb46e075d63a70baa0e3aa2ab1012b59e6ad1f5940a904f296ef09d6bca60f66e417dd WHIRLPOOL e2334c041cb260455d549d33b6628fd4f6e1e7da850f2987ba86922504e07aed8177d092550348b52cad8894b0335d20ee1608b855fa1cb6545bdd301a9d38f1 +DIST stgit-0.17.1-upstream-patches-0.tar.xz 5064 SHA256 6e120dd85bcdcbbb64bea98bd5967bb1f01fbc9d3e80b4856d7e328cfcafc31e SHA512 da7b75898466c8be58c48a86aee6209a907f971c7b15b38034940598d353fa6ecb48894b220fbfd8e032e88e746b377c55485c8045c330607e122a082aa0374f WHIRLPOOL aa7b7a5f89703eb35fab26dec0bcf5ceae2e20608b2562c7b6f76e33d43b35113d97282cb6b5f4cdf5da6e11e07faacacb13215cef3f7dac31a862ff809641cb +DIST stgit-0.17.1.tar.gz 398466 SHA256 d43365a0c22e41a6fb9ba1a86de164d6475e79054e7f33805d6a829eb4056ade SHA512 3efdfb9bc024c3a7c0d74d49e85f157d5d5209c9a2ad0ce63a07138c02fb1580e92ac4a91796e79bbd221e6884317e975f9f44e35db0b484fd916bc67cd61abe WHIRLPOOL a7c4c83cfeace12ced60e846ed9daaffadea3ed201a90e72239e3f8df310164e00ce5a89174df177f89df4a609a66ac35e905f31419ed654081c3ab0c2cba859 diff --git a/dev-vcs/stgit/files/stgit-0.16-asciidoc-compat.patch b/dev-vcs/stgit/files/stgit-0.16-asciidoc-compat.patch new file mode 100644 index 000000000000..4386953a3ef6 --- /dev/null +++ b/dev-vcs/stgit/files/stgit-0.16-asciidoc-compat.patch @@ -0,0 +1,13 @@ +diff -urN stgit-0.16.orig/Documentation/asciidoc.conf stgit-0.16/Documentation/asciidoc.conf +--- stgit-0.16.orig/Documentation/asciidoc.conf 2012-01-09 13:12:42.000000000 -0800 ++++ stgit-0.16/Documentation/asciidoc.conf 2012-07-06 04:31:38.279051055 -0700 +@@ -100,3 +100,9 @@ + [linkstgsub-inlinemacro] + <a href="stg-{target}.html">{target}</a> + endif::backend-xhtml11[] ++ ++[macros] ++# regexen to match macro templates above ++(?P<name>linkman):(?P<target>\w+)\[(?P<attrlist>\d+)]= ++(?P<name>linkstgsub):(?P<target>\w+)\[]= ++(?P<name>linkstg):(?P<target>\w+)\[]= diff --git a/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch b/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch new file mode 100644 index 000000000000..83fdb5457879 --- /dev/null +++ b/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch @@ -0,0 +1,11 @@ +--- Documentation/Makefile.old 2012-07-08 23:55:38.958779174 +0200 ++++ Documentation/Makefile 2012-07-08 23:56:42.638010483 +0200 +@@ -72,7 +72,7 @@ + $(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $< + + %.1 : %.xml +- xmlto -m callouts.xsl man $< ++ xmlto -m callouts.xsl --stringparam man.base.url.for.relative.links=$(htmldir) man $< + + %.xml : %.txt + $(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf $< diff --git a/dev-vcs/stgit/metadata.xml b/dev-vcs/stgit/metadata.xml new file mode 100644 index 000000000000..6ad69ab1f95c --- /dev/null +++ b/dev-vcs/stgit/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>gentoo@necoro.eu</email> + <name>René 'Necoro' Neumann</name> + <description>Proxy maintainer, assign bugs</description> +</maintainer> +<maintainer> + <email>dlan@gentoo.org</email> + <description>Co maintainer, CC bugs</description> +</maintainer> +<maintainer> + <email>flameeyes@gentoo.org</email> + <description>Proxy/Backup, CC bugs</description> +</maintainer> +</pkgmetadata> diff --git a/dev-vcs/stgit/stgit-0.16-r2.ebuild b/dev-vcs/stgit/stgit-0.16-r2.ebuild new file mode 100644 index 000000000000..e8c311fa9bdb --- /dev/null +++ b/dev-vcs/stgit/stgit-0.16-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +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/" +SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz + mirror://gentoo/${P}-missing-patches.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm 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}/${P}-asciidoc-compat.patch" + "${FILESDIR}/${P}-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() { + # 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 + + # Workaround hardcoded prefix + sed -i -e "/prefix/s|/usr|${EPREFIX}/usr|" setup.cfg || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + emake DESTDIR="${D}" \ + htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \ + mandir="${EPREFIX}/usr/share/man/" \ + doc + fi +} + +python_install_all() { + 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_python_install_all + + newbashcomp stgit-completion.bash 'stg' +} diff --git a/dev-vcs/stgit/stgit-0.17.1-r1.ebuild b/dev-vcs/stgit/stgit-0.17.1-r1.ebuild new file mode 100644 index 000000000000..db043fb1ef70 --- /dev/null +++ b/dev-vcs/stgit/stgit-0.17.1-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +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=0 +[[ -n ${UPSTREAM_VER} ]] && \ + UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" + +SRC_URI="http://download.gna.org/${PN}/${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' +} |