commit:     d863ed8f66a3419d033d6afbaaa471d65c0365c7
Author:     Matt Smith <matt <AT> offtopica <DOT> uk>
AuthorDate: Sat Aug 21 17:02:57 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 25 02:29:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d863ed8f

app-text/bibutils: Don't use $ED in src_configure

Quickly patch build system so that destdir can be set at install time.

Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Matt Smith <matt <AT> offtopica.uk>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/bibutils/bibutils-6.10.ebuild | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/app-text/bibutils/bibutils-6.10.ebuild 
b/app-text/bibutils/bibutils-6.10.ebuild
index fb3e20024c4..9b7f812f98c 100644
--- a/app-text/bibutils/bibutils-6.10.ebuild
+++ b/app-text/bibutils/bibutils-6.10.ebuild
@@ -16,11 +16,17 @@ KEYWORDS="amd64 ~ppc ~x86"
 
 S="${WORKDIR}/${MY_P}"
 
+src_prepare() {
+       default
+       sed -ie 's/REPLACE_INSTALLDIR/${DESTDIR}&/' Makefile_start || die
+       sed -ie 's/REPLACE_LIBINSTALLDIR/${DESTDIR}&/' Makefile_start || die
+}
+
 src_configure() {
        ./configure \
-               --dynamic \
-               --install-dir "${ED}/usr/bin" \
-               --install-lib "${ED}/usr/$(get_libdir)" || die
+               --install-dir /usr/bin \
+               --install-lib /usr/$(get_libdir) \
+               --dynamic || die
 }
 
 src_compile() {
@@ -36,3 +42,7 @@ src_test() {
                DISTRO_CFLAGS="${CFLAGS}" \
                LDFLAGSIN="${LDFLAGS}" test
 }
+
+src_install() {
+       emake DESTDIR="${ED}" install
+}

Reply via email to