blob: aa72699d6ae54c514ed71fd28d79a5a4940dacda (
plain)
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
|
PORTNAME= liteide
DISTVERSIONPREFIX= x
DISTVERSION= 37.4
PORTREVISION= 1
CATEGORIES= devel editors
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Simple, open source, cross-platform Go IDE
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE.LGPL
USES= dos2unix gl go:modules,no_targets,run qmake qt:5
USE_GITHUB= yes
GH_ACCOUNT= visualfc
GH_TUPLE= visualfc:gocode:cfcb188102ae:visualfc_gocode \
visualfc:gotools:eff8693b15f0:visualfc_gotools \
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:b64e53b001e4:golang_sys/vendor/golang.org/x/sys \
golang:tools:v0.1.0:golang_tools/vendor/golang.org/x/tools \
golang:xerrors:5ec99f83aff1: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.0.1: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
DOS2UNIX_FILES= src/utils/dlvclient/dlvclient.cpp \
src/utils/dlvclient/dlvtypes.h
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>
|