Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/eix/
Date: Mon, 30 Mar 2020 08:01:08
Message-Id: 1585555233.1fe1cad751ac7132e1871f9c62f7572313771aaf.zlogene@gentoo
1 commit: 1fe1cad751ac7132e1871f9c62f7572313771aaf
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 30 08:00:33 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 30 08:00:33 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fe1cad7
7
8 app-portage/eix: Version bump (v0.33.11)
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 app-portage/eix/Manifest | 1 +
14 app-portage/eix/eix-0.33.11.ebuild | 107 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 108 insertions(+)
16
17 diff --git a/app-portage/eix/Manifest b/app-portage/eix/Manifest
18 index b6b5891bbfb..03b7b0eb348 100644
19 --- a/app-portage/eix/Manifest
20 +++ b/app-portage/eix/Manifest
21 @@ -1 +1,2 @@
22 +DIST eix-0.33.11.tar.xz 623256 BLAKE2B 756feed85cb4f40ef9228a03d2a8b8470eb6017b00d93b364d67e3d11ecaacce2bb9c6afed388d9f70dfcb7a0b9ece13ca6ee523f5839b7d9bf80cf3b2721524 SHA512 2829d1482abfe479ae71e8b00da07abe74ba3090ba2a3f9d9a93437cb2d4d64213968bcd6c082a6703ec1d9c36dfcfaa0850172f3ffd4d256f553b98eeaf29e6
23 DIST eix-0.33.9.tar.xz 627944 BLAKE2B cb4add12301a4f08b6ca052df92be34c8a448b386aa700e8ac7e1fbe8563cd76047994007ac94d8989747d843f70a5e1731b401510f58badd9811b30c2ce3be8 SHA512 7539a91d5b5343532ceab1f4aeb82a95413c39b1a57b9e7922032acc937cc8b839494fc40f3510218349561c6d50e89e1861d2fce5e60eabed2465316b28a756
24
25 diff --git a/app-portage/eix/eix-0.33.11.ebuild b/app-portage/eix/eix-0.33.11.ebuild
26 new file mode 100644
27 index 00000000000..1f78164374e
28 --- /dev/null
29 +++ b/app-portage/eix/eix-0.33.11.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 +
83 + # default configuration
84 + $(use_with prefix always-accept-keywords)
85 + --with-dep-default
86 + --with-required-use-default
87 +
88 + # paths
89 + --with-portage-rootpath="${ROOTPATH}"
90 + --with-eprefix-default="${EPREFIX}"
91 +
92 + # build a single executable with symlinks
93 + --disable-separate-binaries
94 + --disable-separate-tools
95 +
96 + # used purely to control/disrespect *FLAGS
97 + --disable-debugging
98 + --disable-new_dialect
99 + --disable-optimization
100 + --disable-strong-optimization
101 + --disable-security
102 + --disable-nopie-security
103 + --disable-strong-security
104 + )
105 +
106 + # https://github.com/vaeth/eix/issues/35
107 + append-cxxflags -std=c++14
108 +
109 + # work around https://github.com/vaeth/eix/issues/64, bug#687988
110 + local -x mv_fCXXFLAGS_cache='-mindirect-branch=thunk'
111 +
112 + econf "${myconf[@]}"
113 +}
114 +
115 +src_install() {
116 + default
117 + dobashcomp bash/eix
118 + dotmpfiles tmpfiles.d/eix.conf
119 +
120 + rm -r "${ED}"/usr/bin/eix-functions.sh || die
121 +
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 +}