source: trunk/dports/java/javasqlite/Portfile @ 66261

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

javasqlite: fix livecheck so it doesn't need to be updated everytime the port is updated to a new version

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 66261 2010-04-08 04:19:32Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                            javasqlite
6version                         20060714
7categories                      java databases
8platforms                       darwin
9
10maintainers                     nomaintainer
11description                     Java wrapper for sqlite
12long_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.
15homepage                        http://www.ch-werner.de/javasqlite/
16master_sites            ${homepage}
17checksums                       md5 ac9b2a256a657b2717659acea7f2e41a \
18                                        sha1 f9d74f6c891b27713ecaa1444b4bee1bb6841cf0 \
19                                        rmd160 725b2455208ca40b9c0edd9769431c637f0b8d3b
20patchfiles                      patch-configure \
21                                        patch-Makefile.in
22
23depends_lib                     port:sqlite2 \
24                                        port:sqlite3
25
26configure.args-append   --with-jardir=${prefix}/share/java/ \
27                                                --with-sqlite=${prefix} \
28                                                --with-sqlite3=${prefix}
29
30test.run                        yes
31post-test {
32        # This test function could be improved. We probably want a diff method
33        # in base/
34        system "cd ${worksrcpath} && java test > ${worksrcpath}/test.output 2>&1"
35        system "exit `diff ${filespath}/test.output ${worksrcpath}/test.output | wc -l`"
36}
37
38platform darwin {
39        patchfiles-append patch-Makefile.in-jnilib
40}
41
42livecheck.url   ${homepage}overview-summary.html
43livecheck.type  regexm
44livecheck.regex {<H1>\s+SQLite Java Wrapper/JDBC Driver\s+<br><small>\s+(.*)\s+</small>\s+</H1>}
45livecheck.version       [regsub {(....)(..)(..)} ${version} {\1-\2-\3}]
Note: See TracBrowser for help on using the repository browser.