summaryrefslogtreecommitdiff
path: root/homebrew/jhead
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/jhead
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/jhead')
-rw-r--r--homebrew/jhead/.beer58
-rw-r--r--homebrew/jhead/.make.sh-auto2
-rw-r--r--homebrew/jhead/_metadata/description1
-rw-r--r--homebrew/jhead/_metadata/homepage1
-rw-r--r--homebrew/jhead/_metadata/name1
-rw-r--r--homebrew/jhead/_metadata/version1
-rwxr-xr-xhomebrew/jhead/download.sh1
-rwxr-xr-xhomebrew/jhead/patches.sh36
8 files changed, 101 insertions, 0 deletions
diff --git a/homebrew/jhead/.beer b/homebrew/jhead/.beer
new file mode 100644
index 000000000..e23b8f38c
--- /dev/null
+++ b/homebrew/jhead/.beer
@@ -0,0 +1,58 @@
+{
+ "name": "Jhead",
+ "description": "Extract Digicam setting info from EXIF JPEG headers",
+ "url": "http://www.sentex.net/~mwandel/jhead/jhead-3.00.tar.gz",
+ "mirror": null,
+ "homepage": "http://www.sentex.net/~mwandel/jhead/",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://deb.debian.org/debian/pool/main/j/jhead/jhead_3.00-4.debian.tar.xz",
+ "strip": "1"
+ },
+ {
+ "url": null,
+ "data": [
+ "--- a/makefile\t2015-02-02 23:24:06.000000000 +0100\n",
+ "+++ b/makefile\t2015-02-25 16:31:21.000000000 +0100\n",
+ "@@ -1,12 +1,18 @@\n",
+ " #--------------------------------\n",
+ " # jhead makefile for Unix\n",
+ " #--------------------------------\n",
+ "+PREFIX=$(DESTDIR)/usr/local\n",
+ "+BINDIR=$(PREFIX)/bin\n",
+ "+DOCDIR=$(PREFIX)/share/doc/jhead\n",
+ "+MANDIR=$(PREFIX)/share/man/man1\n",
+ " OBJ=.\n",
+ " SRC=.\n",
+ " CFLAGS:= $(CFLAGS) -O3 -Wall\n",
+ "\n",
+ " all: jhead\n",
+ "\n",
+ "+docs = $(SRC)/usage.html\n",
+ "+\n",
+ " objs = $(OBJ)/jhead.o $(OBJ)/jpgfile.o $(OBJ)/jpgqguess.o $(OBJ)/paths.o \\\n",
+ "\t$(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o\n",
+ "\n",
+ "@@ -19,5 +25,8 @@\n",
+ " clean:\n",
+ "\trm -f $(objs) jhead\n",
+ "\n",
+ "-install:\n",
+ "-\tcp jhead ${DESTDIR}/usr/local/bin/\n",
+ "+install: all\n",
+ "+\tinstall -d $(BINDIR) $(DOCDIR) $(MANDIR)\n",
+ "+\tinstall -m 0755 jhead $(BINDIR)\n",
+ "+\tinstall -m 0644 $(docs) $(DOCDIR)\n",
+ "+\tinstall -m 0644 jhead.1 $(MANDIR)\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"make\", \"install\", \"PREFIX=#{prefix}\""
+ ],
+ "version": "3.00",
+ "file": "jhead.rb"
+} \ No newline at end of file
diff --git a/homebrew/jhead/.make.sh-auto b/homebrew/jhead/.make.sh-auto
new file mode 100644
index 000000000..0cee20c2e
--- /dev/null
+++ b/homebrew/jhead/.make.sh-auto
@@ -0,0 +1,2 @@
+pkg:setup
+make DESTDIR=${PKG_DEST} install PREFIX=${PKG_TAPF}
diff --git a/homebrew/jhead/_metadata/description b/homebrew/jhead/_metadata/description
new file mode 100644
index 000000000..9a71309aa
--- /dev/null
+++ b/homebrew/jhead/_metadata/description
@@ -0,0 +1 @@
+Extract Digicam setting info from EXIF JPEG headers
diff --git a/homebrew/jhead/_metadata/homepage b/homebrew/jhead/_metadata/homepage
new file mode 100644
index 000000000..1ade31b8a
--- /dev/null
+++ b/homebrew/jhead/_metadata/homepage
@@ -0,0 +1 @@
+http://www.sentex.net/~mwandel/jhead/
diff --git a/homebrew/jhead/_metadata/name b/homebrew/jhead/_metadata/name
new file mode 100644
index 000000000..bbdcb161b
--- /dev/null
+++ b/homebrew/jhead/_metadata/name
@@ -0,0 +1 @@
+Jhead
diff --git a/homebrew/jhead/_metadata/version b/homebrew/jhead/_metadata/version
new file mode 100644
index 000000000..82e4d63dd
--- /dev/null
+++ b/homebrew/jhead/_metadata/version
@@ -0,0 +1 @@
+3.00
diff --git a/homebrew/jhead/download.sh b/homebrew/jhead/download.sh
new file mode 100755
index 000000000..9906ce0b2
--- /dev/null
+++ b/homebrew/jhead/download.sh
@@ -0,0 +1 @@
+wget http://www.sentex.net/~mwandel/jhead/jhead-3.00.tar.gz \ No newline at end of file
diff --git a/homebrew/jhead/patches.sh b/homebrew/jhead/patches.sh
new file mode 100755
index 000000000..112c6b0c0
--- /dev/null
+++ b/homebrew/jhead/patches.sh
@@ -0,0 +1,36 @@
+wget https://deb.debian.org/debian/pool/main/j/jhead/jhead_3.00-4.debian.tar.xz
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- a/makefile 2015-02-02 23:24:06.000000000 +0100
++++ b/makefile 2015-02-25 16:31:21.000000000 +0100
+@@ -1,12 +1,18 @@
+ #--------------------------------
+ # jhead makefile for Unix
+ #--------------------------------
++PREFIX=$(DESTDIR)/usr/local
++BINDIR=$(PREFIX)/bin
++DOCDIR=$(PREFIX)/share/doc/jhead
++MANDIR=$(PREFIX)/share/man/man1
+ OBJ=.
+ SRC=.
+ CFLAGS:= $(CFLAGS) -O3 -Wall
+
+ all: jhead
+
++docs = $(SRC)/usage.html
++
+ objs = $(OBJ)/jhead.o $(OBJ)/jpgfile.o $(OBJ)/jpgqguess.o $(OBJ)/paths.o \
+ $(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o
+
+@@ -19,5 +25,8 @@
+ clean:
+ rm -f $(objs) jhead
+
+-install:
+- cp jhead ${DESTDIR}/usr/local/bin/
++install: all
++ install -d $(BINDIR) $(DOCDIR) $(MANDIR)
++ install -m 0755 jhead $(BINDIR)
++ install -m 0644 $(docs) $(DOCDIR)
++ install -m 0644 jhead.1 $(MANDIR)
+EOF