net-irc/ii: EAPI bump so people can apply their patches.
authorJeroen Roovers <jer@gentoo.org>
Thu, 23 Mar 2017 07:23:54 +0000 (08:23 +0100)
committerJeroen Roovers <jer@gentoo.org>
Thu, 23 Mar 2017 07:24:38 +0000 (08:24 +0100)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

net-irc/ii/ii-1.7-r1.ebuild [new file with mode: 0644]

diff --git a/net-irc/ii/ii-1.7-r1.ebuild b/net-irc/ii/ii-1.7-r1.ebuild
new file mode 100644 (file)
index 0000000..3bd8f00
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit fixheadtails toolchain-funcs
+
+DESCRIPTION="A minimalist FIFO and filesystem-based IRC client"
+HOMEPAGE="http://tools.suckless.org/ii/"
+SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+
+src_prepare() {
+       default
+
+       sed -i \
+               -e "s/CFLAGS[[:space:]]*= -g -O0/CFLAGS += /" \
+               -e "s/LDFLAGS[[:space:]]*=/LDFLAGS +=/" \
+               -e /^LIBS/d \
+               config.mk || die
+
+       # enable verbose build
+       sed -i 's/@${CC}/${CC}/' Makefile || die
+
+       ht_fix_file query.sh
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
+src_install() {
+       dobin ii
+       newbin query.sh ii-query
+       dodoc CHANGES FAQ README
+       doman *.1
+}