1 |
commit: 6ad3f008db63785d0a96693ed22d27464a9e576b |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 26 11:36:31 2019 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 26 11:37:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ad3f008 |
7 |
|
8 |
dev-util/quilt: Add missing patch file |
9 |
|
10 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
dev-util/quilt/files/quilt-0.66.ebuild | 60 ++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/quilt/files/quilt-0.66.ebuild b/dev-util/quilt/files/quilt-0.66.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..0657d72ccb2 |
19 |
--- /dev/null |
20 |
+++ b/dev-util/quilt/files/quilt-0.66.ebuild |
21 |
@@ -0,0 +1,60 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI="6" |
26 |
+ |
27 |
+inherit bash-completion-r1 eutils |
28 |
+ |
29 |
+DESCRIPTION="quilt patch manager" |
30 |
+HOMEPAGE="https://savannah.nongnu.org/projects/quilt" |
31 |
+SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris" |
36 |
+IUSE="emacs graphviz elibc_Darwin elibc_SunOS" |
37 |
+ |
38 |
+RDEPEND="sys-apps/ed |
39 |
+ dev-util/diffstat |
40 |
+ graphviz? ( media-gfx/graphviz ) |
41 |
+ elibc_Darwin? ( app-misc/getopt ) |
42 |
+ elibc_SunOS? ( app-misc/getopt ) |
43 |
+ >=sys-apps/coreutils-8.5" |
44 |
+ |
45 |
+PDEPEND="emacs? ( app-emacs/quilt-el )" |
46 |
+ |
47 |
+pkg_setup() { |
48 |
+ use graphviz && return 0 |
49 |
+ echo |
50 |
+ elog "If you intend to use the folding functionality (graphical illustration of the" |
51 |
+ elog "patch stack) then you'll need to remerge this package with USE=graphviz." |
52 |
+ echo |
53 |
+} |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ # Add support for USE=graphviz |
57 |
+ use graphviz || eapply -p0 "${FILESDIR}/${P}-no-graphviz.patch" |
58 |
+ default |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] && \ |
63 |
+ myconf="${myconf} --with-getopt=${EPREFIX}/usr/bin/getopt-long" |
64 |
+ econf ${myconf} |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ emake BUILD_ROOT="${D}" install || die "make install failed" |
69 |
+ |
70 |
+ rm -rf "${ED}"usr/share/doc/${P} |
71 |
+ dodoc AUTHORS TODO "doc/README" "doc/README.MAIL" "doc/quilt.pdf" |
72 |
+ |
73 |
+ rm -rf "${ED}"/etc/bash_completion.d |
74 |
+ newbashcomp bash_completion ${PN} |
75 |
+ |
76 |
+ # Remove the compat symlinks |
77 |
+ rm -rf "${ED}"/usr/share/quilt/compat |
78 |
+ |
79 |
+ # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500 |
80 |
+ rm -rf "${ED}"/usr/share/emacs |
81 |
+} |