Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/plocate/
Date: Fri, 23 Sep 2022 01:35:48
Message-Id: 1663896923.44d136edfd05b6b7c237f3f9fd40cd7e13502f3f.sam@gentoo
1 commit: 44d136edfd05b6b7c237f3f9fd40cd7e13502f3f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 01:30:57 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 01:35:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d136ed
7
8 sys-apps/plocate: drop 1.1.15
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-apps/plocate/Manifest | 1 -
13 sys-apps/plocate/plocate-1.1.15.ebuild | 86 ----------------------------------
14 2 files changed, 87 deletions(-)
15
16 diff --git a/sys-apps/plocate/Manifest b/sys-apps/plocate/Manifest
17 index 067c35962f41..7f10636208e0 100644
18 --- a/sys-apps/plocate/Manifest
19 +++ b/sys-apps/plocate/Manifest
20 @@ -1,2 +1 @@
21 -DIST plocate-1.1.15.tar.gz 73274 BLAKE2B 72dba287ba3357d2fa541542bf5e9d283eac672b7f3b2eebab687ecec930d6e91400eeb0f24c97d6133d69cae0308bc4473b7c8cbc5e263dd18ae8a7728a42a4 SHA512 772f82af38fd7b61fa51ac31f71d4a855542cfa617867da54b5ad8202f49f9e1861064a01e9b8f0937c3da902d84f19a50c1d0e4f037a491a9a6819b2413cfa1
22 DIST plocate-1.1.16.tar.gz 73397 BLAKE2B b6706145e9cba8b386761229cfbf23f8a9490596210b0a8dc467dfa6a6ed5b349c8f84cfcbe0430e89691afb50e257a3d331b1dcdc638611407587c8b623e72b SHA512 01dfc3ba434e6164f3e582fb102bd7ec0167a8f93e4cf9c3e72af804a8eda9b69b04fec20ee34fc19549d810b97076342f3a83b46705d0311ada6004d05da26c
23
24 diff --git a/sys-apps/plocate/plocate-1.1.15.ebuild b/sys-apps/plocate/plocate-1.1.15.ebuild
25 deleted file mode 100644
26 index 5df0276d30a1..000000000000
27 --- a/sys-apps/plocate/plocate-1.1.15.ebuild
28 +++ /dev/null
29 @@ -1,86 +0,0 @@
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 linux-info meson systemd
36 -
37 -DESCRIPTION="Posting locate is a much faster locate"
38 -HOMEPAGE="https://plocate.sesse.net/"
39 -SRC_URI="https://plocate.sesse.net/download/${P}.tar.gz"
40 -
41 -# GPL-2 for updatedb
42 -# GPL-2+ for plocate itself
43 -LICENSE="GPL-2 GPL-2+"
44 -SLOT="0"
45 -KEYWORDS="amd64 ~arm ~arm64 ~x86"
46 -IUSE="+io-uring"
47 -
48 -RDEPEND="
49 - acct-group/locate
50 - app-arch/zstd:=
51 - io-uring? ( sys-libs/liburing:= )
52 - !sys-apps/mlocate
53 -"
54 -DEPEND="${RDEPEND}"
55 -
56 -PATCHES=(
57 - "${FILESDIR}"/${PN}-1.1.15-meson-use-feature-option-for-libiouring.patch
58 -)
59 -
60 -pkg_setup() {
61 - if use io-uring && linux_config_exists; then
62 - if ! linux_chkconfig_present IO_URING; then
63 - ewarn "CONFIG_IO_URING must be enabled for USE=io-uring"
64 - fi
65 - fi
66 -}
67 -
68 -src_prepare() {
69 - # We'll install the manpage ourself to locate.1
70 - sed -i "/install_man('plocate.1')/d" meson.build || die
71 -
72 - default
73 -}
74 -
75 -src_configure() {
76 - local emesonargs=(
77 - -Dlocategroup=locate
78 - -Dinstall_systemd=true
79 - -Dinstall_cron=false
80 - -Dsystemunitdir="$(systemd_get_systemunitdir)"
81 - "$(meson_feature io-uring use_libiouring)"
82 - )
83 - meson_src_configure
84 -}
85 -
86 -src_install() {
87 - meson_src_install
88 - dodoc README NEWS
89 - newman "${S}"/${PN}.1 locate.1
90 - dosym plocate /usr/bin/locate
91 -
92 - insinto /etc
93 - doins "${FILESDIR}"/updatedb.conf
94 - doins "${FILESDIR}"/plocate-cron.conf
95 - fperms 0644 /etc/{updatedb,plocate-cron}.conf
96 -
97 - insinto /etc/cron.daily
98 - # Ensure that the cron file has the same name as the
99 - # systemd-timer, to avoid plocate being run twice daily on systems
100 - # with a systemd compatiblity layer. See also bug #780351.
101 - newins "${FILESDIR}"/plocate.cron plocate-updatedb
102 - fperms 0755 /etc/cron.daily/plocate-updatedb
103 -
104 - systemd_dounit "${BUILD_DIR}"/${PN}-updatedb.service "${S}"/${PN}-updatedb.timer
105 -}
106 -
107 -pkg_postinst() {
108 - if [[ -z "${REPLACING_VERSIONS}" ]] ; then
109 - elog "The database for the locate command is generated daily by a cron job,"
110 - elog "if you install for the first time you can run the updatedb command manually now."
111 - elog
112 - elog "Note that the ${EROOT}/etc/updatedb.conf file is generic,"
113 - elog "please customize it to your system requirements."
114 - fi
115 -}