Diff bison-3.1 with a bison-3.6.4

/usr/portage/sys-devel/bison/bison-3.6.4.ebuild 2020-08-29 18:09:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="6"
4
EAPI=7
5 5

  
6 6
inherit flag-o-matic
7 7

  
8
PATCHES="${PN}-3.6.3-patches-01.tar.xz"
9

  
8 10
DESCRIPTION="A general-purpose (yacc-compatible) parser generator"
9 11
HOMEPAGE="https://www.gnu.org/software/bison/"
10 12
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
11
	https://dev.gentoo.org/~whissi/dist/bison/${P}-patches-1.0.tar.xz"
13
	mirror://gentoo/${PATCHES}
14
	https://dev.gentoo.org/~whissi/dist/bison/${PATCHES}
15
	https://dev.gentoo.org/~polynomial-c/dist/bison/${PATCHES}"
12 16

  
13 17
LICENSE="GPL-2"
14 18
SLOT="0"
15
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
19
KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16 20
IUSE="examples nls static test"
17 21
RESTRICT="!test? ( test )"
18 22

  
19 23
RDEPEND=">=sys-devel/m4-1.4.16"
20
DEPEND="${RDEPEND}
24
DEPEND="${RDEPEND}"
25
BDEPEND="
21 26
	sys-devel/flex
22 27
	examples? ( dev-lang/perl )
23 28
	nls? ( sys-devel/gettext )
24
	test? ( dev-lang/perl )"
29
	test? ( dev-lang/perl )
30
"
25 31

  
26
DOCS=( AUTHORS ChangeLog-2012 NEWS README THANKS TODO ) # ChangeLog-1998 PACKAGING README-alpha README-release
32
DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) # ChangeLog-2012 ChangeLog-1998 PACKAGING README-alpha README-release
27 33

  
28 34
PATCHES=(
29
	"${WORKDIR}"/patches/${P}-optional-perl.patch #538300
30
	"${WORKDIR}"/patches/${P}-avoid_autoreconf.patch
35
	"${WORKDIR}"/patches/${PN}-3.5-optional-perl.patch #538300
36
	"${WORKDIR}"/patches/${PN}-3.6.3-avoid_autoreconf.patch
31 37
)
32 38

  
33 39
src_prepare() {
......
63 69
	default
64 70

  
65 71
	# This one is installed by dev-util/yacc
66
	mv "${ED%/}"/usr/bin/yacc{,.bison} || die
67
	mv "${ED%/}"/usr/share/man/man1/yacc{,.bison}.1 || die
72
	mv "${ED}"/usr/bin/yacc{,.bison} || die
73
	mv "${ED}"/usr/share/man/man1/yacc{,.bison}.1 || die
68 74

  
69 75
	# We do not need liby.a
70
	rm -r "${ED%/}"/usr/lib* || die
71

  
72
	# Move to documentation directory and leave compressing for EAPI>=4
73
	mv "${ED%/}"/usr/share/${PN}/README "${ED%/}"/usr/share/doc/${PF}/README.data
76
	rm -r "${ED}"/usr/lib* || die
74 77
}
75 78

  
76 79
pkg_postinst() {
77
	local f="${EROOT%/}/usr/bin/yacc"
80
	local f="${EROOT}/usr/bin/yacc"
78 81
	if [[ ! -e ${f} ]] ; then
79 82
		ln -s yacc.bison "${f}"
80 83
	fi
......
82 85

  
83 86
pkg_postrm() {
84 87
	# clean up the dead symlink when we get unmerged #377469
85
	local f="${EROOT%/}/usr/bin/yacc"
88
	local f="${EROOT}/usr/bin/yacc"
86 89
	if [[ -L ${f} && ! -e ${f} ]] ; then
87 90
		rm -f "${f}"
88 91
	fi
Thank you!