net-misc/ntpsec: fix minor error when USE=-doc
authorAnthony G. Basile <blueness@gentoo.org>
Thu, 23 May 2019 20:29:54 +0000 (16:29 -0400)
committerAnthony G. Basile <blueness@gentoo.org>
Thu, 23 May 2019 20:30:07 +0000 (16:30 -0400)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

net-misc/ntpsec/ntpsec-1.1.3.ebuild
net-misc/ntpsec/ntpsec-9999.ebuild

index 9a7db4869a3a01ee99c71b117eb2a231431a1d5f..b227382f452eb18afee6c6d6aa6c38b631bbee49 100644 (file)
@@ -145,7 +145,7 @@ src_install() {
        cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
 
        # move doc files to /usr/share/doc/"${P}"
-       mv "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
+       use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
 }
 
 pkg_postinst() {
index 4467535535643e67d8607ead86a3eec85dfdba09..b227382f452eb18afee6c6d6aa6c38b631bbee49 100644 (file)
@@ -143,6 +143,9 @@ src_install() {
        # Install the configuration file and sample configuration
        cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
        cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
+
+       # move doc files to /usr/share/doc/"${P}"
+       use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
 }
 
 pkg_postinst() {