Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/eix/
Date: Wed, 20 May 2020 17:59:54
Message-Id: 1589997566.6f7cc76dee74838bfc9adff03789a4e91d098270.mgorny@gentoo
1 commit: 6f7cc76dee74838bfc9adff03789a4e91d098270
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 20 17:41:43 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 20 17:59:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f7cc76d
7
8 app-portage/eix: Bump to 0.34.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-portage/eix/Manifest | 1 +
13 app-portage/eix/eix-0.34.1.ebuild | 107 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 108 insertions(+)
15
16 diff --git a/app-portage/eix/Manifest b/app-portage/eix/Manifest
17 index 03b7b0eb348..a98ea31a6de 100644
18 --- a/app-portage/eix/Manifest
19 +++ b/app-portage/eix/Manifest
20 @@ -1,2 +1,3 @@
21 DIST eix-0.33.11.tar.xz 623256 BLAKE2B 756feed85cb4f40ef9228a03d2a8b8470eb6017b00d93b364d67e3d11ecaacce2bb9c6afed388d9f70dfcb7a0b9ece13ca6ee523f5839b7d9bf80cf3b2721524 SHA512 2829d1482abfe479ae71e8b00da07abe74ba3090ba2a3f9d9a93437cb2d4d64213968bcd6c082a6703ec1d9c36dfcfaa0850172f3ffd4d256f553b98eeaf29e6
22 DIST eix-0.33.9.tar.xz 627944 BLAKE2B cb4add12301a4f08b6ca052df92be34c8a448b386aa700e8ac7e1fbe8563cd76047994007ac94d8989747d843f70a5e1731b401510f58badd9811b30c2ce3be8 SHA512 7539a91d5b5343532ceab1f4aeb82a95413c39b1a57b9e7922032acc937cc8b839494fc40f3510218349561c6d50e89e1861d2fce5e60eabed2465316b28a756
23 +DIST eix-0.34.1.tar.xz 626484 BLAKE2B 3f33df9d3f45abc073d7b80a7a6b3574ef6c1372042cb1ec4f0b0213842bc48d8d5a76c005ece2c060a39b1c8778764eb1f6808e75bc10af6e366e33e10aa6c7 SHA512 86289d8dcb0cf87ad48c739aae637626f9e63200a48d019fc96e74f2851b2791a61741d5db72ceaf3e5a375fb0dbf9302b04f766c3def69bcaabb393545dc767
24
25 diff --git a/app-portage/eix/eix-0.34.1.ebuild b/app-portage/eix/eix-0.34.1.ebuild
26 new file mode 100644
27 index 00000000000..243166afda4
28 --- /dev/null
29 +++ b/app-portage/eix/eix-0.34.1.ebuild
30 @@ -0,0 +1,107 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit autotools bash-completion-r1 flag-o-matic tmpfiles
37 +
38 +DESCRIPTION="Search and query ebuilds"
39 +HOMEPAGE="https://github.com/vaeth/eix/"
40 +SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="debug doc nls sqlite"
46 +
47 +BOTHDEPEND="nls? ( virtual/libintl )
48 + sqlite? ( >=dev-db/sqlite-3:= )"
49 +RDEPEND="${BOTHDEPEND}
50 + >=app-shells/push-2.0-r1
51 + >=app-shells/quoter-3.0_p2-r1"
52 +DEPEND="${BOTHDEPEND}
53 + app-arch/xz-utils
54 + nls? ( sys-devel/gettext )"
55 +
56 +pkg_setup() {
57 + # remove stale cache file to prevent collisions
58 + local old_cache=${EROOT}/var/cache/${PN}
59 + if [[ -f ${old_cache} ]]; then
60 + rm "${old_cache}" || die
61 + fi
62 +}
63 +
64 +src_prepare() {
65 + default
66 + sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
67 +
68 + sed -e "/eixf_source=/s:push.sh:cat \"${EPREFIX}/usr/share/push/push.sh\":" \
69 + -e "/eixf_source=/s:quoter_pipe.sh:cat \"${EPREFIX}/usr/share/quoter/quoter_pipe.sh\":" \
70 + -i src/eix-functions.sh.in || die
71 + sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EPREFIX}/usr/share/eix/eix-functions\\\\\":" \
72 + -i src/Makefile.am || die
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 + local myconf=(
78 + $(use_enable debug paranoic-asserts)
79 + $(use_enable nls)
80 + $(use_with doc extra-doc)
81 + $(use_with sqlite)
82 + --without-protobuf
83 +
84 + # default configuration
85 + $(use_with prefix always-accept-keywords)
86 + --with-dep-default
87 + --with-required-use-default
88 +
89 + # paths
90 + --with-portage-rootpath="${ROOTPATH}"
91 + --with-eprefix-default="${EPREFIX}"
92 +
93 + # build a single executable with symlinks
94 + --disable-separate-binaries
95 + --disable-separate-tools
96 +
97 + # used purely to control/disrespect *FLAGS
98 + --disable-debugging
99 + --disable-new_dialect
100 + --disable-optimization
101 + --disable-strong-optimization
102 + --disable-security
103 + --disable-nopie-security
104 + --disable-strong-security
105 + )
106 +
107 + # https://github.com/vaeth/eix/issues/35
108 + append-cxxflags -std=c++14
109 +
110 + # work around https://github.com/vaeth/eix/issues/64, bug#687988
111 + local -x mv_fCXXFLAGS_cache='-mindirect-branch=thunk'
112 +
113 + econf "${myconf[@]}"
114 +}
115 +
116 +src_install() {
117 + default
118 + dobashcomp bash/eix
119 + dotmpfiles tmpfiles.d/eix.conf
120 +
121 + rm -r "${ED}"/usr/bin/eix-functions.sh || die
122 +}
123 +
124 +pkg_postinst() {
125 + tmpfiles_process eix.conf
126 +
127 + local obs=${EROOT}/var/cache/eix.previous
128 + if [[ -f ${obs} ]]; then
129 + ewarn "Found obsolete ${obs}, please remove it"
130 + fi
131 +}
132 +
133 +pkg_postrm() {
134 + if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
135 + rm -rf "${EROOT}/var/cache/${PN}" || die
136 + fi
137 +}