diff options
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/hare/hare-0_pre20231127-r1.ebuild (renamed from dev-lang/hare/hare-0_pre20231127.ebuild) | 4 | ||||
-rw-r--r-- | dev-lang/hare/hare-9999.ebuild | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/dev-lang/hare/hare-0_pre20231127.ebuild b/dev-lang/hare/hare-0_pre20231127-r1.ebuild index c5283c60d..6d644cfdf 100644 --- a/dev-lang/hare/hare-0_pre20231127.ebuild +++ b/dev-lang/hare/hare-0_pre20231127-r1.ebuild @@ -39,11 +39,13 @@ src_configure() { * ) die "unsupported architecture: ${ARCH}" ;; esac + # Note: PREFIX needs to be set early as it is used for HAREPATH cp config.example.mk config.mk || die sed -i \ -e 's;=aarch64-;=;' \ -e 's;=riscv64-;=;' \ -e "s;^ARCH =.*;ARCH = ${target_arch};" \ + -e "s;^PREFIX =.*;PREFIX = ${EPREFIX}/usr;" \ -e 's;^AS =;AS ?=;' \ -e 's;^LD =;LD ?=;' \ -e 's;^AR =;AR ?=;' \ @@ -51,5 +53,5 @@ src_configure() { } src_install() { - emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + emake DESTDIR="${D}" install } diff --git a/dev-lang/hare/hare-9999.ebuild b/dev-lang/hare/hare-9999.ebuild index 208f3b7ac..0812095c1 100644 --- a/dev-lang/hare/hare-9999.ebuild +++ b/dev-lang/hare/hare-9999.ebuild @@ -39,14 +39,16 @@ src_configure() { * ) die "unsupported architecture: ${ARCH}" ;; esac + # Note: PREFIX needs to be set early as it is used for HAREPATH cp configs/linux.mk config.mk || die sed -i \ -e "s;^ARCH =.*;ARCH = ${target_arch};" \ + -e "s;^PREFIX =.*;PREFIX = ${EPREFIX}/usr;" \ -e 's;^AS =;AS ?=;' \ -e 's;^LD =;LD ?=;' \ config.mk || die } src_install() { - emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + emake DESTDIR="${D}" install } |