blob: f3431bbf6cbc0f29edb9d5ee352cec96a1bbfe4b (
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
|
PORTNAME= cudatext
PORTVERSION= 1.99.0
PORTREVISION= 2
CATEGORIES= editors
PKGNAMESUFFIX= ${LAZARUS_PKGNAMESUFFIX}
MAINTAINER= acm@FreeBSD.org
COMMENT= Cross-platform text editor, written in Lazarus
LICENSE= MPL20
USES= desktop-file-utils dos2unix fpc gnome lazarus:flavors python xorg
USE_FPC= chm fcl-base fcl-image fcl-json fcl-stl fcl-xml pasjpeg rtl-objpas x11
USE_XORG= x11
USE_GITHUB= yes
GH_ACCOUNT= Alexey-T
GH_PROJECT= CudaText
GH_TUPLE= Alexey-T:Python-for-Lazarus:586eec1:python4lazarus/python4lazarus \
Alexey-T:ATFlatControls:968953e:atflatcontrols/atflatcontrols \
Alexey-T:ATSynEdit:a07cb2e:atsynedit/atsynedit \
Alexey-T:Emmet-Pascal:52d11a7:emmet/emmet \
Alexey-T:EControl:0432319:econtrol/econtrol \
Alexey-T:ATSynEdit_Ex:6cce087:atsyneditex/atsyneditex \
Alexey-T:ATSynEdit_Cmp:bc1077a:atsyneditcmp/atsyneditcmp \
Alexey-T:ATBinHex-Lazarus:cad0408:atbinhex/atbinhex \
Alexey-T:UniqueInstance:753f823:uniqueinstance/uniqueinstance \
Alexey-T:EncConv:3eb181f:encconv/encconv
DOS2UNIX_FILES= app/settings_default/default.json setup/debfiles/cudatext.desktop
LAZARUS_PROJECT_FILES= atflatcontrols/atflatcontrols/atflatcontrols_package.lpk
LAZARUS_PROJECT_FILES+= python4lazarus/python4lazarus/python4lazarus_package.lpk
LAZARUS_PROJECT_FILES+= encconv/encconv/encconv_package.lpk
LAZARUS_PROJECT_FILES+= atsynedit/atsynedit/atsynedit_package.lpk
LAZARUS_PROJECT_FILES+= emmet/emmet/emmet_package.lpk
LAZARUS_PROJECT_FILES+= econtrol/econtrol/econtrol_package.lpk
LAZARUS_PROJECT_FILES+= atsyneditex/atsynedit_ex/atsynedit_ex_package.lpk
LAZARUS_PROJECT_FILES+= atsyneditcmp/atsynedit_cmp/atsynedit_cmp_package.lpk
LAZARUS_PROJECT_FILES+= atbinhex/atbinhex/atbinhex_package.lpk
LAZARUS_PROJECT_FILES+= uniqueinstance/uniqueinstance/uniqueinstance_package.lpk
LAZARUS_PROJECT_FILES+= app/cudatext.lpi
LAZBUILD_ARGS= -d
gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt5
qt5_CONFLICTS_INSTALL= ${PORTNAME}-gtk2
USE_FPC_gtk2= cairo
USE_GNOME_gtk2= cairo
USE_FPC+= ${USE_FPC_${FLAVOR}}
USE_GNOME+= ${USE_GNOME_${FLAVOR}}
post-patch:
${REINPLACE_CMD} 's|-512||g' ${WRKSRC}/setup/debfiles/${PORTNAME}.desktop
${REINPLACE_CMD} 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/app/proc_globdata.pas
${REINPLACE_CMD} 's|TEncoding.UTF8|True|g' ${WRKSRC}/app/formmain_py_pluginwork.inc
${REINPLACE_CMD} '636d' ${WRKSRC}/app/proc_miscutils.pas
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/app/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/setup/debfiles/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/512x512/apps
${INSTALL_DATA} ${WRKSRC}/setup/debfiles/${PORTNAME}-512.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/512x512/apps/${PORTNAME}.png
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC}/app && ${COPYTREE_SHARE} "data py readme settings_default" ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
|