source: trunk/dports/java/java_memcached/Portfile

Last change on this file was 89039, checked in by ryandesign@…, 6 years ago

java_memcached: remove default git.branch value

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