/
Portfile
74 lines (60 loc) · 2.4 KB
/
Portfile
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
# $Id$
PortSystem 1.0
name subversion-perlbindings
version 1.4.5
categories devel perl
platforms darwin
maintainers dluke@geeklair.net
description Perl bindings for the subversion version control system.
long_description Subversion is a version control system designed to be \
as similar to cvs(1) as possible, while fixing many \
outstanding problems with cvs(1). The perl bindings \
provide access to subversion API from perl.
homepage http://subversion.tigris.org/
master_sites ${homepage}/downloads/
use_bzip2 yes
checksums md5 4c333a5fe827568c67d195cda7a5e154
distname subversion-${version}
dist_subdir subversion
test.run yes
test.target check-swig-pl
depends_lib port:expat port:neon \
port:apr port:apr-util \
port:db44 port:subversion \
path:${prefix}/bin/perl:perl5.8 \
port:gettext
configure.args --with-berkeley-db=${prefix}/include/db44:${prefix}/lib/db44 \
--with-neon=${prefix} --with-apr=${prefix}/bin/apr-1-config \
--with-apr-util=${prefix}/bin/apu-1-config --without-apxs \
--mandir=\\\${prefix}/share/man \
--disable-neon-version-check \
--with-perl5=${prefix}/bin/perl
build.target swig-pl
destroot.target install-swig-pl-lib DESTDIR=${destroot} && \
cd "${worksrcpath}/subversion/bindings/swig/perl/native" &&\
make pure_install
destroot.args INSTALLDIRS=vendor
pre-configure { reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \
${worksrcpath}/configure
}
post-configure { reinplace "s|need_relink=yes|need_relink=no|g" \
${worksrcpath}/libtool
}
variant no_bdb { depends_lib-delete port:db44 port:py-bsddb
configure.args-delete --with-berkeley-db=${prefix}/include/db44:${prefix}/lib/db44
configure.args-append --without-berkeley-db
}
variant no_neon { depends_lib-delete port:neon
configure.args-append --without-neon
configure.args-delete --with-neon=${prefix}
}
post-destroot {
foreach packlist [exec find ${destroot} -name .packlist] {
ui_info "Fixing packlist ${packlist}"
reinplace "s|${destroot}||" ${packlist}
}
}
# 10.3 says -> CarbonCore/MacTypes.h: No such file or directory
platform darwin 7 { configure.args-append \
--disable-keychain
}