summaryrefslogtreecommitdiff
path: root/homebrew/vavrdiasm
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/vavrdiasm')
-rw-r--r--homebrew/vavrdiasm/.beer45
-rw-r--r--homebrew/vavrdiasm/.make.sh-auto4
-rw-r--r--homebrew/vavrdiasm/_metadata/description1
-rw-r--r--homebrew/vavrdiasm/_metadata/homepage1
-rw-r--r--homebrew/vavrdiasm/_metadata/name1
-rw-r--r--homebrew/vavrdiasm/_metadata/version1
-rwxr-xr-xhomebrew/vavrdiasm/download.sh1
-rwxr-xr-xhomebrew/vavrdiasm/patches.sh24
8 files changed, 78 insertions, 0 deletions
diff --git a/homebrew/vavrdiasm/.beer b/homebrew/vavrdiasm/.beer
new file mode 100644
index 000000000..b9c1bc9c7
--- /dev/null
+++ b/homebrew/vavrdiasm/.beer
@@ -0,0 +1,45 @@
+{
+ "name": "Vavrdiasm",
+ "description": "8-bit Atmel AVR disassembler",
+ "url": "https://github.com/vsergeev/vavrdisasm/archive/v3.1.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/vsergeev/vAVRdisasm",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/Makefile b/Makefile\n",
+ "index 3b61942..f1c94fc 100644\n",
+ "--- a/Makefile\n",
+ "+++ b/Makefile\n",
+ "@@ -1,5 +1,5 @@\n",
+ " PROGNAME = vavrdisasm\n",
+ "-PREFIX = /usr\n",
+ "+PREFIX ?= /usr\n",
+ " BINDIR = $(PREFIX)/bin\n",
+ "\n",
+ " ################################################################################\n",
+ "@@ -35,7 +35,8 @@ test: $(PROGNAME)\n",
+ " \tpython2 crazy_test.py\n",
+ "\n",
+ " install: $(PROGNAME)\n",
+ "-\tinstall -D -s -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)\n",
+ "+\tmkdir -p $(DESTDIR)$(BINDIR)\n",
+ "+\tinstall -s -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)\n",
+ "\n",
+ " uninstall:\n",
+ " \trm -f $(DESTDIR)$(BINDIR)/$(PROGNAME)\n"
+ ]
+ }
+ ],
+ "install": [
+ "ENV[\"PREFIX\"] = prefix",
+ "system \"make\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "3.1",
+ "file": "vavrdiasm.rb"
+} \ No newline at end of file
diff --git a/homebrew/vavrdiasm/.make.sh-auto b/homebrew/vavrdiasm/.make.sh-auto
new file mode 100644
index 000000000..d128d21f6
--- /dev/null
+++ b/homebrew/vavrdiasm/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+ENV["PREFIX"] = prefix
+make
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/vavrdiasm/_metadata/description b/homebrew/vavrdiasm/_metadata/description
new file mode 100644
index 000000000..bd2351367
--- /dev/null
+++ b/homebrew/vavrdiasm/_metadata/description
@@ -0,0 +1 @@
+8-bit Atmel AVR disassembler
diff --git a/homebrew/vavrdiasm/_metadata/homepage b/homebrew/vavrdiasm/_metadata/homepage
new file mode 100644
index 000000000..8014b5bf2
--- /dev/null
+++ b/homebrew/vavrdiasm/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/vsergeev/vAVRdisasm
diff --git a/homebrew/vavrdiasm/_metadata/name b/homebrew/vavrdiasm/_metadata/name
new file mode 100644
index 000000000..800e8c088
--- /dev/null
+++ b/homebrew/vavrdiasm/_metadata/name
@@ -0,0 +1 @@
+Vavrdiasm
diff --git a/homebrew/vavrdiasm/_metadata/version b/homebrew/vavrdiasm/_metadata/version
new file mode 100644
index 000000000..8c50098d8
--- /dev/null
+++ b/homebrew/vavrdiasm/_metadata/version
@@ -0,0 +1 @@
+3.1
diff --git a/homebrew/vavrdiasm/download.sh b/homebrew/vavrdiasm/download.sh
new file mode 100755
index 000000000..67e233c29
--- /dev/null
+++ b/homebrew/vavrdiasm/download.sh
@@ -0,0 +1 @@
+wget https://github.com/vsergeev/vavrdisasm/archive/v3.1.tar.gz \ No newline at end of file
diff --git a/homebrew/vavrdiasm/patches.sh b/homebrew/vavrdiasm/patches.sh
new file mode 100755
index 000000000..318c90672
--- /dev/null
+++ b/homebrew/vavrdiasm/patches.sh
@@ -0,0 +1,24 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/Makefile b/Makefile
+index 3b61942..f1c94fc 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+ PROGNAME = vavrdisasm
+-PREFIX = /usr
++PREFIX ?= /usr
+ BINDIR = $(PREFIX)/bin
+
+ ################################################################################
+@@ -35,7 +35,8 @@ test: $(PROGNAME)
+ python2 crazy_test.py
+
+ install: $(PROGNAME)
+- install -D -s -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
++ mkdir -p $(DESTDIR)$(BINDIR)
++ install -s -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
+
+ uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/$(PROGNAME)
+EOF