Diff visual-regexp-3.0-r1 with a visual-regexp-3.1

/usr/portage/dev-util/visual-regexp/visual-regexp-3.1.ebuild 2023-10-09 14:52:31.008368388 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
inherit desktop
6
inherit desktop edos2unix
7 7

  
8 8
DESCRIPTION="Type the regexp and visualize it on a sample of your choice"
9 9
HOMEPAGE="http://laurent.riesterer.free.fr/regexp/"
10 10
SRC_URI="
11 11
	https://dev.gentoo.org/~jlec/distfiles/visualregexp-icon.png.tar
12
	http://laurent.riesterer.free.fr/regexp/visual_regexp-${PV}.tar.gz"
13
S="${WORKDIR}"/visual_regexp-${PV}
12
	http://laurent.riesterer.free.fr/regexp/visual_regexp-${PV}.tcl"
13
S="${WORKDIR}"
14 14

  
15 15
LICENSE="GPL-2"
16 16
SLOT="0"
17
KEYWORDS="~amd64 ~ppc ~x86"
17
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
18 18

  
19
RDEPEND=">=dev-lang/tk-8.3"
19
RDEPEND=">=dev-lang/tk-8.5"
20 20

  
21 21
PATCHES=(
22 22
	"${FILESDIR}"/${P}-wish-fix.patch
23 23
	"${FILESDIR}"/${P}-help-font-fix.patch
24
	"${FILESDIR}"/${P}-home-conf-fix.patch
25
	"${FILESDIR}"/${P}-pattern-load-fix.patch
24
	"${FILESDIR}"/${P}-make-regexp-fix.patch
25
	"${FILESDIR}"/${PN}-3.0-home-conf-fix.patch
26
	"${FILESDIR}"/${PN}-3.0-pattern-load-fix.patch
26 27
)
27 28

  
28
src_install() {
29
	dodoc README
29
src_unpack() {
30
	# Manually copy the source file since unpack gets confused by things it can't unpack
31
	cp "${DISTDIR}/visual_regexp-${PV}.tcl" "${WORKDIR}/visual_regexp.tcl"
30 32

  
31
	newbin visual_regexp.tcl visualregexp
33
	default
34
}
32 35

  
33
	dosym visualregexp /usr/bin/tkregexp
36
src_prepare() {
37
	# File comes with DOS newlines
38
	edos2unix visual_regexp.tcl
34 39

  
35
	doicon "${WORKDIR}"/visualregexp-icon.png
40
	default
41
}
36 42

  
37
	domenu "${FILESDIR}"/visualregexp.desktop
43
src_install() {
44
	newbin visual_regexp.tcl visualregexp
45
	dosym visualregexp /usr/bin/tkregexp
46
	doicon "${WORKDIR}/visualregexp-icon.png"
47
	domenu "${FILESDIR}/visualregexp.desktop"
38 48
}
Thank you!