1 | # $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name javasqlite |
---|
6 | version 20090430 |
---|
7 | categories java databases |
---|
8 | platforms darwin |
---|
9 | |
---|
10 | maintainers kallisys.net:pguyot |
---|
11 | description Java wrapper for sqlite |
---|
12 | long_description Java wrapper including a basic JDBC driver for the SQLite \ |
---|
13 | 2/3 database engine. It is designed using JNI to \ |
---|
14 | interface to the SQLite API. |
---|
15 | homepage http://www.ch-werner.de/javasqlite/ |
---|
16 | master_sites ${homepage} |
---|
17 | checksums md5 fe17f7a5154cef4dbc5e5829b5c9682a \ |
---|
18 | sha1 8ee3555f24ca592e0b56c2dc30b0d97fea03244f \ |
---|
19 | rmd160 b37fa7e2e9917add59fde705ef3cb62b42f53111 |
---|
20 | patchfiles patch-configure |
---|
21 | |
---|
22 | depends_lib port:sqlite2 \ |
---|
23 | port:sqlite3 |
---|
24 | |
---|
25 | configure.args-append --with-jardir=${prefix}/share/java/ \ |
---|
26 | --with-sqlite=${prefix} \ |
---|
27 | --with-sqlite3=${prefix} |
---|
28 | |
---|
29 | test.run yes |
---|
30 | post-test { |
---|
31 | # This test function could be improved. We probably want a diff method |
---|
32 | # in base/ |
---|
33 | system "cd ${worksrcpath} && java test > ${worksrcpath}/test.output 2>&1" |
---|
34 | system "exit `diff ${filespath}/test.output ${worksrcpath}/test.output | wc -l`" |
---|
35 | } |
---|
36 | |
---|
37 | platform darwin { |
---|
38 | patchfiles-append patch-Makefile.in-jnilib |
---|
39 | } |
---|
40 | |
---|
41 | livecheck.url http://www.ch-werner.de/javasqlite/overview-summary.html |
---|
42 | livecheck.type regexm |
---|
43 | livecheck.regex {<H1>\s+SQLite Java Wrapper/JDBC Driver\s+<br><small>\s+(.*)\s+</small>\s+</H1>} |
---|
44 | livecheck.version 2009-04-30 |
---|