Diff emech-3.0.99_p3-r1 with a emech-3.0.99_p20221123

/usr/portage/net-irc/emech/emech-3.0.99_p20221123.ebuild 2023-10-09 14:52:34.460368475 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=8
5 5

  
6 6
inherit readme.gentoo-r1 toolchain-funcs
7 7

  
8
DESCRIPTION="UNIX compatible IRC bot programmed in the C language"
9
HOMEPAGE="http://www.energymech.net/"
10
SRC_URI="http://www.energymech.net/files/${P/_/}.tar.gz"
11
S="${WORKDIR}/${P/_/}"
8
GIT_COMMIT="62b62c8388fac3b3715c5d6539e1d704b16fa2d6"
9

  
10
DESCRIPTION="UNIX compatible IRC bot programmed in C"
11
HOMEPAGE="https://github.com/EnergyMech/energymech"
12
SRC_URI="https://github.com/EnergyMech/energymech/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
13
S="${WORKDIR}/energymech-${GIT_COMMIT}"
12 14

  
13 15
LICENSE="GPL-2"
14 16
SLOT="0"
15 17
IUSE="debug session tcl"
16
KEYWORDS="amd64 ppc x86"
18
KEYWORDS="amd64 ~ppc ~x86"
17 19

  
18 20
RDEPEND="virtual/libcrypt:="
19 21
DEPEND="${RDEPEND}"
20 22

  
21 23
DOC_CONTENTS="You can find a compressed sample config file at /usr/share/doc/${PF}"
22 24

  
25
PATCHES=( "${FILESDIR}/${P}-fix-Wreturn-type.patch" )
23 26
src_prepare() {
24
	eapply "${FILESDIR}/${P}-buildfix.patch"
27
	default
25 28

  
26 29
	sed -i \
27
		-e 's: "help/":"/usr/share/energymech/help/":' \
28
		-e 's: "messages/":"/usr/share/energymech/messages/":' \
30
		-e 's:"help/":"/usr/share/energymech/help/":' \
29 31
		src/config.h.in || die
30 32
	# Respect CFLAGS and LDFLAGS
31 33
	sed -i \
......
33 35
		-e '/^GDBFLAG/d' \
34 36
		-e '/^PIPEFLAG/d' \
35 37
		src/Makefile.in || die
36

  
37
	eapply_user
38
}
39

  
40
myconf() {
41
	tc-export CC
42
	echo ./configure $*
43
	./configure $* || die "./configure failed"
44 38
}
45 39

  
46 40
src_configure() {
47
	myconf \
48
		--with-alias \
49
		--with-botnet \
50
		--with-bounce \
51
		--with-ctcp \
52
		--with-dccfile \
53
		--with-dynamode \
54
		--with-dyncmd \
55
		--with-greet \
56
		--with-ircd_ext \
57
		--with-md5 \
58
		--with-newbie \
59
		--with-note \
60
		--with-notify \
61
		--with-rawdns \
62
		--with-seen \
63
		--with-stats \
64
		--with-telnet \
65
		--with-toybox \
66
		--with-trivia \
67
		--without-uptime \
68
		--with-web \
69
		--with-wingate \
70
		--without-profiling \
71
		--without-redirect \
72
		$(use_with tcl) \
73
		$(use_with session) \
41
	tc-export CC
42
	myconf=(
43
		--with-alias
44
		--with-botnet
45
		--with-bounce
46
		--with-ctcp
47
		--with-dccfile
48
		--with-dynamode
49
		--with-dyncmd
50
		--with-greet
51
		--with-ircd_ext
52
		--with-md5
53
		--with-newbie
54
		--with-note
55
		--with-notify
56
		--with-rawdns
57
		--with-seen
58
		--with-stats
59
		--with-telnet
60
		--with-toybox
61
		--with-trivia
62
		--without-uptime
63
		--with-web
64
		--with-wingate
65
		--without-profiling
66
		--without-redirect
67
		$(use_with tcl)
68
		$(use_with session)
74 69
		$(use_with debug)
70
	)
71
	# not econf because we don't use autotools
72
	./configure "${myconf[@]}" || die "Configure failed"
75 73
}
76 74

  
77 75
src_compile() {
......
85 83
	doins -r help
86 84

  
87 85
	insinto /usr/share/energymech/messages
88
	doins messages/*.txt
86
	doins common/*.txt
89 87

  
90 88
	dodoc sample.* README* TODO VERSIONS CREDITS checkmech
91 89
	readme.gentoo_create_doc
Thank you!