Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
containers
eic_container
Commits
d43e6d34
Commit
d43e6d34
authored
Apr 25, 2022
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
dawn and dawncut to use geant4.kek.jp url (dawncut rewrite)
parent
6e1b59bd
No related branches found
No related tags found
1 merge request
!290
Resolve "Use new eic-n0 docker runner"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
spack/packages/dawn/package.py
+1
-2
1 addition, 2 deletions
spack/packages/dawn/package.py
spack/packages/dawncut/package.py
+25
-6
25 additions, 6 deletions
spack/packages/dawncut/package.py
with
26 additions
and
8 deletions
spack/packages/dawn/package.py
+
1
−
2
View file @
d43e6d34
...
...
@@ -32,8 +32,7 @@ class Dawn(MakefilePackage):
# Note: Dawn homepage not available anymore...
homepage
=
"
https://geant4.kek.jp/~tanaka
"
#url = "http://geant4.kek.jp/~tanaka/src/dawn_3_91a.tgz"
url
=
"
http://10.10.241.24/software/dawn_3_91a.tgz
"
url
=
"
http://geant4.kek.jp/~tanaka/src/dawn_3_91a.tgz
"
maintainers
=
[
'
sly2j
'
]
...
...
This diff is collapsed.
Click to expand it.
spack/packages/dawncut/package.py
+
25
−
6
View file @
d43e6d34
...
...
@@ -15,17 +15,36 @@ class Dawncut(MakefilePackage):
# dawn webpage not available anymore
homepage
=
"
https://geant4.kek.jp/~tanaka
"
url
=
"
http://
10.10.241.24/software
/dawncut_1_54a.ta
r.g
z
"
url
=
"
http://
geant4.kek.jp/~tanaka/src
/dawncut_1_54a.taz
"
maintainers
=
[
'
sly2j
'
]
version
(
'
1_54a
'
,
sha256
=
'
17d7ccd2ff863e2f3700cc3e751cfca37a1425abfa0edc3b8f6497d8746ddcf4
'
)
url
=
'
http://geant4.kek.jp/~tanaka/src/dawncut_1_54a.taz
'
,
sha256
=
'
531e1f0e2ed35de3e2b1803108c0efb732d83a0c676f14083bd41a71346b4fa9
'
,
expand
=
False
)
# FIXME: Add dependencies if required.
# depends_on('foo')
phases
=
[
'
unpack
'
,
'
repatch
'
,
'
edit
'
,
'
build
'
,
'
install
'
]
## Patch to add install directive to Makefile
patch
(
'
install.patch
'
)
def
unpack
(
self
,
spec
,
prefix
):
# Untar inner tar files
def
members
(
tf
,
tld
):
l
=
len
(
tld
)
for
member
in
tf
.
getmembers
():
if
member
.
path
.
startswith
(
tld
):
member
.
path
=
member
.
path
[
l
:]
yield
member
with
working_dir
(
self
.
stage
.
source_path
):
import
tarfile
install_tar
=
tarfile
.
open
(
'
dawncut_1_54a.taz
'
)
install_tar
.
extractall
(
members
=
members
(
install_tar
,
'
dawncut_1_54a/
'
))
def
repatch
(
self
,
spec
,
prefix
):
# Patch to add install directive to Makefile
src
=
self
.
stage
.
source_path
patches
=
self
.
package_dir
which
(
'
patch
'
)(
'
-N
'
,
'
-l
'
,
'
-p1
'
,
'
-i
'
,
join_path
(
patches
,
'
install.patch
'
))
def
edit
(
self
,
spec
,
prefix
):
makefile
=
FileFilter
(
"
Makefile
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment