Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/webmcp/, www-apps/webmcp/files/
Date: Sun, 18 Apr 2021 08:37:32
Message-Id: 1618735037.b4cdd931abd6fac49bb1ca28fdedb7c5b5e7a763.tupone@gentoo
1 commit: b4cdd931abd6fac49bb1ca28fdedb7c5b5e7a763
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 18 08:37:17 2021 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 18 08:37:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4cdd931
7
8 www-apps/webmcp: version bump to 2.1.0
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 www-apps/webmcp/Manifest | 1 +
14 www-apps/webmcp/files/webmcp-2.1.0-gentoo.patch | 73 +++++++++++++++++++++++++
15 www-apps/webmcp/webmcp-2.1.0.ebuild | 42 ++++++++++++++
16 3 files changed, 116 insertions(+)
17
18 diff --git a/www-apps/webmcp/Manifest b/www-apps/webmcp/Manifest
19 index a5d7a17c7d8..614c03a9f55 100644
20 --- a/www-apps/webmcp/Manifest
21 +++ b/www-apps/webmcp/Manifest
22 @@ -1 +1,2 @@
23 DIST webmcp-v1.2.6.tar.gz 132283 BLAKE2B ed5539b91eeb809a1e19b98f2dc8888c055ec547c95c53c0ea9232531bf9b8432ba6a0ad566a1d2fecbdcc056a52e42e99b973741fc44f923ea88369393c5ade SHA512 a233c312f85851c690f9b020e5df1fffb548c708199279021f384a36cf6e2b73a9b7bc2343c886ccc0e18aecf6d205e2a699fa2398b9bf0da587bc4f8a8f8556
24 +DIST webmcp-v2.1.0.tar.gz 145388 BLAKE2B 233b21ccc2c6ebcd32b847ee49ddf9ced5c15b79a860b484c9e3ad088f9996e9bcc56b43c34a558d134157800f19a9b586c9dbcee3ba61a2252178d0cf6b7cd7 SHA512 6698fab9c23d2fb4122bd79659babbcfed8a98515764deb7fa1519abb3c3d783ccec6fd2f23fc947e5e95cafdd066dde4518eff885cc98f36008785fcc45677f
25
26 diff --git a/www-apps/webmcp/files/webmcp-2.1.0-gentoo.patch b/www-apps/webmcp/files/webmcp-2.1.0-gentoo.patch
27 new file mode 100644
28 index 00000000000..90bf0992a60
29 --- /dev/null
30 +++ b/www-apps/webmcp/files/webmcp-2.1.0-gentoo.patch
31 @@ -0,0 +1,73 @@
32 +--- a/Makefile 2021-04-17 13:46:36.321270501 +0200
33 ++++ b/Makefile 2021-04-17 13:47:26.019424556 +0200
34 +@@ -2,10 +2,10 @@
35 +
36 + all::
37 +- make documentation
38 +- make accelerator
39 +- make libraries
40 +- make symlinks
41 +- make precompile
42 ++ $(MAKE) documentation
43 ++ $(MAKE) accelerator
44 ++ $(MAKE) libraries
45 ++ $(MAKE) symlinks
46 ++ $(MAKE) precompile
47 +
48 + documentation::
49 + rm -f doc/autodoc.tmp
50 +--- a/libraries/extos/Makefile 2013-03-13 21:49:19.710360750 +0100
51 ++++ b/libraries/extos/Makefile 2013-03-13 21:49:47.778096460 +0100
52 +@@ -1,7 +1,7 @@
53 + include ../../Makefile.options
54 +
55 + extos.so: extos.o
56 +- $(LD) $(LDFLAGS) -lrt -lcrypt -o extos.$(SLIB_EXT) extos.o
57 ++ $(LD) $(LDFLAGS) -o extos.$(SLIB_EXT) extos.o -lrt -lcrypt $(LUALIBS)
58 +
59 + extos.o: extos.c
60 + $(CC) -c $(CFLAGS) -o extos.o extos.c
61 +--- a/libraries/json/Makefile 2021-04-17 16:57:48.351876836 +0200
62 ++++ b/libraries/json/Makefile 2021-04-17 16:58:27.806190853 +0200
63 +@@ -1,7 +1,7 @@
64 + include ../../Makefile.options
65 +
66 + json.so: json.o
67 +- $(LD) $(LDFLAGS) -o json.$(SLIB_EXT) json.o
68 ++ $(LD) $(LDFLAGS) -o json.$(SLIB_EXT) json.o $(LUALIBS)
69 +
70 + json.o: json.c
71 + $(CC) -c $(CFLAGS) -o json.o json.c
72 +--- a/libraries/mondelefant/Makefile 2013-03-13 21:52:54.884250479 +0100
73 ++++ b/libraries/mondelefant/Makefile 2013-03-13 21:53:27.511932686 +0100
74 +@@ -1,7 +1,7 @@
75 + include ../../Makefile.options
76 +
77 + mondelefant_native.so: mondelefant_native.o
78 +- $(LD) $(LDFLAGS) $(LDFLAGS_PGSQL) -o mondelefant_native.$(SLIB_EXT) mondelefant_native.o -lpq
79 ++ $(LD) $(LDFLAGS) $(LDFLAGS_PGSQL) -o mondelefant_native.$(SLIB_EXT) mondelefant_native.o -lpq $(LUALIBS)
80 +
81 + mondelefant_native.o: mondelefant_native.c
82 + $(CC) -c $(CFLAGS) $(CFLAGS_PGSQL) -o mondelefant_native.o mondelefant_native.c
83 +--- a/libraries/multirand/Makefile 2013-03-13 21:54:29.399328173 +0100
84 ++++ b/libraries/multirand/Makefile 2013-03-13 21:54:58.019048434 +0100
85 +@@ -1,7 +1,7 @@
86 + include ../../Makefile.options
87 +
88 + multirand.so: multirand.o
89 +- $(LD) $(LDFLAGS) -o multirand.$(SLIB_EXT) multirand.o
90 ++ $(LD) $(LDFLAGS) -o multirand.$(SLIB_EXT) multirand.o $(LUALIBS)
91 +
92 + multirand.o: multirand.c
93 + $(CC) -c $(CFLAGS) -o multirand.o multirand.c
94 +--- a/framework/accelerator/Makefile 2021-04-17 18:36:56.402722612 +0200
95 ++++ b/framework/accelerator/Makefile 2021-04-17 18:37:08.605513867 +0200
96 +@@ -1,7 +1,7 @@
97 + include ../../Makefile.options
98 +
99 + webmcp_accelerator.so: webmcp_accelerator.o
100 +- $(LD) $(LDFLAGS) -o webmcp_accelerator.$(SLIB_EXT) webmcp_accelerator.o
101 ++ $(LD) $(LDFLAGS) -o webmcp_accelerator.$(SLIB_EXT) webmcp_accelerator.o $(LUALIBS)
102 +
103 + webmcp_accelerator.o: webmcp_accelerator.c
104 + $(CC) -c $(CFLAGS) -o webmcp_accelerator.o webmcp_accelerator.c
105
106 diff --git a/www-apps/webmcp/webmcp-2.1.0.ebuild b/www-apps/webmcp/webmcp-2.1.0.ebuild
107 new file mode 100644
108 index 00000000000..4ee6ed52337
109 --- /dev/null
110 +++ b/www-apps/webmcp/webmcp-2.1.0.ebuild
111 @@ -0,0 +1,42 @@
112 +# Copyright 1999-2021 Gentoo Authors
113 +# Distributed under the terms of the GNU General Public License v2
114 +
115 +EAPI=7
116 +
117 +LUA_COMPAT=( lua5-{2,3} )
118 +
119 +inherit lua-single toolchain-funcs
120 +
121 +MY_P=${PN}-v${PV}
122 +DESCRIPTION="Web application framework written in Lua and C"
123 +HOMEPAGE="https://www.public-software-group.org/webmcp"
124 +SRC_URI="https://www.public-software-group.org/pub/projects/${PN}/v${PV}/${MY_P}.tar.gz"
125 +
126 +LICENSE="HPND"
127 +KEYWORDS="~amd64"
128 +SLOT=0
129 +
130 +RDEPEND="
131 + ${LUA_DEPS}
132 + dev-db/postgresql:=
133 +"
134 +DEPEND="${RDEPEND}"
135 +
136 +S="${WORKDIR}"/${MY_P}
137 +
138 +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
139 +
140 +src_compile() {
141 + emake CC="$(tc-getCC)" \
142 + CFLAGS="${CFLAGS} \
143 + $(lua_get_CFLAGS) -fPIC" \
144 + LD="$(tc-getCC)" \
145 + LDFLAGS="${LDFLAGS} -shared" \
146 + LDFLAGS_PGSQL="-L `pg_config --libdir`" \
147 + LUALIBS="$(lua_get_LIBS)"
148 +}
149 +
150 +src_install() {
151 + insinto /usr/lib/${PN}
152 + doins -r framework.precompiled/*
153 +}