Skip to content

Commit

Permalink
app-cdr/isomaster: Respect variable AR
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/740138
Signed-off-by: Sebastian Pipping <[email protected]>
Package-Manager: Portage-3.0.14, Repoman-3.0.2
  • Loading branch information
hartwork committed Feb 6, 2021
1 parent d4aa1e6 commit c9b663c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
25 changes: 25 additions & 0 deletions app-cdr/isomaster/files/isomaster-1.3.15-ar.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 1553ea30148f69bce545b3a79ab3f7847566c50a Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <[email protected]>
Date: Sat, 6 Feb 2021 19:36:33 +0100
Subject: [PATCH] Makefile: Give external AR="$(tc-getAR)" a chance to win

---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index f005099..98808f8 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ OPTFLAGS ?= -Wall

# programs used in the Makefiles:
export CC ?= gcc
-export AR = ar
+export AR ?= ar
export RM = rm -f
export INSTALL = install
export CP = cp
--
2.30.0

5 changes: 3 additions & 2 deletions app-cdr/isomaster/isomaster-1.3.15.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand All @@ -22,6 +22,7 @@ DEPEND="${RDEPEND}

PATCHES=(
"${FILESDIR}"/${PN}-1.3.14-include-path.patch
"${FILESDIR}"/${PN}-1.3.15-ar.patch
)

pkg_setup() {
Expand All @@ -43,7 +44,7 @@ src_prepare() {
}

src_compile() {
tc-export CC
tc-export AR CC
emake "${myisoconf[@]}"
}

Expand Down

0 comments on commit c9b663c

Please sign in to comment.