summaryrefslogtreecommitdiff
path: root/homebrew/gnuindent
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/gnuindent
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/gnuindent')
-rw-r--r--homebrew/gnuindent/.beer32
-rw-r--r--homebrew/gnuindent/.make.sh-auto7
-rw-r--r--homebrew/gnuindent/_metadata/description1
-rw-r--r--homebrew/gnuindent/_metadata/homepage1
-rw-r--r--homebrew/gnuindent/_metadata/name1
-rw-r--r--homebrew/gnuindent/_metadata/version1
-rwxr-xr-xhomebrew/gnuindent/download.sh1
7 files changed, 44 insertions, 0 deletions
diff --git a/homebrew/gnuindent/.beer b/homebrew/gnuindent/.beer
new file mode 100644
index 000000000..534f94c21
--- /dev/null
+++ b/homebrew/gnuindent/.beer
@@ -0,0 +1,32 @@
+{
+ "name": "GnuIndent",
+ "description": "C code prettifier",
+ "url": "https://ftp.gnu.org/gnu/indent/indent-2.2.12.tar.gz",
+ "mirror": "https://ftpmirror.gnu.org/indent/indent-2.2.12.tar.gz",
+ "homepage": "https://www.gnu.org/software/indent/",
+ "depends": [
+ {
+ "depend": "gettext",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = %W[",
+ "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}",
+ "--program-prefix=g",
+ "]",
+ "system \"./configure\", *args",
+ "system \"make\", \"install\"",
+ "(libexec/\"gnubin\").install_symlink bin/\"gindent\" => \"indent\"",
+ "(libexec/\"gnuman/man1\").install_symlink man1/\"gindent.1\" => \"indent.1\"",
+ "libexec.install_symlink \"gnuman\" => \"man\""
+ ],
+ "version": "2.2.12",
+ "file": "gnu-indent.rb"
+} \ No newline at end of file
diff --git a/homebrew/gnuindent/.make.sh-auto b/homebrew/gnuindent/.make.sh-auto
new file mode 100644
index 000000000..2d1a41830
--- /dev/null
+++ b/homebrew/gnuindent/.make.sh-auto
@@ -0,0 +1,7 @@
+pkg:setup
+args = %W[--disable-debug --disable-dependency-tracking --prefix=#{prefix} --mandir=#{man} --program-prefix=g ]
+pkg:configure *args
+make DESTDIR=${PKG_DEST} install
+(libexec/"gnubin").install_symlink bin/"gindent" => "indent"
+(libexec/"gnuman/man1").install_symlink man1/"gindent.1" => "indent.1"
+libexec.install_symlink "gnuman" => "man"
diff --git a/homebrew/gnuindent/_metadata/description b/homebrew/gnuindent/_metadata/description
new file mode 100644
index 000000000..381549d61
--- /dev/null
+++ b/homebrew/gnuindent/_metadata/description
@@ -0,0 +1 @@
+C code prettifier
diff --git a/homebrew/gnuindent/_metadata/homepage b/homebrew/gnuindent/_metadata/homepage
new file mode 100644
index 000000000..e59e6e1f8
--- /dev/null
+++ b/homebrew/gnuindent/_metadata/homepage
@@ -0,0 +1 @@
+https://www.gnu.org/software/indent/
diff --git a/homebrew/gnuindent/_metadata/name b/homebrew/gnuindent/_metadata/name
new file mode 100644
index 000000000..b9718874b
--- /dev/null
+++ b/homebrew/gnuindent/_metadata/name
@@ -0,0 +1 @@
+GnuIndent
diff --git a/homebrew/gnuindent/_metadata/version b/homebrew/gnuindent/_metadata/version
new file mode 100644
index 000000000..98c938ec3
--- /dev/null
+++ b/homebrew/gnuindent/_metadata/version
@@ -0,0 +1 @@
+2.2.12
diff --git a/homebrew/gnuindent/download.sh b/homebrew/gnuindent/download.sh
new file mode 100755
index 000000000..34f1acd00
--- /dev/null
+++ b/homebrew/gnuindent/download.sh
@@ -0,0 +1 @@
+wget https://ftp.gnu.org/gnu/indent/indent-2.2.12.tar.gz || wget https://ftpmirror.gnu.org/indent/indent-2.2.12.tar.gz \ No newline at end of file