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: Thu, 13 Jan 2022 21:51:47
Message-Id: 1642110661.9f28a0f54184b2dc82b3e9511d1f3364a4504e00.mgorny@gentoo
1 commit: 9f28a0f54184b2dc82b3e9511d1f3364a4504e00
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 13 21:51:01 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 13 21:51:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f28a0f5
7
8 app-portage/eix: Bump to 0.36.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.36.1.ebuild | 103 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 104 insertions(+)
15
16 diff --git a/app-portage/eix/Manifest b/app-portage/eix/Manifest
17 index 10e8bd776dd6..c91f0c823670 100644
18 --- a/app-portage/eix/Manifest
19 +++ b/app-portage/eix/Manifest
20 @@ -1 +1,2 @@
21 DIST eix-0.36.0.tar.xz 640820 BLAKE2B 952e6a354cc5fd1145ef36fed6047bc6f10dd7a51166028581e3b392be66b5df07eabb96cba362dc4f7a50fbe19e6ccb3744d30928c4763a91af21ad02cee38d SHA512 891e343b01d3887cbc7e61933b43e79949ff702dcd8ada2f15ff57a628dc6ebc9a4b6817d3aa3d814474db3131aefcbbf56cec2520868dcb2182cbee780125b5
22 +DIST eix-0.36.1.tar.xz 640084 BLAKE2B 10014bb847d71b803967354f3a415dc1c74ad37385b7b440f0c162c573453042d06bbc575582831ffc0aad6b0f7abeedbcb4e23b869505d4f85d6bd6b7cfbba4 SHA512 915a364b0f63124c53e43eb35165ce553f6eadaf8708f0c075dc2f4871fe83378cd0c8650d5605c1f87c512563fdd62f28efdc586b358fc7cd63ae42a404981d
23
24 diff --git a/app-portage/eix/eix-0.36.1.ebuild b/app-portage/eix/eix-0.36.1.ebuild
25 new file mode 100644
26 index 000000000000..7d1c230fabe8
27 --- /dev/null
28 +++ b/app-portage/eix/eix-0.36.1.ebuild
29 @@ -0,0 +1,103 @@
30 +# Copyright 1999-2022 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 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 +}