Diff ode-0.12 with a ode-0.14-r1

/usr/portage/dev-games/ode/ode-0.14-r1.ebuild 2021-04-20 00:09:00.000000000 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
inherit autotools
7

  
6 8
DESCRIPTION="Open Dynamics Engine SDK"
7 9
HOMEPAGE="http://ode.org/"
8
SRC_URI="mirror://sourceforge/opende/${P}.tar.bz2"
10
SRC_URI="https://bitbucket.org/odedevs/ode/downloads/${P}.tar.gz"
9 11

  
10
LICENSE="|| ( LGPL-2.1 BSD )"
11
SLOT="0"
12
LICENSE="|| ( LGPL-2.1+ BSD )"
13
SLOT="0/6"
12 14
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
13 15
IUSE="debug doc double-precision examples gyroscopic static-libs"
14 16

  
15 17
RDEPEND="
16 18
	examples? (
19
		virtual/glu
17 20
		virtual/opengl
18 21
	)
19 22
"
20 23
DEPEND="${RDEPEND}"
21 24
BDEPEND="doc? ( app-doc/doxygen )"
22 25

  
23
DOCS=( CHANGELOG.txt README.txt )
26
MY_EXAMPLES_DIR=/usr/share/doc/${PF}/examples
27

  
28
DOCS=( CHANGELOG.txt README.md )
29

  
30
PATCHES=(
31
	"${FILESDIR}"/${PN}-0.14-gcc7.patch
32
)
24 33

  
25 34
src_prepare() {
26 35
	default
27 36

  
28 37
	sed -i \
29
		-e "s:\$.*/drawstuff/textures:/usr/share/doc/${PF}/examples:" \
30
		drawstuff/src/Makefile.in \
31
		ode/demo/Makefile.in || die
38
		-e "s:\$.*/drawstuff/textures:${MY_EXAMPLES_DIR}:" \
39
		drawstuff/src/Makefile.am \
40
		ode/demo/Makefile.am || die
41
	eautoreconf
32 42
}
33 43

  
34 44
src_configure() {
......
46 56

  
47 57
src_compile() {
48 58
	emake
49

  
50 59
	if use doc ; then
51 60
		cd ode/doc || die
52 61
		doxygen Doxyfile || die
......
64 73
	fi
65 74

  
66 75
	if use examples ; then
67
		cd ode/demo || die
68

  
69
		exeinto /usr/share/doc/${PF}/examples
70

  
71
		local f
72
		for f in *.c* ; do
73
			doexe .libs/${f%.*}
74
		done
76
		docompress -x ${MY_EXAMPLES_DIR}
75 77

  
76
		cd ../.. || die
78
		insinto ${MY_EXAMPLES_DIR}
79
		exeinto ${MY_EXAMPLES_DIR}
77 80

  
78 81
		doexe drawstuff/dstest/dstest
79
		docinto examples
80
		dodoc ode/demo/*.{c,cpp,h} \
82
		doins ode/demo/*.{c,cpp,h} \
81 83
			drawstuff/textures/*.ppm \
82 84
			drawstuff/dstest/dstest.cpp \
83 85
			drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp}
86

  
87
		cd ode/demo || die
88

  
89
		local f
90
		for f in *.c* ; do
91
			doexe .libs/${f%.*}
92
		done
84 93
	fi
85 94
}
Thank you!