source: trunk/dports/databases/tokyocabinet-java/Portfile

Last change on this file was 138661, checked in by ryandesign@…, 2 years ago

clojure-contrib, clojure-contrib-devel, clojure-devel, leiningen, maven-ant-tasks, tokyocabinet-clj, tokyocabinet-java: ports abandoned by ieure (#47616)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 138661 2015-07-15 04:23:39Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                tokyocabinet-java
7version             1.18
8categories          databases java
9maintainers         nomaintainer
10description         Java API for Tokyo Cabinet, a modern DBM
11long_description    Clojure is a dynamic programming language for the JVM.
12
13homepage            http://tokyocabinet.sourceforge.net/
14platforms           darwin
15depends_build       port:tokyocabinet
16master_sites        sourceforge:tokyocabinet
17
18checksums           md5 b87d892620df55e1088b6b8e22d87ad5 \
19                    sha1 d7e98944fbdc0753477c0d430a056de2fac07695 \
20                    rmd160 f354be0d0929860062812278f5f178aae64d2a36
21
22set javahome        /System/Library/Frameworks/JavaVM.framework
23
24
25## patch ##
26patch.args          -p1
27patchfiles          patch-Makefile.in.diff
28
29## configure ##
30configure.env       MYJAVAHOME=${javahome} \
31                    CFLAGS="-I${prefix}/include -I${javahome}/Headers" \
32                    LDFLAGS=-L${prefix}/lib INCLUDEDIR=${javahome}/Headers
33
34## build ##
35build.env           CFLAGS="-I${prefix}/include -I${javahome}/Headers" \
36                    LDFLAGS=-L${prefix}/lib
37
38post-destroot {
39    set jarfile tokyocabinet.jar
40    set javadir ${destroot}${prefix}/share/java
41    set dest    ${javadir}/${jarfile}
42
43    xinstall -m 0755 -d ${javadir}
44    file rename ${destroot}${prefix}/lib/${jarfile} ${dest}
45}
Note: See TracBrowser for help on using the repository browser.