diff options
author | Sam James <sam@gentoo.org> | 2022-10-02 20:33:25 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-03 01:38:08 +0100 |
commit | 3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa (patch) | |
tree | c681dee02d472cd10350ab8d5cc3ccf56e2aba87 /games-mud/tf/tf-5.0_beta8_p8-r1.ebuild | |
parent | dev-libs/atk: Version bump to 2.46.0 (diff) | |
download | gentoo-3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa.tar.gz gentoo-3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa.tar.bz2 gentoo-3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa.zip |
games-mud/tf: fix implicit function decls. (Clang 16+)
There's other code quality issues but there's so many of these
bugs that we need to just keep moving forward for now, e.g.
```
* socket.c:2657:27: warning: assignment to ‘String *’ from incompatible pointer type ‘conString *’ [-Wincompatible-pointer-types]
```
Closes: https://bugs.gentoo.org/871084
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-mud/tf/tf-5.0_beta8_p8-r1.ebuild')
-rw-r--r-- | games-mud/tf/tf-5.0_beta8_p8-r1.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/games-mud/tf/tf-5.0_beta8_p8-r1.ebuild b/games-mud/tf/tf-5.0_beta8_p8-r1.ebuild new file mode 100644 index 000000000000..753307b19424 --- /dev/null +++ b/games-mud/tf/tf-5.0_beta8_p8-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV="${PV/_beta/b}" +MY_PV="${MY_PV/_p*/}" +MY_PV="$(ver_rs 1 '' "${MY_PV}")" +# 5.0_beta8_p8 -> 5.0beta8-8 +MY_DEB_PV="$(ver_cut 1-2)$(ver_cut 3-4)-$(ver_cut 6)" + +DESCRIPTION="A small, flexible, screen-oriented MUD client (aka TinyFugue)" +HOMEPAGE="http://tinyfugue.sourceforge.net/" +SRC_URI=" + mirror://sourceforge/tinyfugue/tf-${MY_PV}.tar.gz + mirror://debian/pool/main/t/tf5/tf5_${MY_DEB_PV}.debian.tar.xz + http://homepage.mac.com/mikeride/abelinc/scripts/allrootpatch.txt -> tf-allrootpatch.txt + http://homepage.mac.com/mikeride/abelinc/scripts/allsrcpatch.txt -> tf-allsrcpatch.txt + doc? ( mirror://sourceforge/tinyfugue/tf-${MY_PV}-help.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+atcp doc +gmcp ipv6 +option102 ssl" + +RDEPEND=" + dev-libs/libpcre + sys-libs/ncurses:= + ssl? ( dev-libs/openssl:0= ) +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/tf-${MY_PV}" + +PATCHES=( + "${WORKDIR}"/debian/patches + "${DISTDIR}"/tf-allrootpatch.txt + "${DISTDIR}"/tf-allsrcpatch.txt + "${FILESDIR}"/tf-50_beta8-pcre.patch + "${FILESDIR}"/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch +) + +src_configure() { + STRIP=: econf \ + $(use_enable atcp) \ + $(use_enable gmcp) \ + $(use_enable option102) \ + $(use_enable ssl) \ + $(use_enable ipv6 inet6) \ + --enable-manpage \ + --enable-termcap=tinfo +} + +src_install() { + dobin src/tf + newman src/tf.1.nroffman tf.1 + + use doc && HTML_DOCS=( ../${MY_P}-help/{*.html,commands,topics} ) + einstalldocs + + insinto /usr/share/${PN}-lib + # the application looks for this file here if /changes is called. + # see comments on bug #23274 + doins CHANGES + insopts -m0755 + doins -r tf-lib/. +} + +pkg_postinst() { + if use ipv6; then + ewarn + ewarn "You have merged TinyFugue with IPv6-support." + ewarn "Support for IPv6 is still being experimental." + ewarn "If you experience problems with connecting to hosts," + ewarn "try re-merging this package with USE="-ipv6"" + ewarn + fi +} |