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

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

Change deprecated svn.tag to svn.revision
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

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