diff --git a/databases/sqlitebrowser/Makefile b/databases/sqlitebrowser/Makefile new file mode 100644 index 00000000000..637a13a24cf --- /dev/null +++ b/databases/sqlitebrowser/Makefile @@ -0,0 +1,34 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/05/09 15:18:28 espie Exp $ + +COMMENT= "graphical interface to sqlite databases" +DISTNAME= sqlitebrowser-1.3 +DISTFILES= ${DISTNAME}-src.tar.gz +WRKDIST= ${WRKDIR}/sqlitebrowser/sqlitebrowser +CATEGORIES= databases x11 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sqlitebrowser/} +HOMEPAGE= http://sqlitebrowser.sourceforge.net/ + +MODULES= x11/qt3 +LIB_DEPENDS= sqlite3::databases/sqlite3 +NO_REGRESS= Yes + +WANTLIB= Xext m X11 stdc++ pthread c + +# Special: files are macintosh encoded. +post-extract: + find ${WRKDIST} -type d -name images -prune -o -type f -print|xargs perl -pi.bak -e 's/\cM/\cJ/g'; + find ${WRKDIST} -type f -name \*.bak -print|xargs rm + +do-configure: + cd ${WRKDIST} && qmake sqlitebrowser.pro + +do-install: + ${INSTALL_PROGRAM} ${WRKBUILD}/sqlitebrowser ${PREFIX}/bin + +# Public domain +PERMIT_PACKAGE_FTP= Yes +PERMIT_PACKAGE_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes + +.include diff --git a/databases/sqlitebrowser/distinfo b/databases/sqlitebrowser/distinfo new file mode 100644 index 00000000000..b76a9f1afcd --- /dev/null +++ b/databases/sqlitebrowser/distinfo @@ -0,0 +1,4 @@ +MD5 (sqlitebrowser-1.3-src.tar.gz) = d4dc8c6a95d5f005e493f3a5a2a10491 +RMD160 (sqlitebrowser-1.3-src.tar.gz) = 884330dd595ec091f1aab885cb845dd19adeb189 +SHA1 (sqlitebrowser-1.3-src.tar.gz) = 5defc7965e352bcaf8c763b76b2cfe11360b68f9 +SIZE (sqlitebrowser-1.3-src.tar.gz) = 563588 diff --git a/databases/sqlitebrowser/patches/patch-sqlitebrowser_pro b/databases/sqlitebrowser/patches/patch-sqlitebrowser_pro new file mode 100644 index 00000000000..c3dde3cfc15 --- /dev/null +++ b/databases/sqlitebrowser/patches/patch-sqlitebrowser_pro @@ -0,0 +1,12 @@ +$OpenBSD: patch-sqlitebrowser_pro,v 1.1.1.1 2006/05/09 15:18:28 espie Exp $ +--- sqlitebrowser.pro.orig Tue May 9 15:54:02 2006 ++++ sqlitebrowser.pro Tue May 9 16:13:12 2006 +@@ -47,7 +47,7 @@ unix { + UI_DIR = .ui + MOC_DIR = .moc + OBJECTS_DIR = .obj +- LIBS += ./sqlite_source/libsqlite_source.a ++ LIBS += -lsqlite3 + } + win32 { + RC_FILE = winapp.rc diff --git a/databases/sqlitebrowser/pkg/DESCR b/databases/sqlitebrowser/pkg/DESCR new file mode 100644 index 00000000000..7e5881d32e8 --- /dev/null +++ b/databases/sqlitebrowser/pkg/DESCR @@ -0,0 +1,19 @@ +SQLite Database Browser is a public domain visual tool used to create, +design and edit database files compatible with SQLite3. + +It is meant to be used for users and developers who want to create +databases, edit and search data using a familiar spreadsheet-like interface, +without the need to learn complicated SQL commands. +Controls and wizards are available for users to: +* Create and compact database files +* Create, define, modify and delete tables +* Create, define and delete indexes +* Browse, edit, add and delete records +* Search records +* Import and export records as text +* Import and export tables from/to CSV files +* Import and export databases from/to SQL dump files +* Issue SQL queries and inspect the results +* Examine a log of all SQL commands issued by the application + +This program, however, is not a visual shell for the sqlite command line tool. diff --git a/databases/sqlitebrowser/pkg/PLIST b/databases/sqlitebrowser/pkg/PLIST new file mode 100644 index 00000000000..ce99fb9e117 --- /dev/null +++ b/databases/sqlitebrowser/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/05/09 15:18:28 espie Exp $ +bin/sqlitebrowser