diff options
author | Christian Heim <phreak@gentoo.org> | 2007-03-07 11:02:29 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2007-03-07 11:02:29 +0000 |
commit | 86ea43ec278c9c2baa8760420107fb1530932258 (patch) | |
tree | 6015b753dae95ad33cd505d01b818d853957941c /dev-util/quilt/quilt-0.42-r1.ebuild | |
parent | Adding preliminary mask for the new dev-util/quilt stuff .. (diff) | |
download | gentoo-2-86ea43ec278c9c2baa8760420107fb1530932258.tar.gz gentoo-2-86ea43ec278c9c2baa8760420107fb1530932258.tar.bz2 gentoo-2-86ea43ec278c9c2baa8760420107fb1530932258.zip |
Importing the ebuilds from my overlay, fixing some bugs (#152124, a stripping bug; noone reported yet); also introduction a new USE flag, that adds/removes the graphviz dependency.
(Portage version: 2.1.2.1)
Diffstat (limited to 'dev-util/quilt/quilt-0.42-r1.ebuild')
-rw-r--r-- | dev-util/quilt/quilt-0.42-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-util/quilt/quilt-0.42-r1.ebuild b/dev-util/quilt/quilt-0.42-r1.ebuild new file mode 100644 index 000000000000..e5929c661be0 --- /dev/null +++ b/dev-util/quilt/quilt-0.42-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/quilt/quilt-0.42-r1.ebuild,v 1.1 2007/03/07 11:02:29 phreak Exp $ + +inherit bash-completion eutils + +DESCRIPTION="quilt patch manager" +HOMEPAGE="http://savannah.nongnu.org/projects/quilt" +SRC_URI="http://savannah.nongnu.org/download/quilt/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="graphviz" + +RDEPEND="sys-apps/ed + dev-util/diffstat + graphviz? ( media-gfx/graphviz )" + +# The tests are somewhat broken while being run from within portage, work fine +# if you run them manually +RESTRICT="test" + +pkg_setup() { + echo + elog "If you intend to use the folding functionality (graphical illustration of the patch stack)" + elog "then you'll need to remerge this package with USE=graphviz." + echo + epause +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # quilt-0.4.2 prestrips the libraries. Prevent it! + epatch "${FILESDIR}"/${P}-prevent-stripping.patch + + # Add support for a "no-graphviz" version + use graphviz || epatch "${FILESDIR}"/${P}-no-graphviz.patch +} + +src_install() { + make BUILD_ROOT="${D}" install || die "make install failed" + + rm -rf "${D}"/usr/share/doc/${P} + dodoc AUTHORS TODO quilt.changes doc/README doc/README.MAIL \ + doc/quilt.pdf doc/sample.quiltrc + + rm -rf "${D}"/etc/bash_completion.d + dobashcompletion bash_completion +} |