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: Mon, 22 Oct 2018 15:04:28
Message-Id: 1540220536.250ae4edac101ca41670e8a738072481a4722d6c.mgorny@gentoo
1 commit: 250ae4edac101ca41670e8a738072481a4722d6c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 30 22:06:05 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 22 15:02:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=250ae4ed
7
8 app-portage/eix: Bump to 0.33.5
9
10 Closes: https://bugs.gentoo.org/667640
11 Closes: https://github.com/gentoo/gentoo/pull/10029
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 app-portage/eix/Manifest | 1 +
15 app-portage/eix/eix-0.33.5.ebuild | 109 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 110 insertions(+)
17
18 diff --git a/app-portage/eix/Manifest b/app-portage/eix/Manifest
19 index 8ad89de180c..e603e9a0377 100644
20 --- a/app-portage/eix/Manifest
21 +++ b/app-portage/eix/Manifest
22 @@ -1,3 +1,4 @@
23 DIST eix-0.32.9.tar.xz 599072 BLAKE2B 40fd86520e5c98e4a7cf6710fcd16ce685cc14fbafa417f6694134702b61b83d8d47cfc908c5621d77ba827f7449c985de7dc16650358a8ccad2ab4b48644e38 SHA512 1a7c3d5f371150f5990fe1f1c4cadb0e3ee0a5810011702904aabd58ca250c10f820d6c64e7182096e0b7e2aa001cf573c5f2e83499ceb350cc59b599ec2ca5b
24 DIST eix-0.33.0.tar.xz 610600 BLAKE2B 484d70c3efcceebf54f2a2e0af69b701716d6c6c45aa867a8cc372b135db29bb1bf23cf0efa6d3d2a19224255113229fa30cdd40ab4d64f226eafa73991daa96 SHA512 6fd4ca253ee908eb192ee35c4228bea0fa8a04030070b35489bddc639053c2e3f6a2faf32f539ffd2c7d9da0c664ff5f29ac0d732d9a47b6c9976a65dd402de2
25 DIST eix-0.33.2.tar.xz 614192 BLAKE2B dcbbdb9b9ccf6f780d89c791c34cc588700720b7f015fb0db7ea86dd78a383892266b0e96c49282fdea58e78293c69e8acc153cea631443c35d3ee29dd4c016f SHA512 28ca4cc57e5c7ef81feb37fa90d598e681e192c442c7446c93a442908d2a9744340f7a93c71135ec3083fb85c48a65638c8929b6e1e632464132f4320225d637
26 +DIST eix-0.33.5.tar.xz 626628 BLAKE2B 2bb102279084f6bb6871bb4bbe55100708866337501c6043508ee13bdb92064c3a4a41d067b9d4c03af1a5ffbece53d9c66cf89639adf0c555a9511cae3d702f SHA512 7a71a411d4428ee491b9aee0f414e038a08f2195db58466db9b96f0d80edca7eaa153e63534c832c71e1b488e21fbd869a96bd10a21e06a93ce7eba1f808b684
27
28 diff --git a/app-portage/eix/eix-0.33.5.ebuild b/app-portage/eix/eix-0.33.5.ebuild
29 new file mode 100644
30 index 00000000000..507d7acf722
31 --- /dev/null
32 +++ b/app-portage/eix/eix-0.33.5.ebuild
33 @@ -0,0 +1,109 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +inherit autotools bash-completion-r1 flag-o-matic tmpfiles
40 +
41 +DESCRIPTION="Search and query ebuilds"
42 +HOMEPAGE="https://github.com/vaeth/eix/"
43 +SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 +IUSE="debug doc nls sqlite"
49 +
50 +BOTHDEPEND="nls? ( virtual/libintl )
51 + sqlite? ( >=dev-db/sqlite-3:= )"
52 +RDEPEND="${BOTHDEPEND}
53 + >=app-shells/push-2.0-r1
54 + >=app-shells/quoter-3.0_p2-r1"
55 +DEPEND="${BOTHDEPEND}
56 + app-arch/xz-utils
57 + nls? ( sys-devel/gettext )"
58 +
59 +pkg_setup() {
60 + # remove stale cache file to prevent collisions
61 + local old_cache=${EROOT%/}/var/cache/${PN}
62 + if [[ -f ${old_cache} ]]; then
63 + rm "${old_cache}" || die
64 + fi
65 +}
66 +
67 +src_prepare() {
68 + default
69 + sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
70 +
71 + sed -e "/eixf_source=/s:push.sh:cat \"${EROOT}usr/share/push/push.sh\":" \
72 + -e "/eixf_source=/s:quoter_pipe.sh:cat \"${EROOT}usr/share/quoter/quoter_pipe.sh\":" \
73 + -i src/eix-functions.sh.in || die
74 + sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EROOT}usr/share/eix/eix-functions\\\\\":" \
75 + -i src/Makefile.am || die
76 + eautoreconf
77 +}
78 +
79 +src_configure() {
80 + local myconf=(
81 + $(use_enable debug paranoic-asserts)
82 + $(use_enable nls)
83 + $(use_with doc extra-doc)
84 + $(use_with sqlite)
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 + # https://github.com/vaeth/eix/issues/35
110 + append-cxxflags -std=c++14
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 + keepdir /var/cache/eix
123 +}
124 +
125 +pkg_postinst() {
126 + if ! use prefix; then
127 + # note: if this is done in src_install(), portage:portage
128 + # ownership may be reset to root
129 + tmpfiles_process eix.conf
130 + fi
131 +
132 + local obs=${EROOT%/}/var/cache/eix.previous
133 + if [[ -f ${obs} ]]; then
134 + ewarn "Found obsolete ${obs}, please remove it"
135 + fi
136 +}
137 +
138 +pkg_postrm() {
139 + if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
140 + rm -rf "${EROOT%/}/var/cache/${PN}" || die
141 + fi
142 +}