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: Sun, 06 Jun 2021 06:01:42
Message-Id: 1622958971.b6294d37081fb2a9fac2f5918dfad567893be9fa.mgorny@gentoo
1 commit: b6294d37081fb2a9fac2f5918dfad567893be9fa
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 6 05:56:11 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 6 05:56:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6294d37
7
8 app-portage/eix: Bump to 0.35.0
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.35.0.ebuild | 103 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 104 insertions(+)
15
16 diff --git a/app-portage/eix/Manifest b/app-portage/eix/Manifest
17 index acf9d04877f..3fa275baa37 100644
18 --- a/app-portage/eix/Manifest
19 +++ b/app-portage/eix/Manifest
20 @@ -1 +1,2 @@
21 DIST eix-0.34.12.tar.xz 629704 BLAKE2B 22c3a93b47c607467321445704c8b4fe0f8b131081609709ebe5e2bd09d0ac08194938641ab44304e51d9dc4d473615625a9ca0de649767b6552c60d38974b75 SHA512 458a01b8ccb5fe4c7fbf9eb8368dbb0c63ac587e0452de4c3a58fadfc62aa8b404e509d6f24d20956bd6f04c00bfdfc95d6bf59287c5ea9e07091bea67f8c4e2
22 +DIST eix-0.35.0.tar.xz 636432 BLAKE2B 8a880cde56c0010f193445d9813c533effd59b8ee570132a0c40d62de827968839d99ee16981d152e737b881519e9f73d4ddac5375b6339dd480064deefa6149 SHA512 b9a6e59e666ec6015a612e083839a11a77e1d649262a802a9c8684fe25abbeda7a2c51ea629f1bb85ddc77fccce42b577178284763668bb2d1bcc85df5d68f2e
23
24 diff --git a/app-portage/eix/eix-0.35.0.ebuild b/app-portage/eix/eix-0.35.0.ebuild
25 new file mode 100644
26 index 00000000000..a13024c139e
27 --- /dev/null
28 +++ b/app-portage/eix/eix-0.35.0.ebuild
29 @@ -0,0 +1,103 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit autotools bash-completion-r1 flag-o-matic tmpfiles
36 +
37 +DESCRIPTION="Search and query ebuilds"
38 +HOMEPAGE="https://github.com/vaeth/eix/"
39 +SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
44 +IUSE="debug doc nls sqlite"
45 +
46 +DEPEND="
47 + nls? ( virtual/libintl )
48 + sqlite? ( >=dev-db/sqlite-3:= )"
49 +RDEPEND="${DEPEND}
50 + >=app-shells/push-2.0-r1
51 + >=app-shells/quoter-3.0_p2-r1"
52 +BDEPEND="
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 +
74 + eautoreconf
75 +}
76 +
77 +src_configure() {
78 + local myconf=(
79 + $(use_enable debug paranoic-asserts)
80 + $(use_enable nls)
81 + $(use_with doc extra-doc)
82 + $(use_with sqlite)
83 + --without-protobuf
84 +
85 + # default configuration
86 + $(use_with prefix always-accept-keywords)
87 + --with-dep-default
88 + --with-required-use-default
89 +
90 + # paths
91 + --with-portage-rootpath="${ROOTPATH}"
92 + --with-eprefix-default="${EPREFIX}"
93 +
94 + # build a single executable with symlinks
95 + --disable-separate-binaries
96 + --disable-separate-tools
97 +
98 + # used purely to control/disrespect *FLAGS
99 + --disable-debugging
100 + --disable-new_dialect
101 + --disable-optimization
102 + --disable-strong-optimization
103 + --disable-security
104 + --disable-nopie-security
105 + --disable-strong-security
106 + )
107 +
108 + econf "${myconf[@]}"
109 +}
110 +
111 +src_install() {
112 + default
113 + dobashcomp bash/eix
114 + dotmpfiles tmpfiles.d/eix.conf
115 +
116 + rm -r "${ED}"/usr/bin/eix-functions.sh || die
117 +}
118 +
119 +pkg_postinst() {
120 + tmpfiles_process eix.conf
121 +
122 + local obs=${EROOT}/var/cache/eix.previous
123 + if [[ -f ${obs} ]]; then
124 + ewarn "Found obsolete ${obs}, please remove it"
125 + fi
126 +}
127 +
128 +pkg_postrm() {
129 + if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
130 + rm -rf "${EROOT}/var/cache/${PN}" || die
131 + fi
132 +}