Сравнение webmcp-1.2.6-r1 с webmcp-2.1.0

/usr/portage/www-apps/webmcp/webmcp-2.1.0.ebuild 2023-10-09 14:52:35.884368511 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
LUA_COMPAT=( lua5-{1..4} luajit )
6
LUA_COMPAT=( lua5-{2,3} )
7 7

  
8 8
inherit lua-single toolchain-funcs
9 9

  
......
22 22
"
23 23
DEPEND="${RDEPEND}"
24 24

  
25
REQUIRED_USE="${LUA_REQUIRED_USE}"
26

  
25 27
S="${WORKDIR}"/${MY_P}
26 28

  
27 29
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
28 30

  
29
src_prepare() {
30
	default
31

  
32
	# Use correct LUA version
33
	sed -i \
34
		-e "s/-llua/$(lua_get_LIBS)/g" \
35
		libraries/multirand/Makefile \
36
		libraries/mondelefant/Makefile \
37
		libraries/extos/Makefile || die
38
}
39

  
40 31
src_compile() {
41
	emake CC="$(tc-getCC) $(lua_get_CFLAGS)" LD="$(tc-getCC)" MYLDFLAGS="${LDFLAGS}"
42
	# Dereference symlinks
43
	cd framework
44
	mkdir lib.link
45
	mv lib/* lib.link
46
	cp lib.link/* lib
32
	emake CC="$(tc-getCC)" \
33
		CFLAGS="${CFLAGS} \
34
		$(lua_get_CFLAGS) -fPIC" \
35
		LD="$(tc-getCC)" \
36
		LDFLAGS="${LDFLAGS} -shared" \
37
		LDFLAGS_PGSQL="-L `pg_config --libdir`" \
38
		LUALIBS="$(lua_get_LIBS)"
47 39
}
48 40

  
49 41
src_install() {
50
	into /usr/lib/${PN}
51
	dolib.so framework/lib/*.so
52
	for subdir in "" ".precompiled"; do
53
		MY_DEST=/usr/lib/${PN}/framework${subdir}
54

  
55
		cd framework${subdir}
56
		exeinto ${MY_DEST}/accelerator
57
		doexe accelerator/webmcp_accelerator.so
58
		insinto ${MY_DEST}
59
		doins -r env js
60
		exeinto ${MY_DEST}/cgi-bin
61
		doexe cgi-bin/webmcp*.lua
62
		into ${MY_DEST}
63
		dobin bin/*
64
		insinto ${MY_DEST}/lib
65
		doins lib/*.lua
66
		cd ..
67

  
68
		for file in extos.so mondelefant_native.so multirand.so; do
69
			dosym ../../$(get_libdir)/$file ${MY_DEST}/lib/$file
70
		done
71

  
72
		insinto /usr/share/${PN}
73
		doins -r demo-app${subdir}
74
	done
75
	dodoc doc/*sample.conf libraries/mondelefant/example.lua
76
	docinto html
77
	dodoc doc/autodoc.html
42
	insinto /usr/lib/${PN}
43
	doins -r framework.precompiled/*
78 44
}
Спасибо!