summaryrefslogtreecommitdiff
path: root/homebrew/soci
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/soci
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/soci')
-rw-r--r--homebrew/soci/.beer35
-rw-r--r--homebrew/soci/.make.sh-auto5
-rw-r--r--homebrew/soci/_metadata/description1
-rw-r--r--homebrew/soci/_metadata/homepage1
-rw-r--r--homebrew/soci/_metadata/name1
-rw-r--r--homebrew/soci/_metadata/version1
-rwxr-xr-xhomebrew/soci/download.sh1
7 files changed, 45 insertions, 0 deletions
diff --git a/homebrew/soci/.beer b/homebrew/soci/.beer
new file mode 100644
index 000000000..975f2592f
--- /dev/null
+++ b/homebrew/soci/.beer
@@ -0,0 +1,35 @@
+{
+ "name": "Soci",
+ "description": "Database access library for C++",
+ "url": "https://downloads.sourceforge.net/project/soci/soci/soci-3.2.3/soci-3.2.3.zip",
+ "mirror": null,
+ "homepage": "https://soci.sourceforge.io/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "sqlite",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = std_cmake_args + %w[",
+ "-DWITH_SQLITE3:BOOL=ON",
+ "-DWITH_BOOST:BOOL=OFF",
+ "-DWITH_MYSQL:BOOL=OFF",
+ "-DWITH_ODBC:BOOL=OFF",
+ "-DWITH_ORACLE:BOOL=OFF",
+ "-DWITH_POSTGRESQL:BOOL=OFF",
+ "]",
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", *args",
+ "system \"make\", \"install\""
+ ],
+ "version": "3.2.3",
+ "file": "soci.rb"
+} \ No newline at end of file
diff --git a/homebrew/soci/.make.sh-auto b/homebrew/soci/.make.sh-auto
new file mode 100644
index 000000000..135440b95
--- /dev/null
+++ b/homebrew/soci/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+args = std_cmake_args + %w[-DWITH_SQLITE3:BOOL=ON -DWITH_BOOST:BOOL=OFF -DWITH_MYSQL:BOOL=OFF -DWITH_ODBC:BOOL=OFF -DWITH_ORACLE:BOOL=OFF -DWITH_POSTGRESQL:BOOL=OFF ]
+mkdir "build" && cd build
+cmake .. *args
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/soci/_metadata/description b/homebrew/soci/_metadata/description
new file mode 100644
index 000000000..60f5511ca
--- /dev/null
+++ b/homebrew/soci/_metadata/description
@@ -0,0 +1 @@
+Database access library for C++
diff --git a/homebrew/soci/_metadata/homepage b/homebrew/soci/_metadata/homepage
new file mode 100644
index 000000000..4b1dc6f0a
--- /dev/null
+++ b/homebrew/soci/_metadata/homepage
@@ -0,0 +1 @@
+https://soci.sourceforge.io/
diff --git a/homebrew/soci/_metadata/name b/homebrew/soci/_metadata/name
new file mode 100644
index 000000000..94fb186e3
--- /dev/null
+++ b/homebrew/soci/_metadata/name
@@ -0,0 +1 @@
+Soci
diff --git a/homebrew/soci/_metadata/version b/homebrew/soci/_metadata/version
new file mode 100644
index 000000000..b347b11ea
--- /dev/null
+++ b/homebrew/soci/_metadata/version
@@ -0,0 +1 @@
+3.2.3
diff --git a/homebrew/soci/download.sh b/homebrew/soci/download.sh
new file mode 100755
index 000000000..9cd81f398
--- /dev/null
+++ b/homebrew/soci/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/soci/soci/soci-3.2.3/soci-3.2.3.zip \ No newline at end of file