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, 29 Jan 2023 15:47:55
Message-Id: 1675007269.a04c722d800ccb34f709264a46e371587b514457.mgorny@gentoo
1 commit: a04c722d800ccb34f709264a46e371587b514457
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 29 15:44:39 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 15:47:49 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a04c722d
7
8 app-portage/eix: Bump to 0.36.6
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.6.ebuild | 104 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 105 insertions(+)
15
16 diff --git a/app-portage/eix/Manifest b/app-portage/eix/Manifest
17 index 1fd366becce1..07c5f44bcf8e 100644
18 --- a/app-portage/eix/Manifest
19 +++ b/app-portage/eix/Manifest
20 @@ -1 +1,2 @@
21 DIST eix-0.36.5.tar.xz 640132 BLAKE2B b997be82e21e3316abc6f06bd120434f2a027d62a3bd97e54e7c6298ee201d9998fb0fda91955f88b1b9bbf15b3c6c0c1d821280508215131cde16d1eef621e7 SHA512 fb86367f34ae30dac10f0ba68a649c8e737f0f66fefb2933e100c63c57b778567753759f28a6b4afd0155430b050ff59297821c7b54fa73c6cd65b0231806d89
22 +DIST eix-0.36.6.tar.xz 640216 BLAKE2B 40f1d247f6a00ecc9e034f272e73346535724e1b0cf304ea990ae849414adb4490d181db1f781bf7825f18c12cee47e03921a3e43054631d2422e0a6c8a915b8 SHA512 4dbea2a0ac66b15061b491a8da15337894ef4ae18bfb2e77eaf74c6741a45487ca7378c80620341ccf4b335592c121ab55755f0562425a9dbf9a16a9c4aa3554
23
24 diff --git a/app-portage/eix/eix-0.36.6.ebuild b/app-portage/eix/eix-0.36.6.ebuild
25 new file mode 100644
26 index 000000000000..94125b74cd60
27 --- /dev/null
28 +++ b/app-portage/eix/eix-0.36.6.ebuild
29 @@ -0,0 +1,104 @@
30 +# Copyright 1999-2023 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
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 ~loong ~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 + virtual/pkgconfig
55 + nls? ( sys-devel/gettext )"
56 +
57 +pkg_setup() {
58 + # remove stale cache file to prevent collisions
59 + local old_cache=${EROOT}/var/cache/${PN}
60 + if [[ -f ${old_cache} ]]; then
61 + rm "${old_cache}" || die
62 + fi
63 +}
64 +
65 +src_prepare() {
66 + default
67 + sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
68 +
69 + sed -e "/eixf_source=/s:push.sh:cat \"${EPREFIX}/usr/share/push/push.sh\":" \
70 + -e "/eixf_source=/s:quoter_pipe.sh:cat \"${EPREFIX}/usr/share/quoter/quoter_pipe.sh\":" \
71 + -i src/eix-functions.sh.in || die
72 + sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EPREFIX}/usr/share/eix/eix-functions\\\\\":" \
73 + -i src/Makefile.am || die
74 +
75 + eautoreconf
76 +}
77 +
78 +src_configure() {
79 + local myconf=(
80 + $(use_enable debug paranoic-asserts)
81 + $(use_enable nls)
82 + $(use_with doc extra-doc)
83 + $(use_with sqlite)
84 + --without-protobuf
85 +
86 + # default configuration
87 + $(use_with prefix always-accept-keywords)
88 + --with-dep-default
89 + --with-required-use-default
90 +
91 + # paths
92 + --with-portage-rootpath="${ROOTPATH}"
93 + --with-eprefix-default="${EPREFIX}"
94 +
95 + # build a single executable with symlinks
96 + --disable-separate-binaries
97 + --disable-separate-tools
98 +
99 + # used purely to control/disrespect *FLAGS
100 + --disable-debugging
101 + --disable-new_dialect
102 + --disable-optimization
103 + --disable-strong-optimization
104 + --disable-security
105 + --disable-nopie-security
106 + --disable-strong-security
107 + )
108 +
109 + econf "${myconf[@]}"
110 +}
111 +
112 +src_install() {
113 + default
114 + dobashcomp bash/eix
115 + dotmpfiles tmpfiles.d/eix.conf
116 +
117 + rm -r "${ED}"/usr/bin/eix-functions.sh || die
118 +}
119 +
120 +pkg_postinst() {
121 + tmpfiles_process eix.conf
122 +
123 + local obs=${EROOT}/var/cache/eix.previous
124 + if [[ -f ${obs} ]]; then
125 + ewarn "Found obsolete ${obs}, please remove it"
126 + fi
127 +}
128 +
129 +pkg_postrm() {
130 + if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
131 + rm -rf "${EROOT}/var/cache/${PN}" || die
132 + fi
133 +}