commit:     c14ddf3f13f43e7f892b0f7b6b416d329f283b0a
Author:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
AuthorDate: Sat Jun 21 18:14:18 2025 +0000
Commit:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
CommitDate: Sat Jun 21 19:04:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c14ddf3f

ios-safari-remote-debug: install the injected code with the package

Signed-off-by: Pavel Sobolev <contact <AT> paveloom.dev>

 ...250506-copy-injected-code-from-the-system.patch | 27 ++++++++++++++++++++++
 .../ios-safari-remote-debug-0_pre20250506.ebuild   |  7 ++++++
 2 files changed, 34 insertions(+)

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 <[email protected]>
+Subject: [PATCH] Copy injected code from the system.
+
+Signed-off-by: Pavel Sobolev <[email protected]>
+
+--- 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
 }

Reply via email to