Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/epic5/
Date: Sat, 07 Apr 2018 08:38:48
Message-Id: 1523090314.4e61d05c9aecb3eee317fc1b12b3397f44d0ca91.graaff@gentoo
1 commit: 4e61d05c9aecb3eee317fc1b12b3397f44d0ca91
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 7 08:38:08 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 7 08:38:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e61d05c
7
8 net-irc/epic5: fix ruby support, bug 650342
9
10 Switch to ruby-single.eclass. This fixes bug 650342 but also simplifies
11 ruby dependency handling. Remove the REQUIRED_USE since this will always
12 be a blocker for most people and simply build against the currently
13 selected ruby version provided by ruby-single. This is in effect what
14 the ebuild was doing before anyway.
15
16 Include correct slot for ncurses.
17
18 Use EAPI=6.
19
20 Closes: https://bugs.gentoo.org/650342
21 Package-Manager: Portage-2.3.24, Repoman-2.3.6
22
23 net-irc/epic5/epic5-1.1.10-r2.ebuild | 77 ++++++++++++++++++++++++++++++++++++
24 1 file changed, 77 insertions(+)
25
26 diff --git a/net-irc/epic5/epic5-1.1.10-r2.ebuild b/net-irc/epic5/epic5-1.1.10-r2.ebuild
27 new file mode 100644
28 index 00000000000..323296c7006
29 --- /dev/null
30 +++ b/net-irc/epic5/epic5-1.1.10-r2.ebuild
31 @@ -0,0 +1,77 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +USE_RUBY="ruby22 ruby23"
38 +
39 +inherit autotools eutils multilib ruby-single toolchain-funcs
40 +
41 +DESCRIPTION="Epic5 IRC Client"
42 +SRC_URI="ftp://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/${P}.tar.bz2"
43 +HOMEPAGE="http://epicsol.org/"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~ppc ~x86"
48 +IUSE="archive ipv6 perl tcl ruby socks5 valgrind"
49 +
50 +RDEPEND="
51 + >=dev-libs/openssl-0.9.8e-r3:0
52 + >=sys-libs/ncurses-5.6-r2:0
53 + virtual/libiconv
54 + archive? ( app-arch/libarchive )
55 + perl? ( >=dev-lang/perl-5.8.8-r2 )
56 + tcl? ( dev-lang/tcl:0 )
57 + socks5? ( net-proxy/dante )
58 + ruby? ( ${RUBY_DEPS} )"
59 +DEPEND="${RDEPEND}
60 + valgrind? ( dev-util/valgrind )"
61 +
62 +S=${WORKDIR}/${P}
63 +
64 +src_prepare() {
65 + epatch \
66 + "${FILESDIR}"/${PN}-1.1.2-libarchive-automagic.patch \
67 + "${FILESDIR}"/${P}-ruby-automagic-as-needed.patch \
68 + "${FILESDIR}"/${P}-tcl-automagic-as-needed.patch \
69 + "${FILESDIR}"/${PN}-1.1.2-perl-automagic-as-needed.patch \
70 + "${FILESDIR}"/${P}-without-localdir.patch \
71 + "${FILESDIR}"/${P}-socks5-libsocks.patch
72 +
73 + eapply_user
74 +
75 + eautoconf
76 +}
77 +
78 +src_configure() {
79 + # Because of our REQUIRED_USE constraints above, we know that
80 + # ruby_get_use_implementations will only ever return one ruby
81 + # implementation.
82 + econf \
83 + --libexecdir="${EPREFIX}"/usr/lib/misc \
84 + $(use_with archive libarchive) \
85 + $(use_with ipv6) \
86 + $(use_with perl) \
87 + $(use_with ruby) \
88 + $(use_with socks5) \
89 + $(use_with tcl tcl "${EPREFIX}"/usr/$(get_libdir)/tclConfig.sh) \
90 + $(use_with valgrind valgrind)
91 +}
92 +
93 +src_compile() {
94 + # parallel build failure
95 + emake -j1
96 +}
97 +
98 +src_install () {
99 + default
100 +
101 + dodoc BUG_FORM COPYRIGHT EPIC4-USERS-README README KNOWNBUGS VOTES
102 +
103 + cd "${S}"/doc || die
104 + docinto doc
105 + dodoc \
106 + *.txt colors EPIC* IRCII_VERSIONS missing \
107 + nicknames outputhelp README.SSL SILLINESS TS4
108 +}