Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/eix/
Date: Fri, 02 Mar 2018 14:40:51
Message-Id: 1520001625.3919b5b279e58a2667b17aa339cf13e6e759c5a7.mrueg@gentoo
1 commit: 3919b5b279e58a2667b17aa339cf13e6e759c5a7
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 2 14:39:15 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 2 14:40:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3919b5b2
7
8 app-portage/eix: Version bump to 0.33.2
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 app-portage/eix/Manifest | 1 +
13 app-portage/eix/eix-0.33.2.ebuild | 110 ++++++++++++++++++++++++++++++++++++++
14 app-portage/eix/metadata.xml | 1 +
15 3 files changed, 112 insertions(+)
16
17 diff --git a/app-portage/eix/Manifest b/app-portage/eix/Manifest
18 index e9922d972e4..8ad89de180c 100644
19 --- a/app-portage/eix/Manifest
20 +++ b/app-portage/eix/Manifest
21 @@ -1,2 +1,3 @@
22 DIST eix-0.32.9.tar.xz 599072 BLAKE2B 40fd86520e5c98e4a7cf6710fcd16ce685cc14fbafa417f6694134702b61b83d8d47cfc908c5621d77ba827f7449c985de7dc16650358a8ccad2ab4b48644e38 SHA512 1a7c3d5f371150f5990fe1f1c4cadb0e3ee0a5810011702904aabd58ca250c10f820d6c64e7182096e0b7e2aa001cf573c5f2e83499ceb350cc59b599ec2ca5b
23 DIST eix-0.33.0.tar.xz 610600 BLAKE2B 484d70c3efcceebf54f2a2e0af69b701716d6c6c45aa867a8cc372b135db29bb1bf23cf0efa6d3d2a19224255113229fa30cdd40ab4d64f226eafa73991daa96 SHA512 6fd4ca253ee908eb192ee35c4228bea0fa8a04030070b35489bddc639053c2e3f6a2faf32f539ffd2c7d9da0c664ff5f29ac0d732d9a47b6c9976a65dd402de2
24 +DIST eix-0.33.2.tar.xz 614192 BLAKE2B dcbbdb9b9ccf6f780d89c791c34cc588700720b7f015fb0db7ea86dd78a383892266b0e96c49282fdea58e78293c69e8acc153cea631443c35d3ee29dd4c016f SHA512 28ca4cc57e5c7ef81feb37fa90d598e681e192c442c7446c93a442908d2a9744340f7a93c71135ec3083fb85c48a65638c8929b6e1e632464132f4320225d637
25
26 diff --git a/app-portage/eix/eix-0.33.2.ebuild b/app-portage/eix/eix-0.33.2.ebuild
27 new file mode 100644
28 index 00000000000..8e590ea981d
29 --- /dev/null
30 +++ b/app-portage/eix/eix-0.33.2.ebuild
31 @@ -0,0 +1,110 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit autotools bash-completion-r1 flag-o-matic tmpfiles
38 +
39 +DESCRIPTION="Search and query ebuilds"
40 +HOMEPAGE="https://github.com/vaeth/eix/"
41 +SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +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"
46 +IUSE="debug doc +jumbo-build nls sqlite"
47 +
48 +BOTHDEPEND="nls? ( virtual/libintl )
49 + sqlite? ( >=dev-db/sqlite-3:= )"
50 +RDEPEND="${BOTHDEPEND}
51 + >=app-shells/push-2.0-r1
52 + >=app-shells/quoter-3.0_p2-r1"
53 +DEPEND="${BOTHDEPEND}
54 + app-arch/xz-utils
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 \"${EROOT}usr/share/push/push.sh\":" \
70 + -e "/eixf_source=/s:quoter_pipe.sh:cat \"${EROOT}usr/share/quoter/quoter_pipe.sh\":" \
71 + -i src/eix-functions.sh.in || die
72 + sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EROOT}usr/share/eix/eix-functions\\\\\":" \
73 + -i src/Makefile.am || die
74 + eautoreconf
75 +}
76 +
77 +src_configure() {
78 + local myconf=(
79 + $(use_enable debug paranoic-asserts)
80 + $(use_enable nls)
81 + $(use_enable jumbo-build)
82 + $(use_with doc extra-doc)
83 + $(use_with sqlite)
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 + # https://github.com/vaeth/eix/issues/35
109 + append-cxxflags -std=c++11
110 +
111 + econf "${myconf[@]}"
112 +}
113 +
114 +src_install() {
115 + default
116 + dobashcomp bash/eix
117 + dotmpfiles tmpfiles.d/eix.conf
118 +
119 + rm -r "${ED%/}"/usr/bin/eix-functions.sh || die
120 +
121 + keepdir /var/cache/eix
122 +}
123 +
124 +pkg_postinst() {
125 + if ! use prefix; then
126 + # note: if this is done in src_install(), portage:portage
127 + # ownership may be reset to root
128 + tmpfiles_process eix.conf
129 + fi
130 +
131 + local obs=${EROOT%/}/var/cache/eix.previous
132 + if [[ -f ${obs} ]]; then
133 + ewarn "Found obsolete ${obs}, please remove it"
134 + fi
135 +}
136 +
137 +pkg_postrm() {
138 + if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
139 + rm -rf "${EROOT%/}/var/cache/${PN}" || die
140 + fi
141 +}
142
143 diff --git a/app-portage/eix/metadata.xml b/app-portage/eix/metadata.xml
144 index f07795f5198..9a319335995 100644
145 --- a/app-portage/eix/metadata.xml
146 +++ b/app-portage/eix/metadata.xml
147 @@ -14,6 +14,7 @@
148 <use>
149 <flag name="debug">Build with upstream's CXXFLAGS/LDFLAGS for debugging support; not recommended for normal use.</flag>
150 <flag name="doc">Create description of the eix cache file additionally in html format</flag>
151 + <flag name="jumbo-build">Compile faster and produce better binary. Recommended unless compiling on a quite memory-restricted system.</flag>
152 <flag name="sqlite">Compile in support for portage's sqlite backend; to actually use it you need additional configuration of portage and eix</flag>
153 </use>
154 <upstream>