dev-lang/hare: Fix PREFIX, needed for a sane HAREPATH

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2024-01-19 19:04:18 +01:00
parent 6f06429cb0
commit 0b5554c5bc
2 changed files with 6 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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
}