You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-irc/ii/ii-9999.ebuild

37 lines
653 B

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit git-r3 toolchain-funcs
DESCRIPTION="A minimalist FIFO and filesystem-based IRC client"
HOMEPAGE="https://tools.suckless.org/ii/"
EGIT_REPO_URI="https://git.suckless.org/ii"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
src_prepare() {
default
sed -i \
-e '/^CFLAGS/{s: -Os::g; s:= :+= :g}' \
-e '/^CC/d' \
-e '/^LDFLAGS/{s:-s::g; s:= :+= :g}' \
config.mk || die
sed -i \
-e 's|@${CC}|$(CC)|g' \
Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
dobin ii
dodoc CHANGES FAQ README
doman *.1
}