summaryrefslogtreecommitdiff
path: root/dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-11-24 09:53:54 +0100
committerMarek Szuba <marecki@gentoo.org>2021-11-24 09:57:44 +0100
commitf8ed0435911386a99176204c60cf36ca94e51ecb (patch)
treea4b479f4b432d5ad5a7c83f2b8da5589c97c613a /dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
parentde0aab88f7582e029293f7d76c04f45ba7b7428e (diff)
downloadgentoo-f8ed0435911386a99176204c60cf36ca94e51ecb.tar.gz
gentoo-f8ed0435911386a99176204c60cf36ca94e51ecb.tar.bz2
gentoo-f8ed0435911386a99176204c60cf36ca94e51ecb.zip
dev-embedded/lpc21isp: use sed to patch the Makefile
DOS line endings, patch files and git do not always mix. Closes: https://bugs.gentoo.org/827018 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-embedded/lpc21isp/lpc21isp-1.97.ebuild')
-rw-r--r--dev-embedded/lpc21isp/lpc21isp-1.97.ebuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/dev-embedded/lpc21isp/lpc21isp-1.97.ebuild b/dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
index 5c201608ac52..081ebfcad4fe 100644
--- a/dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
+++ b/dev-embedded/lpc21isp/lpc21isp-1.97.ebuild
@@ -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
}