Skip to content

Commit

Permalink
dev-embedded/lpc21isp: use sed to patch the Makefile
Browse files Browse the repository at this point in the history
DOS line endings, patch files and git do not always mix.

Closes: https://bugs.gentoo.org/827018
Signed-off-by: Marek Szuba <[email protected]>
  • Loading branch information
Marek Szuba committed Nov 24, 2021
1 parent de0aab8 commit f8ed043
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
11 changes: 0 additions & 11 deletions dev-embedded/lpc21isp/files/lpc21isp-1.97-makefile-tc-vars.patch

This file was deleted.

12 changes: 8 additions & 4 deletions dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

PATCHES=(
"${FILESDIR}"/${PN}-1.97-makefile-tc-vars.patch
)

S="${WORKDIR}"/${MY_P}

src_prepare() {
default

# Upstream makefile has got DOS line endings so using patches there is fragile,
# see Bug #827018.
sed -i -e 's#^\(CC \?\)=#\1?=#' Makefile || die
}

src_install() {
dobin lpc21isp
}

0 comments on commit f8ed043

Please sign in to comment.