mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
ios-safari-remote-debug: install the injected code with the package
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From: Pavel Sobolev <contact@paveloom.dev>
|
||||
Subject: [PATCH] Copy injected code from the system.
|
||||
|
||||
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
|
||||
|
||||
--- 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)
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user