diff options
author | Matt Smith <matt@offtopica.uk> | 2021-08-21 18:02:57 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-08-25 03:29:50 +0100 |
commit | d863ed8f66a3419d033d6afbaaa471d65c0365c7 (patch) | |
tree | 98d256264b8e53b84692911fe9c931aac78936b1 /app-text/bibutils | |
parent | gui-libs/wlroots: bump to 0.14.1 (diff) | |
download | gentoo-d863ed8f66a3419d033d6afbaaa471d65c0365c7.tar.gz gentoo-d863ed8f66a3419d033d6afbaaa471d65c0365c7.tar.bz2 gentoo-d863ed8f66a3419d033d6afbaaa471d65c0365c7.zip |
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@offtopica.uk>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text/bibutils')
-rw-r--r-- | app-text/bibutils/bibutils-6.10.ebuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/app-text/bibutils/bibutils-6.10.ebuild b/app-text/bibutils/bibutils-6.10.ebuild index fb3e20024c41..9b7f812f98cf 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 +} |