summaryrefslogtreecommitdiff
path: root/homebrew/libmagic
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/libmagic
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/libmagic')
-rw-r--r--homebrew/libmagic/.beer24
-rw-r--r--homebrew/libmagic/.make.sh-auto6
-rw-r--r--homebrew/libmagic/_metadata/description1
-rw-r--r--homebrew/libmagic/_metadata/homepage1
-rw-r--r--homebrew/libmagic/_metadata/name1
-rw-r--r--homebrew/libmagic/_metadata/version1
-rwxr-xr-xhomebrew/libmagic/download.sh1
7 files changed, 35 insertions, 0 deletions
diff --git a/homebrew/libmagic/.beer b/homebrew/libmagic/.beer
new file mode 100644
index 000000000..25c6beef0
--- /dev/null
+++ b/homebrew/libmagic/.beer
@@ -0,0 +1,24 @@
+{
+ "name": "Libmagic",
+ "description": "Implementation of the file(1) command",
+ "url": "ftp://ftp.astron.com/pub/file/file-5.36.tar.gz",
+ "mirror": null,
+ "homepage": "https://www.darwinsys.com/file/",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"./configure\", \"--disable-dependency-tracking\",",
+ "\"--disable-silent-rules\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--enable-fsect-man5\",",
+ "\"--enable-static\"",
+ "system \"make\", \"install\"",
+ "(share/\"misc/magic\").install Dir[\"magic/Magdir/*\"]",
+ "rm bin/\"file\"",
+ "rm man1/\"file.1\""
+ ],
+ "version": "5.36",
+ "file": "libmagic.rb"
+} \ No newline at end of file
diff --git a/homebrew/libmagic/.make.sh-auto b/homebrew/libmagic/.make.sh-auto
new file mode 100644
index 000000000..922ad0fe5
--- /dev/null
+++ b/homebrew/libmagic/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+pkg:configure --disable-dependency-tracking --disable-silent-rules --enable-fsect-man5 --enable-static
+make DESTDIR=${PKG_DEST} install
+(share/"misc/magic").install Dir["magic/Magdir/*"]
+rm bin/"file"
+rm man1/"file.1"
diff --git a/homebrew/libmagic/_metadata/description b/homebrew/libmagic/_metadata/description
new file mode 100644
index 000000000..91a2d6be8
--- /dev/null
+++ b/homebrew/libmagic/_metadata/description
@@ -0,0 +1 @@
+Implementation of the file(1) command
diff --git a/homebrew/libmagic/_metadata/homepage b/homebrew/libmagic/_metadata/homepage
new file mode 100644
index 000000000..3a664ccb3
--- /dev/null
+++ b/homebrew/libmagic/_metadata/homepage
@@ -0,0 +1 @@
+https://www.darwinsys.com/file/
diff --git a/homebrew/libmagic/_metadata/name b/homebrew/libmagic/_metadata/name
new file mode 100644
index 000000000..0d17817b5
--- /dev/null
+++ b/homebrew/libmagic/_metadata/name
@@ -0,0 +1 @@
+Libmagic
diff --git a/homebrew/libmagic/_metadata/version b/homebrew/libmagic/_metadata/version
new file mode 100644
index 000000000..2f5e19e19
--- /dev/null
+++ b/homebrew/libmagic/_metadata/version
@@ -0,0 +1 @@
+5.36
diff --git a/homebrew/libmagic/download.sh b/homebrew/libmagic/download.sh
new file mode 100755
index 000000000..0f0ec55c0
--- /dev/null
+++ b/homebrew/libmagic/download.sh
@@ -0,0 +1 @@
+wget ftp://ftp.astron.com/pub/file/file-5.36.tar.gz \ No newline at end of file