Diff quilt-0.68-r1 with a quilt-9999

/usr/portage/dev-util/quilt/quilt-9999.ebuild 2025-07-29 16:22:14.252455004 +0300
1 1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="8"
4
EAPI=8
5 5

  
6
inherit bash-completion-r1 elisp-common
6
EGIT_REPO_URI="https://git.savannah.gnu.org/git/quilt.git"
7

  
8
[[ ${PV} == 9999 ]] && inherit git-r3
9

  
10
inherit autotools bash-completion-r1 elisp-common
7 11

  
8 12
DESCRIPTION="quilt patch manager"
9 13
HOMEPAGE="https://savannah.nongnu.org/projects/quilt"
10
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
14
[[ ${PV} == 9999 ]] || SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz"
11 15

  
12 16
LICENSE="GPL-2 GPL-1+"  # any GPL version for quilt.el
13 17
SLOT="0"
14
KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
18
[[ ${PV} == 9999 ]] || \
19
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
15 20
IUSE="emacs graphviz"
16
# unresolved test failures
17
RESTRICT="test"
18 21

  
19
RDEPEND="sys-apps/ed
20
	dev-util/diffstat
21
	graphviz? ( media-gfx/graphviz )
22
RDEPEND="dev-util/diffstat
23
	mail-mta/sendmail
24
	sys-apps/ed
22 25
	elibc_Darwin? ( app-misc/getopt )
23 26
	elibc_SunOS? ( app-misc/getopt )
24
	>=sys-apps/coreutils-9.4-r1
25
	app-arch/zstd:="
27
	>=sys-apps/coreutils-8.32-r1
28
	graphviz? ( media-gfx/graphviz )
29
	app-arch/zstd:=
30
"
26 31

  
27 32
PATCHES=( "${FILESDIR}"/${PN}-el-0.45.4-header-window.patch )
28 33

  
29
pkg_setup() {
30
	use graphviz && return 0
31
	echo
32
	elog "If you intend to use the folding functionality (graphical illustration of the"
33
	elog "patch stack) then you'll need to remerge this package with USE=graphviz."
34
	echo
35
}
36

  
37 34
src_prepare() {
38 35
	# Add support for USE=graphviz
39 36
	use graphviz || PATCHES+=( "${FILESDIR}"/${PN}-0.66-no-graphviz.patch )
40 37
	default
38

  
39
	# remove failing test, because it fails on root-build
40
	rm -rf test/delete.test
41 41
}
42 42

  
43 43
src_configure() {
......
45 45
	[[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] \
46 46
		&& myconf+=( "--with-getopt=${EPREFIX}/usr/bin/getopt-long" )
47 47
	econf "${myconf[@]}"
48
	eautoreconf
49
	default
48 50
}
49 51

  
50 52
src_compile() {
......
55 57
src_install() {
56 58
	emake BUILD_ROOT="${D}" install
57 59

  
58
	rm -rf "${ED}"/usr/share/doc/${P}
60
	rm -rf "${ED}"/usr/share/doc/${PN}
59 61
	dodoc AUTHORS COPYING NEWS TODO "doc/README" "doc/README.MAIL" "doc/quilt.pdf"
60 62

  
61 63
	# Remove misplaced Emacs mode
Thank you!