summaryrefslogtreecommitdiff
path: root/net-irc/emech
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-11 15:23:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-11 15:23:05 +0000
commit1c8855d83ff1cb8040f3fccdb1e5d2f47e1d308d (patch)
treed93dddda8aad302287cadca1622f0a6fdb89d977 /net-irc/emech
parent583acea08c150460a36d3ee1a4800c33b9b19103 (diff)
gentoo auto-resync : 11:12:2022 - 15:23:05
Diffstat (limited to 'net-irc/emech')
-rw-r--r--net-irc/emech/Manifest5
-rw-r--r--net-irc/emech/emech-3.0.99_p20221123.ebuild90
-rw-r--r--net-irc/emech/files/emech-3.0.99_p20221123-fix-Wreturn-type.patch34
-rw-r--r--net-irc/emech/metadata.xml3
4 files changed, 131 insertions, 1 deletions
diff --git a/net-irc/emech/Manifest b/net-irc/emech/Manifest
index 1ab9a41e6f26..fb2d1e98a35a 100644
--- a/net-irc/emech/Manifest
+++ b/net-irc/emech/Manifest
@@ -1,4 +1,7 @@
+AUX emech-3.0.99_p20221123-fix-Wreturn-type.patch 763 BLAKE2B 6d29dde72ddccdbf3fea248ccda8a53379427204f158268a29fece0a8ab4973a375383cb9c3197968ea2f8cc248fc89266d30205758d15b4e0a3de98f7e9bfeb SHA512 afa85badb6ac4f3e4895dc8a3090fd420d45f7a567b4525686885d01d9fddc0ae078c6032111e2a4faffd4be0a9c677fa05d1133c6fa5daf7c78e2f8cf9c3735
AUX emech-3.0.99_p3-buildfix.patch 2732 BLAKE2B b5af908f431049c8e3f5d631477a62769ef578ec1b610182a71fdf0811d0da37b77601c4d2de78d4f78de6a7330488a5878b7c11612c85263fef1573a807a0c4 SHA512 40119107c596f29838474fd3828c08736abdbf0fdf069556da6842393e64a3514d2fbb31dbe8c267649e12bf9ec678295b07c725f11161da852dc285ef3c6151
+DIST emech-3.0.99_p20221123.tar.gz 290464 BLAKE2B a5b5bb057478e720d7e9039b4f1039b88d31dcb6f07b5fcbe1dfe5d29760336313183763ff35b8b66aba6402316d800a48b5509318a98cf9ab2729da7862a787 SHA512 e69455de286f3666ea8c53b9035ee927d5aff240ecf424c10d9eda6e1e957d97cba476c1b65cc6581e118938785366d313a687a00004e3d5f589a671194db41e
DIST emech-3.0.99p3.tar.gz 249209 BLAKE2B 8ff0806275f7b1c9e49bb2eeda2afa0ac94b894426a2f56508492f970070e4141f14f88ffb3c1c46855817c405d29454cf85ebba53c85b4038d7d9d079f4dff6 SHA512 8ce6f8889e060791ab3af6fa63623469a457c436b4e23c51dcd1833fd09e7692270a324ad1d15beb4ad390e9d481267a8ea60eb17c9fd3195b5ad0daf7341165
+EBUILD emech-3.0.99_p20221123.ebuild 1901 BLAKE2B baa25e744d65501d58fd979843da88880f7c473e7fa6bc6e44c121a9eb230f775fca814ae31d7b27b3988db5c1dca9d1c17958e4669df022bcf437862ab4cb61 SHA512 b2d23d9611ffca6e967b9f15dfedf8471d2eb5ffaca8e1dba13b11277c351734e51cdbcf5fe6fa31568d1dee756a92841fef65a3ee1f8f0ec6f8287b62b8c358
EBUILD emech-3.0.99_p3-r1.ebuild 1872 BLAKE2B 4f50aa3cdc66174d23d24388361634452c1b02762e466910fa4517c1df1ea7084e2c4d5712670112a71fa4a1cc924aef2445526ef912a67f8642d9c5708537ad SHA512 af12e37b56053ca9bb7a1b16e271f122f11d9140dce7f4f5a50638dfabe7809c7606a86c87730c5376d832da1523af6fb8dc464686c6ed80fe3af1c4c6a75cf9
-MISC metadata.xml 169 BLAKE2B 25149b73446be31f3ea3dd3a6394230987e7d4c601d1605fd3827b37bd99b3301c2e0edb95d0f59a4577ed27919f43c2cc02b1edf62c4012b935a82e709e0c05 SHA512 55c53f74b001bae56ba8c54581a4168335b6b3a28dac23a2102b76795d5fd41de33b8b3e1ec03f9acc6e7a3a77e93b1a6ff3e3967c3156dcbf22b5b5a6245ef5
+MISC metadata.xml 259 BLAKE2B 0211437df16d6c1944277e92ff5609664aec96e5b4542364b0950676f27e3f493941f7e40afe8ea1dd631046c33263d41be39b49843a803eb2d075e731e93c33 SHA512 caacfb7dacb9e1d9096bcd21938036d2799ecb24b05b89dbdbe7756948542cb3dfe479c48fd9647e2ea5c6f9009bf20acb5894cb468d06ab3d1cddf594fd1aab
diff --git a/net-irc/emech/emech-3.0.99_p20221123.ebuild b/net-irc/emech/emech-3.0.99_p20221123.ebuild
new file mode 100644
index 000000000000..f7107601febc
--- /dev/null
+++ b/net-irc/emech/emech-3.0.99_p20221123.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit readme.gentoo-r1 toolchain-funcs
+
+GIT_COMMIT="62b62c8388fac3b3715c5d6539e1d704b16fa2d6"
+
+DESCRIPTION="UNIX compatible IRC bot programmed in C"
+HOMEPAGE="https://github.com/EnergyMech/energymech"
+SRC_URI="https://github.com/EnergyMech/energymech/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/energymech-${GIT_COMMIT}"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug session tcl"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="virtual/libcrypt:="
+DEPEND="${RDEPEND}"
+
+DOC_CONTENTS="You can find a compressed sample config file at /usr/share/doc/${PF}"
+
+PATCHES=( "${FILESDIR}/${P}-fix-Wreturn-type.patch" )
+src_prepare() {
+ default
+
+ sed -i \
+ -e 's:"help/":"/usr/share/energymech/help/":' \
+ src/config.h.in || die
+ # Respect CFLAGS and LDFLAGS
+ sed -i \
+ -e '/^LFLAGS/s/\$(PIPEFLAG)/\0 \$(OPTIMIZE) \$(LDFLAGS)/' \
+ -e '/^GDBFLAG/d' \
+ -e '/^PIPEFLAG/d' \
+ src/Makefile.in || die
+}
+
+src_configure() {
+ tc-export CC
+ myconf=(
+ --with-alias
+ --with-botnet
+ --with-bounce
+ --with-ctcp
+ --with-dccfile
+ --with-dynamode
+ --with-dyncmd
+ --with-greet
+ --with-ircd_ext
+ --with-md5
+ --with-newbie
+ --with-note
+ --with-notify
+ --with-rawdns
+ --with-seen
+ --with-stats
+ --with-telnet
+ --with-toybox
+ --with-trivia
+ --without-uptime
+ --with-web
+ --with-wingate
+ --without-profiling
+ --without-redirect
+ $(use_with tcl)
+ $(use_with session)
+ $(use_with debug)
+ )
+ # not econf because we don't use autotools
+ ./configure "${myconf[@]}" || die "Configure failed"
+}
+
+src_compile() {
+ emake -C src CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}"
+}
+
+src_install() {
+ dobin src/energymech
+
+ insinto /usr/share/energymech
+ doins -r help
+
+ insinto /usr/share/energymech/messages
+ doins common/*.txt
+
+ dodoc sample.* README* TODO VERSIONS CREDITS checkmech
+ readme.gentoo_create_doc
+}
diff --git a/net-irc/emech/files/emech-3.0.99_p20221123-fix-Wreturn-type.patch b/net-irc/emech/files/emech-3.0.99_p20221123-fix-Wreturn-type.patch
new file mode 100644
index 000000000000..0413a61dcad8
--- /dev/null
+++ b/net-irc/emech/files/emech-3.0.99_p20221123-fix-Wreturn-type.patch
@@ -0,0 +1,34 @@
+QA warns about non-void functions returning no value. Both function are not used
+anywhere in the code anyway.
+
+Pascal Jäger <pascal.jaeger@leimstift.de> (2022-11-23)
+
+--- a/src/spy.c
++++ b/src/spy.c
+@@ -460,7 +460,7 @@ void end_redirect(void)
+ char *urlhost(const char *url)
+ {
+ char copy[strlen(url)];
+- const char *end,*beg,*dst;
++ char *end,*beg,*dst;
+ int n = 0;
+
+ beg = end = url;
+@@ -481,6 +481,7 @@ char *urlhost(const char *url)
+ end++;
+ }
+ stringcpy_n(copy,beg,(end-beg));
++ return beg;
+ #ifdef DEBUG
+ debug("(urlhost) host = %s\n",copy);
+ #endif
+--- a/src/toybox.c
++++ b/src/toybox.c
+@@ -196,6 +196,7 @@ int read_bigcharset(char *fname)
+ int read_ascii(char *rest)
+ {
+ to_user_q(global_from,FMT_PLAIN,rest);
++ return (0);
+ }
+
+ #ifdef TRIVIA
diff --git a/net-irc/emech/metadata.xml b/net-irc/emech/metadata.xml
index bef24d2c2337..6c1ae3471731 100644
--- a/net-irc/emech/metadata.xml
+++ b/net-irc/emech/metadata.xml
@@ -2,4 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">EnergyMech/energymech</remote-id>
+ </upstream>
</pkgmetadata>