commit:     750d560d0eca8df04773751790971c7b376402f3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 20 05:51:30 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 20 05:51:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=750d560d

sys-apps/plocate: minor style changes

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/plocate/plocate-1.1.5.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/sys-apps/plocate/plocate-1.1.5.ebuild 
b/sys-apps/plocate/plocate-1.1.5.ebuild
index 33f9170db16..4aaa46baf9c 100644
--- a/sys-apps/plocate/plocate-1.1.5.ebuild
+++ b/sys-apps/plocate/plocate-1.1.5.ebuild
@@ -28,16 +28,16 @@ CONFIG_CHECK="~IO_URING"
 ERROR_IO_URING="required for USE=io-uring"
 
 PATCHES=(
-       "${FILESDIR}/${PN}"-1.1.5-no-systemd-check.patch
+       "${FILESDIR}"/${PN}-1.1.5-no-systemd-check.patch
 )
 
 src_prepare() {
-       # pretend liburing dep doesn't exist when USE flag off
+       # Pretend liburing dep doesn't exist when USE flag off
        if ! use io-uring; then
                sed -i "s/dependency('liburing/dependency('/" meson.build || die
        fi
 
-       # we'll install the manpage ourself to locate.1
+       # We'll install the manpage ourself to locate.1
        sed -i "/install_man('plocate.1')/d" meson.build || die
 
        default
@@ -53,7 +53,7 @@ src_configure() {
 src_install() {
        meson_src_install
        dodoc README NEWS
-       newman "${S}/${PN}.1" locate.1
+       newman "${S}"/${PN}.1 locate.1
        dosym plocate /usr/bin/locate
 
        insinto /etc
@@ -65,15 +65,15 @@ src_install() {
        newins "${FILESDIR}"/plocate.cron plocate
        fperms 0755 /etc/cron.daily/plocate
 
-       systemd_dounit "${BUILD_DIR}/${PN}"-updatedb.service 
"${S}/${PN}"-updatedb.timer
+       systemd_dounit "${BUILD_DIR}"/${PN}-updatedb.service 
"${S}"/${PN}-updatedb.timer
 }
 
 pkg_postinst() {
-       if [[ -z ${REPLACING_VERSIONS} ]]; then
+       if [[ -z "${REPLACING_VERSIONS}" ]] ; then
                elog "The database for the locate command is generated daily by 
a cron job,"
                elog "if you install for the first time you can run the 
updatedb command manually now."
                elog
-               elog "Note that the /etc/updatedb.conf file is generic,"
+               elog "Note that the ${EROOT}/etc/updatedb.conf file is generic,"
                elog "please customize it to your system requirements."
        fi
 }

Reply via email to