blob: cd9c6f5e57342f000ad1090fc8df27853856e4c6 (
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
80
81
82
83
84
85
|
PORTNAME= liteide
DISTVERSIONPREFIX= x
DISTVERSION= 38.0
PORTREVISION= 4
CATEGORIES= devel editors
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Simple, open source, cross-platform Go IDE
WWW= https://github.com/visualfc/liteide
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE.LGPL
USES= dos2unix gl go:modules,no_targets,run qmake qt:5
DOS2UNIX_FILES= src/utils/dlvclient/dlvclient.cpp \
src/utils/dlvclient/dlvtypes.h
USE_GITHUB= yes
GH_ACCOUNT= visualfc
GH_TUPLE= visualfc:gocode:901895f2a886:visualfc_gocode \
visualfc:gotools:v1.3.7:visualfc_gotools \
visualfc:gomod:v0.0.2:visualfc_gomod/vendor/github.com/visualfc/gomod \
creack:pty:v1.1.9:creack_pty/vendor/github.com/creack/pty \
golang:mod:v0.4.1:golang_mod/vendor/golang.org/x/mod \
golang:sys:988cb79eb6c6:golang_sys/vendor/golang.org/x/sys \
golang:tools:v0.1.10:golang_tools/vendor/golang.org/x/tools \
golang:xerrors:2f41105eb62f:golang_xerrors/vendor/golang.org/x/xerrors \
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
visualfc:fastmod:v1.3.7:visualfc_fastmod/vendor/github.com/visualfc/fastmod \
visualfc:goversion:v1.1.0:visualfc_goversion/vendor/github.com/visualfc/goversion \
yuin:goldmark:v1.2.1:yuin_goldmark/vendor/github.com/yuin/goldmark
USE_GL= gl
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
USE_QT= buildtools:build core gui network printsupport widgets xml
SUB_FILES= liteide
WRKSRC_SUBDIR= liteidex
PORTDOCS= README.md
OPTIONS_DEFINE= DEBUG DOCS
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ENABLE= debug
ICON_SIZES= 16 24 32 48 64 128
post-extract:
# Bundled, horribly outdated copy of QJsonDocument
rm -r ${WRKSRC}/src/3rdparty/qjsonrpc/src/json/
post-build:
${RLN} ${WRKSRC}/vendor ${WRKSRC_visualfc_gotools}
cd ${WRKSRC_visualfc_gotools} && \
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS}
${RLN} ${WRKSRC}/vendor ${WRKSRC_visualfc_gocode}
${RLN} ${WRKSRC_visualfc_gotools} ${WRKSRC_visualfc_gocode}/vendor/github.com/visualfc/gotools
cd ${WRKSRC_visualfc_gocode} && \
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS}
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/liteide
${MV} ${STAGEDIR}${PREFIX}/bin/liteide ${STAGEDIR}${PREFIX}/libexec/liteide
${INSTALL_SCRIPT} ${WRKDIR}/liteide ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/gocode ${STAGEDIR}${PREFIX}/libexec/liteide
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/gotools ${STAGEDIR}${PREFIX}/libexec/liteide
@${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/liteide.desktop ${STAGEDIR}${PREFIX}/share/applications
(cd ${WRKSRC}/deploy && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
(cd ${WRKSRC}/os_deploy/freebsd && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
${RM} ${STAGEDIR}${PREFIX}/lib/liteide/*.a
.for sz in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${sz}x${sz}/apps
${INSTALL_DATA} ${WRKSRC}/src/liteapp/images/liteide${sz}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${sz}x${sz}/apps/liteide.png
.endfor
post-install-DOCS-on:
cd ${WRKSRC:H} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|