diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2024-01-19 19:04:18 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2024-01-19 19:04:18 +0100 |
commit | 0b5554c5bc2a2659d82f4d6dc60e52e56f5188ba (patch) | |
tree | ea07df0b9fa4261b9e86808dc9b0b33f358df073 /dev-lang | |
parent | dev-lang/hare: drop 0_pre20230615 (diff) | |
download | guru-0b5554c5bc2a2659d82f4d6dc60e52e56f5188ba.tar.gz guru-0b5554c5bc2a2659d82f4d6dc60e52e56f5188ba.tar.bz2 guru-0b5554c5bc2a2659d82f4d6dc60e52e56f5188ba.zip |
dev-lang/hare: Fix PREFIX, needed for a sane HAREPATH
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
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 } |