mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 10:31:20 +02:00
add spring 5
This commit is contained in:
33
java/sqlitejdbc/Makefile
Normal file
33
java/sqlitejdbc/Makefile
Normal file
@@ -0,0 +1,33 @@
|
||||
# Created by: Lapo Luchini <lapo@lapo.it>
|
||||
# $FreeBSD: head/java/sqlitejdbc/Makefile 518482 2019-11-26 21:46:12Z jkim $
|
||||
|
||||
PORTNAME= sqlitejdbc
|
||||
PORTVERSION= 056
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSIONSUFFIX= -src
|
||||
CATEGORIES= java databases
|
||||
MASTER_SITES= http://files.zentus.com/sqlitejdbc/
|
||||
|
||||
MAINTAINER= lapo@lapo.it
|
||||
COMMENT= Java JDBC driver for SQLite
|
||||
|
||||
LIB_DEPENDS= libsqlite3.so:data/sqlite3
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}
|
||||
USE_JAVA= yes
|
||||
USES= gmake tar:tgz
|
||||
MAKE_ENV= JAVA_HOME="${JAVA_HOME}"
|
||||
ALL_TARGET= native
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/sqlitejdbc-native.jar lib/libsqlitejdbc.so
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/build/sqlitejdbc-v${PORTVERSION}-native.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/sqlitejdbc-native.jar
|
||||
${INSTALL_DATA} ${WRKSRC}/build/FreeBSD/libsqlitejdbc.so \
|
||||
${STAGEDIR}${PREFIX}/lib/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
2
java/sqlitejdbc/distinfo
Normal file
2
java/sqlitejdbc/distinfo
Normal file
@@ -0,0 +1,2 @@
|
||||
SHA256 (sqlitejdbc-v056-src.tgz) = 000edd02dc1279da490aa332a9b053ba35a80e220904faab82aff06ed7937a49
|
||||
SIZE (sqlitejdbc-v056-src.tgz) = 160491
|
||||
28
java/sqlitejdbc/files/patch-Makefile
Normal file
28
java/sqlitejdbc/files/patch-Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
--- Makefile.orig 2008-06-18 01:39:02.000000000 +0200
|
||||
+++ Makefile 2008-06-23 16:12:40.000000000 +0200
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
include Makefile.common
|
||||
+target := FreeBSD
|
||||
|
||||
default: test
|
||||
|
||||
@@ -29,13 +30,15 @@
|
||||
build/$(sqlitejdbc)-native.jar: $(native_classes)
|
||||
cd build && jar cf $(sqlitejdbc)-native.jar $(java_classlist)
|
||||
|
||||
-build/$(target)/$(LIBNAME): build/$(sqlite)-$(target)/sqlite3.o build/org/sqlite/NativeDB.class
|
||||
+build/$(target)/$(LIBNAME): build/org/sqlite/NativeDB.class
|
||||
@mkdir -p build/$(target)
|
||||
$(JAVAH) -classpath build -jni -o build/NativeDB.h org.sqlite.NativeDB
|
||||
$(CC) $(CFLAGS) -c -o build/$(target)/NativeDB.o \
|
||||
+ -I%%LOCALBASE%%/include \
|
||||
src/org/sqlite/NativeDB.c
|
||||
$(CC) $(CFLAGS) $(LINKFLAGS) -o build/$(target)/$(LIBNAME) \
|
||||
- build/$(target)/NativeDB.o build/$(sqlite)-$(target)/*.o
|
||||
+ build/$(target)/NativeDB.o \
|
||||
+ -L%%LOCALBASE%%/lib -lsqlite3
|
||||
$(STRIP) build/$(target)/$(LIBNAME)
|
||||
|
||||
build/$(sqlite)-%/sqlite3.o: dl/$(sqlite)-amal.zip
|
||||
11
java/sqlitejdbc/files/patch-Makefile.common
Normal file
11
java/sqlitejdbc/files/patch-Makefile.common
Normal file
@@ -0,0 +1,11 @@
|
||||
--- Makefile.common.orig 2013-10-30 08:27:27.420880093 +0000
|
||||
+++ Makefile.common 2013-10-30 08:27:45.873878420 +0000
|
||||
@@ -56,7 +56,7 @@
|
||||
target := $(os)-$(arch)
|
||||
|
||||
# os=Default is meant to be generic unix/linux
|
||||
-Default_CC := gcc
|
||||
+Default_CC := $(CC)
|
||||
Default_STRIP := strip
|
||||
Default_CFLAGS := -I$(JAVA_HOME)/include -Os -fPIC
|
||||
Default_LINKFLAGS := -shared
|
||||
14
java/sqlitejdbc/files/patch-src_org_sqlite_Conn.java
Normal file
14
java/sqlitejdbc/files/patch-src_org_sqlite_Conn.java
Normal file
@@ -0,0 +1,14 @@
|
||||
--- src/org/sqlite/Conn.java.orig 2009-07-22 18:33:46.000000000 +0200
|
||||
+++ src/org/sqlite/Conn.java 2009-07-22 18:33:53.000000000 +0200
|
||||
@@ -214,7 +214,10 @@ class Conn implements Connection
|
||||
ResultSet.CONCUR_READ_ONLY);
|
||||
}
|
||||
public PreparedStatement prepareStatement(String sql, int autoC)
|
||||
- throws SQLException { throw new SQLException("NYI"); }
|
||||
+ throws SQLException {
|
||||
+ return prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY,
|
||||
+ ResultSet.CONCUR_READ_ONLY);
|
||||
+ }
|
||||
public PreparedStatement prepareStatement(String sql, int[] colInds)
|
||||
throws SQLException { throw new SQLException("NYI"); }
|
||||
public PreparedStatement prepareStatement(String sql, String[]
|
||||
7
java/sqlitejdbc/pkg-descr
Normal file
7
java/sqlitejdbc/pkg-descr
Normal file
@@ -0,0 +1,7 @@
|
||||
SQLiteJDBC is a Java JDBC driver for SQLite.
|
||||
|
||||
It runs using either a native code library or a 100% Pure Java driver
|
||||
based on NestedVM emulation (but in this package only the native version
|
||||
is installed).
|
||||
|
||||
WWW: http://web.archive.org/web/20120721075310/http://www.zentus.com/sqlitejdbc/
|
||||
12
java/sqlitejdbc/pkg-message
Normal file
12
java/sqlitejdbc/pkg-message
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
Warning: you need a sqlite3 port compiled with SQLITE_ENABLE_COLUMN_METADATA
|
||||
in order to use the following methods:
|
||||
String ResultSetMetaData.getCatalogName(int column)
|
||||
String ResultSetMetaData.getTableName(int column)
|
||||
any attemp to use them will close the JVM with an error of:
|
||||
Undefined symbol "sqlite3_column_table_name16"
|
||||
EOM
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user