Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spack_tuda
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Inghirami, Gabriele
spack_tuda
Commits
86397790
Unverified
Commit
86397790
authored
4 months ago
by
Alec Scott
Committed by
GitHub
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
pass: add master, improve styling (#49081)
parent
a0e09139
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/pass/package.py
+21
-7
21 additions, 7 deletions
var/spack/repos/builtin/packages/pass/package.py
with
21 additions
and
7 deletions
var/spack/repos/builtin/packages/pass/package.py
+
21
−
7
View file @
86397790
...
@@ -6,7 +6,11 @@
...
@@ -6,7 +6,11 @@
class
Pass
(
MakefilePackage
):
class
Pass
(
MakefilePackage
):
"""
A minimal password manager following the UNIX philosphy.
"""
"""
Pass is a simple password manager that follows the Unix philosophy.
It stores passwords in gpg encrypted files organized in a directory hierarchy,
provides commands for adding, editing, generating, and retrieving passwords,
and features integration with git for versioning and synchronization.
"""
homepage
=
"
https://www.passwordstore.org/
"
homepage
=
"
https://www.passwordstore.org/
"
git
=
"
https://git.zx2c4.com/password-store.git
"
git
=
"
https://git.zx2c4.com/password-store.git
"
...
@@ -15,26 +19,37 @@ class Pass(MakefilePackage):
...
@@ -15,26 +19,37 @@ class Pass(MakefilePackage):
license
(
"
GPL-2.0
"
,
checked_by
=
"
taliaferro
"
)
license
(
"
GPL-2.0
"
,
checked_by
=
"
taliaferro
"
)
# Sanity checks
sanity_check_is_file
=
[
"
bin/pass
"
]
sanity_check_is_dir
=
[
"
share/bash-completion/completions
"
]
# Versions - newest to oldest
version
(
"
master
"
,
branch
=
"
master
"
)
version
(
"
1.7.4
"
,
tag
=
"
1.7.4
"
,
commit
=
"
1078f2514d579178d5df7042c6a790e9c9b731ad
"
)
version
(
"
1.7.4
"
,
tag
=
"
1.7.4
"
,
commit
=
"
1078f2514d579178d5df7042c6a790e9c9b731ad
"
)
# Variants
variant
(
"
xclip
"
,
default
=
False
,
description
=
"
install the X11 clipboard provider
"
)
variant
(
"
xclip
"
,
default
=
False
,
description
=
"
install the X11 clipboard provider
"
)
# Required dependencies
depends_on
(
"
bash
"
)
depends_on
(
"
bash
"
)
depends_on
(
"
gnupg
"
)
depends_on
(
"
git
"
)
depends_on
(
"
git
"
)
depends_on
(
"
tree
"
)
depends_on
(
"
gnupg
"
)
depends_on
(
"
util-linux
"
)
# for GNU getopt
depends_on
(
"
libqrencode
"
)
depends_on
(
"
libqrencode
"
)
depends_on
(
"
openssl
"
)
# used for base64 only
depends_on
(
"
openssl
"
)
# used for base64 only
depends_on
(
"
tree
"
)
depends_on
(
"
util-linux
"
)
# for GNU getopt
# Optional dependencies
depends_on
(
"
xclip
"
,
when
=
"
+xclip
"
)
depends_on
(
"
xclip
"
,
when
=
"
+xclip
"
)
def
setup_build_environment
(
self
,
env
):
def
setup_build_environment
(
self
,
env
):
env
.
set
(
"
PREFIX
"
,
prefix
)
"""
Set required environment variables for build.
"""
env
.
set
(
"
PREFIX
"
,
self
.
prefix
)
env
.
set
(
"
WITH_ALLCOMP
"
,
"
yes
"
)
env
.
set
(
"
WITH_ALLCOMP
"
,
"
yes
"
)
def
edit
(
self
,
spec
,
prefix
):
def
edit
(
self
,
spec
,
prefix
):
"""
"""
Patch platform-specific dependency paths in script files.
Pass
'
s install process involves slotting in a small script snippet at
Pass
'
s install process involves slotting in a small script snippet at
the start of the file, defining certain platform-specific behaviors
the start of the file, defining certain platform-specific behaviors
including the paths where some of its key dependencies are likely to
including the paths where some of its key dependencies are likely to
...
@@ -42,7 +57,6 @@ def edit(self, spec, prefix):
...
@@ -42,7 +57,6 @@ def edit(self, spec, prefix):
but the paths to the dependencies are wrong (for example, on MacOS
but the paths to the dependencies are wrong (for example, on MacOS
it looks for getopt in /opt/homebrew.) We can hardcode those paths here.
it looks for getopt in /opt/homebrew.) We can hardcode those paths here.
"""
"""
bash_exec
=
self
.
spec
[
"
bash
"
].
command
bash_exec
=
self
.
spec
[
"
bash
"
].
command
gpg_exec
=
self
.
spec
[
"
gnupg
"
].
prefix
.
bin
.
gpg
gpg_exec
=
self
.
spec
[
"
gnupg
"
].
prefix
.
bin
.
gpg
getopt_exec
=
self
.
spec
[
"
util-linux
"
].
prefix
.
bin
.
getopt
getopt_exec
=
self
.
spec
[
"
util-linux
"
].
prefix
.
bin
.
getopt
...
...
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