/
Portfile
46 lines (33 loc) · 1.42 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup golang 1.0
go.setup github.com/JanDeDobbeleer/oh-my-posh 19.29.1 v
github.tarball_from archive
revision 0
homepage https://ohmyposh.dev
description A prompt theme engine for any shell.
long_description {*}${description}
categories sysutils shells
installs_libs no
license GPL-3
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
checksums rmd160 b95f949720c4a30b75ed0a9777ef97662542bd5a \
sha256 b4dc939037d5b26a774b5a28e31e7bedb5e48c4418983c9c9de5949dfc83cdfd \
size 6762758
build.dir ${worksrcpath}/src
# Allow Go to fetch dependencies at build time
go.offline_build no
build.pre_args-append \
-ldflags \"-X github.com/jandedobbeleer/oh-my-posh/src/build.Version=${version} \
-X github.com/jandedobbeleer/oh-my-posh/src/build.Date="2024-05-14"\" -o ${name}
set omp_share_path ${prefix}/share/${name}
destroot {
xinstall -m 0755 ${worksrcpath}/src/${name} ${destroot}${prefix}/bin/
xinstall -d ${destroot}${omp_share_path}
file copy ${worksrcpath}/themes ${destroot}${omp_share_path}/
}
notes "
Themes for ${name} can be found in:
${omp_share_path}/themes
"