Ticket #19552: Portfile

File Portfile, 1.0 KB (added by ian.eure@…, 16 years ago)

Portfile

Line 
1# $Id$ -*- mode: conf -*-
2
3PortSystem          1.0
4
5name                tokyo-cabinet-clj
6version             20090505
7categories          database java
8maintainers         ime
9description         Java API for Tokyo Cabinet, a modern DBM
10long_description    Clojure is a dynamic programming language for the JVM.
11
12homepage            http://github.com/jmtulloss/tokyo-cabinet-clj/tree/master
13platforms           darwin
14depends_build       port:tokyocabinet port:tokyocabinet-java
15
16fetch.type          git
17git.url             git://github.com/jmtulloss/tokyo-cabinet-clj.git
18git.branch          cfab6104b9f3635f97968fda526218c8a706954d
19
20variant universal   {}
21
22## configure ##
23use_configure       no
24
25## build ##
26build.cmd           ant
27build.target        jar
28
29destroot {
30    set javadir ${destroot}${prefix}/share/java
31    set clojuredir ${javadir}/clojure/lib
32    set jarfile tokyo-cabinet.jar
33    set destfile ${clojuredir}/${jarfile}
34
35    xinstall -m 0755 -d ${javadir}
36    xinstall -m 0755 -d ${clojuredir}
37    xinstall -m 0644 -W ${worksrcpath} ${jarfile} ${destfile}
38}