blob: 74d49d66df4896371901e572cdf9f5493e14ec70 (
plain) (
blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
PORTNAME= dissent
DISTVERSIONPREFIX= v
DISTVERSION= 0.0.20
PORTREVISION= 1
CATEGORIES= net-im
MAINTAINER= jbeich@FreeBSD.org
COMMENT= GTK4 Discord client in Go, attempt \#4
WWW= https://github.com/diamondburned/dissent
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.md
LIB_DEPENDS= libgraphene-1.0.so:graphics/graphene
USES= gnome go:1.21,modules pkgconfig
USE_GITHUB= yes
USE_GNOME= cairo gdkpixbuf2 gtk40 libadwaita
GH_ACCOUNT= diamondburned
GH_TUPLE= KarpelesLab:weak:v0.1.1:karpeleslab_weak/vendor/github.com/KarpelesLab/weak \
alecthomas:chroma:v0.10.0:alecthomas_chroma/vendor/github.com/alecthomas/chroma \
alessio:shellescape:v1.4.1:alessio_shellescape/vendor/github.com/alessio/shellescape \
danieljoos:wincred:v1.1.0:danieljoos_wincred/vendor/github.com/danieljoos/wincred \
diamondburned:adaptive:fa139be203a8:diamondburned_adaptive/vendor/github.com/diamondburned/adaptive \
diamondburned:arikawa:v3.3.5:diamondburned_arikawa_v3/vendor/github.com/diamondburned/arikawa/v3 \
diamondburned:chatkit:4b8acdf0f84b:diamondburned_chatkit/vendor/github.com/diamondburned/chatkit \
diamondburned:ctxt:07a499f07b78:diamondburned_ctxt/vendor/libdb.so/ctxt \
diamondburned:gotk4-adwaita:5f283b5d35bc:diamondburned_gotk4_adwaita_pkg/vendor/github.com/diamondburned/gotk4-adwaita \
diamondburned:gotk4:v0.2.2:diamondburned_gotk4_pkg/vendor/github.com/diamondburned/gotk4 \
diamondburned:gotkit:34324269516c:diamondburned_gotkit/vendor/github.com/diamondburned/gotkit \
diamondburned:ningen:0d35ff052647:diamondburned_ningen_v3/vendor/github.com/diamondburned/ningen/v3 \
dlclark:regexp2:v1.4.0:dlclark_regexp2/vendor/github.com/dlclark/regexp2 \
dustin:go-humanize:v1.0.0:dustin_go_humanize/vendor/github.com/dustin/go-humanize \
enescakir:emoji:v1.0.0:enescakir_emoji/vendor/github.com/enescakir/emoji \
go4org:go4:f5505b9728dd:go4org_go4/vendor/go4.org \
go4org:unsafe-assume-no-moving-gc:b99613f794b6:go4org_unsafe_assume_no_moving_gc/vendor/go4.org/unsafe/assume-no-moving-gc \
godbus:dbus:v5.0.6:godbus_dbus_v5/vendor/github.com/godbus/dbus/v5 \
golang:crypto:v0.17.0:golang_crypto/vendor/golang.org/x/crypto \
golang:image:e7cb96979f69:golang_image/vendor/golang.org/x/image \
golang:sync:v0.1.0:golang_sync/vendor/golang.org/x/sync \
golang:sys:v0.15.0:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.14.0:golang_text/vendor/golang.org/x/text \
golang:time:1f47c861a9ac:golang_time/vendor/golang.org/x/time \
gorilla:schema:v1.2.0:gorilla_schema/vendor/github.com/gorilla/schema \
gorilla:websocket:v1.4.2:gorilla_websocket/vendor/github.com/gorilla/websocket \
ianlancetaylor:cgosymbolizer:a1ae3e4bba26:ianlancetaylor_cgosymbolizer/vendor/github.com/ianlancetaylor/cgosymbolizer \
leonelquinteros:gotext:37f474cfb069:leonelquinteros_gotext/vendor/github.com/leonelquinteros/gotext \
lmittmann:tint:v1.0.4:lmittmann_tint/vendor/github.com/lmittmann/tint \
mattn:go-isatty:v0.0.20:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
sahilm:fuzzy:v0.1.0:sahilm_fuzzy/vendor/github.com/sahilm/fuzzy \
twmb:murmur3:v1.1.3:twmb_murmur3/vendor/github.com/twmb/murmur3 \
yalue:merged_fs:v1.2.3:yalue_merged_fs/vendor/github.com/yalue/merged_fs \
yuin:goldmark:v1.5.6:yuin_goldmark/vendor/github.com/yuin/goldmark \
zalando:go-keyring:v0.2.1:zalando_go_keyring/vendor/github.com/zalando/go-keyring
CGO_LDFLAGS+= -Wl,--as-needed # gtk4 deps
PLIST_FILES= bin/${PORTNAME} \
share/applications/so.libdb.dissent.desktop \
share/dbus-1/services/so.libdb.dissent.service \
share/icons/hicolor/scalable/apps/${PORTNAME}.svg \
share/metainfo/so.libdb.dissent.metainfo.xml
post-extract:
# Prune after https://github.com/diamondburned/dissent/commit/86b3ea579df1
${RM} ${WRKSRC}/nix/xyz.diamondb.dissent.desktop
post-patch:
@${REINPLACE_CMD} 's,/usr/bin,${PREFIX}/bin,' ${WRKSRC}/nix/*.service
post-install:
# Install extras similar to Nix flake
.for f in nix/*.desktop nix/*.service *.metainfo.xml \
internal/icons/hicolor/scalable/apps/so.libdb.Dissent.svg
${MKDIR} ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.${f:E}:H}
${INSTALL_DATA} ${WRKSRC}/${f} \
${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.${f:E}}
.endfor
.include <bsd.port.mk>
|