diff --git a/dev-util/ios-safari-remote-debug/files/ios-safari-remote-debug-0_pre20250506-copy-injected-code-from-the-system.patch b/dev-util/ios-safari-remote-debug/files/ios-safari-remote-debug-0_pre20250506-copy-injected-code-from-the-system.patch new file mode 100644 index 0000000000..52fc5f4f6f --- /dev/null +++ b/dev-util/ios-safari-remote-debug/files/ios-safari-remote-debug-0_pre20250506-copy-injected-code-from-the-system.patch @@ -0,0 +1,27 @@ +From: Pavel Sobolev +Subject: [PATCH] Copy injected code from the system. + +Signed-off-by: Pavel Sobolev + +--- a/build/build.go ++++ b/build/build.go +@@ -42,8 +42,8 @@ func Build(cloneDir string, outputDir string) error { + } + + additionsDir := fmt.Sprintf("%s/WebKitAdditions/WebInspectorUI", baseDir) +- cp.Copy("injectedCode/WebInspectorUIAdditions.css", fmt.Sprintf("%s/WebInspectorUIAdditions.css", additionsDir)) +- cp.Copy("injectedCode/WebInspectorUIAdditions.js", fmt.Sprintf("%s/WebInspectorUIAdditions.js", additionsDir)) ++ cp.Copy("/usr/share/ios-safari-remote-debug/injectedCode/WebInspectorUIAdditions.css", fmt.Sprintf("%s/WebInspectorUIAdditions.css", additionsDir)) ++ cp.Copy("/usr/share/ios-safari-remote-debug/injectedCode/WebInspectorUIAdditions.js", fmt.Sprintf("%s/WebInspectorUIAdditions.js", additionsDir)) + + log.Debug().TimeDiff("loadFiles", time.Now(), loadFilesTime).Send() + getRelevantFilesTime := time.Now() +@@ -67,7 +67,7 @@ func Build(cloneDir string, outputDir string) error { + log.Debug().TimeDiff("getRelevantFiles", time.Now(), getRelevantFilesTime).Send() + bundleTime := time.Now() + +- cp.Copy("views", outputDir) ++ cp.Copy("/usr/share/ios-safari-remote-debug/views", outputDir) + os.Mkdir(fmt.Sprintf("%s/debug", outputDir), os.ModePerm) + os.Mkdir(fmt.Sprintf("%s/debug/Lib", outputDir), os.ModePerm) + os.Mkdir(fmt.Sprintf("%s/debug/Protocols", outputDir), os.ModePerm) diff --git a/dev-util/ios-safari-remote-debug/ios-safari-remote-debug-0_pre20250506.ebuild b/dev-util/ios-safari-remote-debug/ios-safari-remote-debug-0_pre20250506.ebuild index b89b297cb2..ed894da844 100644 --- a/dev-util/ios-safari-remote-debug/ios-safari-remote-debug-0_pre20250506.ebuild +++ b/dev-util/ios-safari-remote-debug/ios-safari-remote-debug-0_pre20250506.ebuild @@ -20,6 +20,10 @@ LICENSE="AGPL-3+ BSD BSD-2 MIT" SLOT="0" KEYWORDS="~amd64" +PATCHES=( + "${FILESDIR}/${P}-copy-injected-code-from-the-system.patch" +) + src_compile() { ego build } @@ -27,5 +31,8 @@ src_compile() { src_install() { dobin ${PN} + insinto /usr/share/${PN} + doins -r injectedCode views + default }