Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/trinity/files/, dev-util/trinity/
Date: Sun, 06 Mar 2016 21:00:37
Message-Id: 1457298010.ef1e3691a08f60f32162c99edac0678482e261d4.radhermit@gentoo
1 commit: ef1e3691a08f60f32162c99edac0678482e261d4
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 6 20:59:29 2016 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 6 21:00:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef1e3691
7
8 dev-util/trinity: version bump to 1.6
9
10 dev-util/trinity/Manifest | 1 +
11 dev-util/trinity/files/trinity-1.6-cflags.patch | 11 ++++++
12 dev-util/trinity/trinity-1.6.ebuild | 45 +++++++++++++++++++++++++
13 3 files changed, 57 insertions(+)
14
15 diff --git a/dev-util/trinity/Manifest b/dev-util/trinity/Manifest
16 index 6829e0b..579ef6a 100644
17 --- a/dev-util/trinity/Manifest
18 +++ b/dev-util/trinity/Manifest
19 @@ -1 +1,2 @@
20 DIST trinity-1.5.tar.xz 171684 SHA256 e7b641d21954873bac7b5c27e7a9986837e83ec14fa20c55901c4333cce22655 SHA512 58884c8e226258de6037e06029b6c593a99b467e9b107562458557954fd4af185f88fbcacc04fc52f05318a860ebab4605c227e6a02b32253439807d4071cd8d WHIRLPOOL e737ac877b95a62e40a2cc9273f0b0d4dc79275b6dafab85b54815f1581c9c824189d88781cc26468c56166f6e87273fc5df1b786b69069b1dc4654d2a874f43
21 +DIST trinity-1.6.tar.xz 177808 SHA256 e40efa320ddc814943e90be0386b5052ce0bbbc457b3f308fa973669d393a6d9 SHA512 43ceb5ef96e97d3c338deb582b250202073d6f203ee596ce676d77a52bcfe06f53e068d07a0ee9f1d49f74319e24ba885cb7529d8868ac67f0237f2c4cfde2de WHIRLPOOL f7afe7514fe2ac2b6de3c4a05f8a4bb0bb7a328267c093e924e6345f03ffa864be06a3223b32c24ab4e334b016868f66696417d7de30d2561ea71a1a67f45183
22
23 diff --git a/dev-util/trinity/files/trinity-1.6-cflags.patch b/dev-util/trinity/files/trinity-1.6-cflags.patch
24 new file mode 100644
25 index 0000000..9243619
26 --- /dev/null
27 +++ b/dev-util/trinity/files/trinity-1.6-cflags.patch
28 @@ -0,0 +1,11 @@
29 +--- trinity-1.6/Makefile
30 ++++ trinity-1.6/Makefile
31 +@@ -10,7 +10,7 @@
32 + CC := $(CROSS_COMPILE)$(CC)
33 + LD := $(CROSS_COMPILE)$(LD)
34 +
35 +-CFLAGS += -Wall -W -g -O2 -I. -Iinclude/ -Wimplicit -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__linux__
36 ++CFLAGS += -Wall -W -I. -Iinclude/ -Wimplicit -D_GNU_SOURCE -D__linux__
37 +
38 + # Only enabled during development, and on gcc 4.9+
39 + CPP_MAJOR := $(shell $(CPP) -dumpversion 2>&1 | cut -d'.' -f1)
40
41 diff --git a/dev-util/trinity/trinity-1.6.ebuild b/dev-util/trinity/trinity-1.6.ebuild
42 new file mode 100644
43 index 0000000..86d54f4
44 --- /dev/null
45 +++ b/dev-util/trinity/trinity-1.6.ebuild
46 @@ -0,0 +1,45 @@
47 +# Copyright 1999-2016 Gentoo Foundation
48 +# Distributed under the terms of the GNU General Public License v2
49 +# $Id$
50 +
51 +EAPI=5
52 +
53 +inherit toolchain-funcs eutils
54 +
55 +DESCRIPTION="A Linux system call fuzz tester"
56 +HOMEPAGE="http://codemonkey.org.uk/projects/trinity/"
57 +SRC_URI="http://codemonkey.org.uk/projects/${PN}/${P}.tar.xz"
58 +
59 +LICENSE="GPL-2"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~x86"
62 +IUSE="examples"
63 +
64 +DEPEND="
65 + app-arch/xz-utils
66 + sys-kernel/linux-headers
67 +"
68 +
69 +src_prepare() {
70 + epatch "${FILESDIR}"/${P}-cflags.patch
71 + tc-export CC
72 +}
73 +
74 +src_configure() {
75 + ./configure.sh || die
76 +}
77 +
78 +src_compile() {
79 + emake V=1
80 +}
81 +
82 +src_install() {
83 + dobin ${PN}
84 + dodoc Documentation/* README
85 +
86 + if use examples ; then
87 + exeinto /usr/share/doc/${PF}/scripts
88 + doexe scripts/*
89 + docompress -x /usr/share/doc/${PF}/scripts
90 + fi
91 +}