Diff fortune-mod-3.12.0 with a fortune-mod-3.14.1-r1

/usr/portage/games-misc/fortune-mod/fortune-mod-3.14.1-r1.ebuild 2023-10-09 14:52:31.108368391 +0300
7 7

  
8 8
DESCRIPTION="The notorious fortune program"
9 9
HOMEPAGE="https://www.shlomifish.org/open-source/projects/fortune-mod/"
10
SRC_URI="https://github.com/shlomif/fortune-mod/releases/download/${P}/${P}.tar.xz"
10
SRC_URI="https://www.shlomifish.org/open-source/projects/${PN}/arcs/${P}.tar.xz
11
	https://github.com/shlomif/fortune-mod/releases/download/${P}/${P}.tar.xz"
11 12

  
12 13
LICENSE="BSD"
13 14
SLOT="0"
14
KEYWORDS="~alpha amd64 arm arm64 hppa ~m68k ~mips ppc64 ~riscv ~sparc x86"
15
IUSE="offensive"
16

  
17
DEPEND="app-text/recode:=
18
	!games-misc/fortune-mod-tao"
19
RDEPEND="${DEPEND}"
20
BDEPEND="app-text/App-XML-DocBook-Builder"
15
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc64 ~riscv ~sparc ~x86"
16
IUSE="offensive test"
17
RESTRICT="!test? ( test )"
18

  
19
RDEPEND="
20
	app-text/recode:=
21
	!games-misc/fortune-mod-tao
22
"
23
DEPEND="${RDEPEND}"
24
BDEPEND="
25
	app-text/App-XML-DocBook-Builder
26
	dev-lang/perl
27
	test? (
28
		dev-perl/File-Find-Object
29
		dev-perl/IO-All
30
		dev-perl/Test-Differences
31
		dev-perl/Test-Trap
32
	)
33
"
21 34

  
22
# TODO: Get tests running?
35
PATCHES=(
36
	"${FILESDIR}"/${PN}-3.14.0-valgrind-tests.patch
37
	"${FILESDIR}"/${PN}-3.14.1-fix-localdir-mixup.patch
38
)
23 39

  
24 40
src_configure() {
25 41
	local mycmakeargs=(
26 42
		-DNO_OFFENSIVE=$(usex !offensive)
27
		-DLOCALDIR="/usr/share/fortune"
43
		# bug #857246
44
		-DLOCALDIR="/usr/local/share/fortune"
28 45
		-DCOOKIEDIR="/usr/share/fortune"
29 46
	)
30 47

  
31 48
	cmake_src_configure
32 49
}
33 50

  
51
src_test() {
52
	cmake_src_compile check
53
}
54

  
34 55
src_install() {
35 56
	cmake_src_install
36 57

  
58
	# We don't want to create the dir if it doesn't exist
59
	rm -rf "${ED}"//usr/local || die
60

  
37 61
	mkdir -p "${ED}"/usr/bin || die
38 62
	mv "${ED}"/usr/games/fortune "${ED}"/usr/bin/fortune || die
39 63
	rm -rf "${ED}"/usr/games || die
Thank you!