app-text/docbook-xsl-stylesheets: really fix prefix support
authorMichael Haubenwallner <haubi@gentoo.org>
Fri, 1 Mar 2019 10:18:53 +0000 (11:18 +0100)
committerMichael Haubenwallner <haubi@gentoo.org>
Fri, 1 Mar 2019 11:21:26 +0000 (12:21 +0100)
Closes: https://bugs.gentoo.org/676646
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild

index fcf22a7675213cdf9c78059fef0ecf1c2b86685d..b27d94203d37114d1e4e16b18fec0d698d2e2a5d 100644 (file)
@@ -6,7 +6,7 @@ USE_RUBY="ruby22 ruby23 ruby24 ruby25"
 
 inherit ruby-single
 
-DOCBOOKDIR="${EPREFIX}/usr/share/sgml/${PN/-//}"
+DOCBOOKDIR="/usr/share/sgml/${PN/-//}"
 MY_PN="${PN%-stylesheets}"
 MY_P="${MY_PN}-${PV}"
 
@@ -84,12 +84,12 @@ src_install() {
                # we can't use a symlink or it'll look for the library in the
                # wrong path.
                dodir /usr/bin
-               cat - > "${D}"${EPREFIX}/usr/bin/${cmd} <<EOF
+               cat - > "${ED%/}"/usr/bin/${cmd} <<EOF
 #!/usr/bin/env ruby
 
-load "${DOCBOOKDIR}/epub/bin/dbtoepub"
+load "${EPREFIX}${DOCBOOKDIR}/epub/bin/dbtoepub"
 EOF
-               fperms 0755 ${EPREFIX}/usr/bin/${cmd}
+               fperms 0755 /usr/bin/${cmd}
        fi
 }