Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/sic/
Date: Thu, 31 Aug 2017 10:33:43
Message-Id: 1504175111.9648b653f7890632e09948954418ae97fb51f2a8.jer@gentoo
1 commit: 9648b653f7890632e09948954418ae97fb51f2a8
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 31 10:25:11 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 31 10:25:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9648b653
7
8 net-irc/sic: EAPI=6.
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 net-irc/sic/sic-1.2-r1.ebuild | 34 ++++++++++++++++++++++++++++++++++
13 1 file changed, 34 insertions(+)
14
15 diff --git a/net-irc/sic/sic-1.2-r1.ebuild b/net-irc/sic/sic-1.2-r1.ebuild
16 new file mode 100644
17 index 00000000000..2056ef61651
18 --- /dev/null
19 +++ b/net-irc/sic/sic-1.2-r1.ebuild
20 @@ -0,0 +1,34 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +inherit toolchain-funcs
26 +
27 +DESCRIPTION="An extremly simple IRC client"
28 +HOMEPAGE="https://tools.suckless.org/sic"
29 +SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz"
30 +
31 +LICENSE="MIT"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~x86 ~x86-fbsd"
34 +
35 +src_prepare() {
36 + default
37 +
38 + sed -i \
39 + -e '/^CFLAGS/{s: -Os::g; s:= :+= :g}' \
40 + -e '/^CC/d' \
41 + -e '/^LDFLAGS/{s:-s::g; s:= :+= :g}' \
42 + config.mk || die
43 + sed -i \
44 + -e 's|@${CC}|$(CC)|g' \
45 + Makefile || die
46 +}
47 +
48 +src_compile() {
49 + emake CC="$(tc-getCC)"
50 +}
51 +
52 +src_install() {
53 + emake DESTDIR="${D}" PREFIX="/usr" install
54 +}