source: trunk/dports/java/java_memcached/Portfile @ 40560

Last change on this file since 40560 was 40560, checked in by jmr@…, 11 years ago

java_memcached: remove use of cd

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 40560 2008-10-06 21:15:03Z jmr@macports.org $
2
3PortSystem 1.0
4
5name                    java_memcached
6version                 1.6
7categories              java
8maintainers             nomaintainer
9description             A high performance, distributed object caching system.
10
11long_description        Memcached is a high-performance, distributed \
12                        memory object caching system, generic in nature, \
13                        but intended for use in speeding up dynamic web \
14                        applications by alleviating database load.  This \
15                        Port provides a native Java client.
16
17homepage                http://www.whalin.com/memcached/
18
19depends_lib             bin:java:kaffe \
20                        port:jakarta-log4j
21depends_build           bin:ant:apache-ant
22
23fetch.type              svn
24svn.url                 http://www.whalin.com/memcached/svn/java_memcached/tags/release_${version}/ ${distname}
25svn.tag                 774
26
27use_configure           no
28
29build.cmd               ant
30build.args              -Dver=${version} -Dlog4j=1
31
32build {
33        system "echo Running: ${build.cmd} ${build.args} jar"
34        system "cd ${worksrcpath} && ${build.cmd} ${build.args} jar"
35        file copy ${worksrcpath}/java_memcached-${version}/java_memcached-${version}.jar ${worksrcpath}/${name}.jar
36        system "echo Running: ${build.cmd} ${build.args} javadoc"
37        system "cd ${worksrcpath} && ${build.cmd} ${build.args} javadoc"
38        file rename ${worksrcpath}/java_memcached-${version}/javadocs ${worksrcpath}/javadocs
39}
40
41destroot {
42        set javadir ${destroot}${prefix}/share/java
43        set docdir ${destroot}${prefix}/share/doc/${name}
44
45        xinstall -d -m 755 ${javadir}
46        xinstall -d -m 755 ${docdir}
47
48        file copy ${worksrcpath}/${name}.jar ${javadir}/
49        file copy ${worksrcpath}/javadocs ${docdir}/
50
51        foreach f [glob ${worksrcpath}/doc/*] {
52                file copy ${f} ${docdir}/
53        }
54        file delete -force ${docdir}/CVS
55}
56
57variant built_in_logger {
58        depends_lib-delete      port:jakarta-log4j
59        build.args-delete       -Dlog4j=1
60}
Note: See TracBrowser for help on using the repository browser.