blob: 77b51ff3002c5eac81d41fced84037681f6c4fa2 (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
# Created by: Cezary Morga <cm@therek.net>
# $FreeBSD$
PORTNAME= Padre
PORTVERSION= 1.00
PORTREVISION= 11
CATEGORIES= editors perl5
MASTER_SITES= CPAN/${PORTNAME}/ CPAN/Wx/:wxsc
PKGNAMEPREFIX= p5-
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${WXSC_DISTFILE}:wxsc
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl Application Development and Refactoring Environment
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
LICENSE_FILE_ART10= ${WRKSRC}/Artistic
LICENSE_FILE_GPLv1+ = ${WRKSRC}/COPYING
BUILD_DEPENDS= ${RUN_DEPENDS} \
p5-Module-Build>=0.36:devel/p5-Module-Build
RUN_DEPENDS= p5-Algorithm-Diff>=1.19:devel/p5-Algorithm-Diff \
p5-App-cpanminus>=0.9923:devel/p5-App-cpanminus \
p5-CGI>=3.47:www/p5-CGI \
p5-Capture-Tiny>0:devel/p5-Capture-Tiny \
p5-Class-Adapter>=1.05:devel/p5-Class-Adapter \
p5-Class-Inspector>=1.22:devel/p5-Class-Inspector \
p5-Class-XSAccessor>=1.13:devel/p5-Class-XSAccessor \
p5-DBD-SQLite>=1.35:databases/p5-DBD-SQLite \
p5-DBI>=1.58:databases/p5-DBI \
p5-Debug-Client>=0.20:devel/p5-Debug-Client \
p5-Devel-Dumpvar>=0.04:devel/p5-Devel-Dumpvar \
p5-Devel-Refactor>=0.05:devel/p5-Devel-Refactor \
p5-File-Copy-Recursive>=0.37:devel/p5-File-Copy-Recursive \
p5-File-Find-Rule>=0.30:devel/p5-File-Find-Rule \
p5-File-HomeDir>=0.84:devel/p5-File-HomeDir \
p5-File-ShareDir>=1.00:devel/p5-File-ShareDir \
p5-HTML-Parser>=3.58:www/p5-HTML-Parser \
p5-IO-stringy>=2.110:devel/p5-IO-stringy \
p5-IPC-Run>=0.83:devel/p5-IPC-Run \
p5-JSON-XS>=2.29:converters/p5-JSON-XS \
p5-List-MoreUtils>=0.22:lang/p5-List-MoreUtils \
p5-Locale-Msgfmt>=0.14:devel/p5-Locale-Msgfmt \
p5-Module-Manifest>=0.07:devel/p5-Module-Manifest \
p5-Module-Starter>=1.60:devel/p5-Module-Starter \
p5-ORLite-Migrate>0:databases/p5-ORLite-Migrate \
p5-POD2-Base>=0.043:textproc/p5-POD2-Base \
p5-PPI>=1.213:textproc/p5-PPI \
p5-PPIx-EditorTools>=0.13:textproc/p5-PPIx-EditorTools \
p5-PPIx-Regexp>=0.011:textproc/p5-PPIx-Regexp \
p5-Parse-ErrorString-Perl>=0.14:devel/p5-Parse-ErrorString-Perl \
p5-Parse-ExuberantCTags>=1.00:devel/p5-Parse-ExuberantCTags \
p5-Pod-Abstract>=0.16:textproc/p5-Pod-Abstract \
p5-Pod-POM>=0.17:textproc/p5-Pod-POM \
p5-Sort-Versions>=1.5:devel/p5-Sort-Versions \
p5-Template-Tiny>=0.11:textproc/p5-Template-Tiny \
p5-Test-Exception>=0.27:devel/p5-Test-Exception \
p5-Test-MockObject>=1.09:devel/p5-Test-MockObject \
p5-Test-NoWarnings>=0.084:devel/p5-Test-NoWarnings \
p5-Test-Script>=1.07:devel/p5-Test-Script \
p5-Text-Diff>=1.41:textproc/p5-Text-Diff \
p5-Text-FindIndent>=0.10:textproc/p5-Text-FindIndent \
p5-Text-Patch>=1.8:textproc/p5-Text-Patch \
p5-URI>0:net/p5-URI \
p5-Wx-Perl-ProcessStream>=0.25:x11-toolkits/p5-Wx-Perl-ProcessStream \
p5-Wx>=0.9700:x11-toolkits/p5-Wx \
p5-YAML-Tiny>=1.32:textproc/p5-YAML-Tiny \
p5-libwww>=5.815:www/p5-libwww
USES= compiler:c++11-lib dos2unix gettext perl5
USE_PERL5= configure
USE_WX= 3.0
WX_COMPS= wx
MAKE_JOBS_UNSAFE= yes
DOS2UNIX_WRKSRC=${WRKDIR}/${WXSC_DISTNAME}
DOS2UNIX_FILES= wx-scintilla/src/scintilla/src/Editor.cxx
DESKTOP_ENTRIES="Padre" \
"The Perl IDE" \
"${PREFIX}/${SITE_PERL_REL}/auto/share/dist/Padre/icons/padre/64x64/logo.png" \
"padre" \
"Development;IDE;" \
""
WXSC_NAME= Wx-Scintilla
WXSC_VERSION= 0.39
WXSC_DISTNAME= ${WXSC_NAME}-${WXSC_VERSION}
WXSC_DISTFILE= ${WXSC_DISTNAME}.tar.gz
.include <bsd.port.pre.mk>
.if exists(${PERL})
PERL_THREADS!= ${PERL} -V::useithreads
.endif
.if exists(${PERL})
.if ${PERL_THREADS} != "'define';"
IGNORE= needs a threaded Perl, build with enabling THREADS option and try again
.endif
.endif
pre-patch:
(cd ${WRKDIR}/${WXSC_DISTNAME} && \
${PATCH} < ${FILESDIR}/extra-patch-editor )
post-patch:
${REINPLACE_CMD} -e \
'/my /s|wx-config|${WX_CONFIG:T}|g' \
-e '/ret/ s|urn .flags;|urn $$flags . " -std=c++11";|' \
${WRKDIR}/${WXSC_DISTNAME}/inc/Module/Build/Scintilla.pm
${REINPLACE_CMD} -e \
's|_scintilla-|_scintilla| ; \
s|$$major.*$$release \.|| ; \
/$$major.*$$release;/s|^|#| ; \
s|-lgtk-x11-2.0.*-lpangoft2-1.0|-lm| ; \
/-lgobject-2.0/d ; \
/-lglib-2.0/d ; \
s|{ccflags}|{ccflags} . " -std=c++11"| ; \
s|\\$$ORIGIN|${SITE_ARCH}/auto/Wx/Scintilla|' \
${WRKDIR}/${WXSC_DISTNAME}/inc/Module/Build/Scintilla/GTK.pm
pre-configure:
(cd ${WRKDIR}/${WXSC_DISTNAME} && ${SETENV} ${CONFIGURE_ENV} \
${PERL} Build.PL ${CONFIGURE_ARGS} --destdir=${STAGEDIR})
pre-build:
(cd ${WRKDIR}/${WXSC_DISTNAME} && ${SETENV} CC="$$(${WHICH} ${CC})" \
${PERL} Build)
pre-install:
(cd ${WRKDIR}/${WXSC_DISTNAME} && ${SETENV} CC="$$(${WHICH} ${CC})" \
${PERL} Build install)
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Wx/Scintilla/libwx_gtk2u_scintilla.so
.include <bsd.port.post.mk>
|