source: trunk/dports/devel/subversion-javahlbindings/Portfile @ 37692

Last change on this file since 37692 was 37692, checked in by dluke@…, 12 years ago

Version bump, subversion and bindings ports to 1.5.0 (also build with serf dav support in addition to neon)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 37692 2008-06-19 16:53:01Z dluke@macports.org $
2
3PortSystem 1.0
4
5name                    subversion-javahlbindings
6version                 1.5.0
7categories              devel java
8platforms               darwin
9maintainers             dluke@geeklair.net
10description             Java (javahl) bindings for the subversion version control system.
11
12long_description        Subversion is a version control system designed to be \
13                        as similar to cvs(1) as possible, while fixing many \
14                        outstanding problems with cvs(1). The java bindings \
15                        provide access to subversion API from java.
16
17homepage                http://subversion.tigris.org/
18master_sites            ${homepage}/downloads/
19use_bzip2               yes
20checksums               md5 004b57643406dd10957ec87955702189 \
21                        sha1 1236a32521b4d8c02261cdc567f6a33d9623f51f \
22                        rmd160 ccbe67ebd473c7fed13253e02f4de88d1b7c89c8
23distname                subversion-${version}
24dist_subdir             subversion
25
26depends_lib             port:expat port:neon \
27                        port:apr port:apr-util \
28                        port:db46 port:subversion \
29                        port:junit \
30                        port:gettext port:libiconv \
31                        port:serf
32
33configure.cxx           g++
34
35configure.args          --with-berkeley-db=${prefix}/include/db46:${prefix}/lib/db46 \
36                        --with-neon=${prefix} --with-apr=${prefix}/bin/apr-1-config \
37                        --with-apr-util=${prefix}/bin/apu-1-config --without-apxs \
38                        --mandir=\\\${prefix}/share/man \
39                        --disable-neon-version-check --with-serf=${prefix} \
40                        --with-javahl --without-jikes \
41                        --with-junit=${prefix}/share/java/junit.jar
42
43build.target            javahl
44destroot.target         install-javahl
45
46test.run                yes
47test.target             check-javahl
48
49destroot.violate_mtree  yes
50
51patchfiles              patch-configure.diff
52
53pre-test {              reinplace "s|-Djava.library.path=:\$(libdir)|-Djava.library.path=:${worksrcpath}/subversion/bindings/javahl/native/.libs|g" \
54                        ${worksrcpath}/Makefile
55
56                        system "ln -sf ${worksrcpath}/subversion/bindings/javahl/native/.libs/libsvnjavahl-1.dylib ${worksrcpath}/subversion/bindings/javahl/native/.libs/libsvnjavahl.jnilib"
57                        }
58
59pre-configure {         reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \
60                                ${worksrcpath}/configure
61                        reinplace "s|\\(LINK_JAVAHL_CXX.*\\)-rpath|\\1-dynamiclib -rpath|g" \
62                                ${worksrcpath}/Makefile.in
63                        }
64
65post-configure {        reinplace "s|need_relink=yes|need_relink=no|g" \
66                                ${worksrcpath}/libtool
67                        }
68
69variant no_bdb description {Build without support for BerkeleyDB repositories} {
70                        depends_lib-delete      port:db46 port:py-bsddb
71                        configure.args-delete   --with-berkeley-db=${prefix}/include/db46:${prefix}/lib/db46
72                        configure.args-append   --without-berkeley-db
73                        }
74
75variant no_neon description {Build without neon (http/https support)} {
76                        depends_lib-delete      port:neon
77                        configure.args-append   --without-neon
78                        configure.args-delete   --with-neon=${prefix}
79                        }
80
81post-destroot {
82                file mkdir ${destroot}/Library/Java/Extensions
83                system "ln -sf ${prefix}/lib/libsvnjavahl-1.dylib ${destroot}/Library/Java/Extensions/libsvnjavahl.jnilib"
84                file mkdir ${destroot}${prefix}/share/java
85                system "ln -sf ${prefix}/lib/svn-javahl/svn-javahl.jar ${destroot}/${prefix}/share/java/svn-javahl.jar"
86                }
87
88# 10.3 says -> CarbonCore/MacTypes.h: No such file or directory
89platform darwin 7 {             configure.args-append \
90                                        --disable-keychain
91                                }
Note: See TracBrowser for help on using the repository browser.