summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorkamil <kamil>2016-01-12 22:06:03 +0000
committerkamil <kamil>2016-01-12 22:06:03 +0000
commit8898e5a250eaa2e818d3557d7d7a8426c54bd7a8 (patch)
treea2624b6d97e950d9d3dd65f89f0317013f5cfa38 /textproc
parent3d891e165ae43065cb81406358498bef905e6b3a (diff)
downloadpkgsrc-8898e5a250eaa2e818d3557d7d7a8426c54bd7a8.tar.gz
Import aha-0.4.8 as textproc/aha.
aha - Ansi HTML Adapter aha takes SGR-colored Input and prints W3C conform HTML-Code. aha reads the Input from a file or stdin and writes HTML-Code to stdout. Originally packaged as wip/aha
Diffstat (limited to 'textproc')
-rw-r--r--textproc/aha/DESCR5
-rw-r--r--textproc/aha/Makefile17
-rw-r--r--textproc/aha/PLIST3
-rw-r--r--textproc/aha/distinfo7
-rw-r--r--textproc/aha/patches/patch-Makefile48
5 files changed, 80 insertions, 0 deletions
diff --git a/textproc/aha/DESCR b/textproc/aha/DESCR
new file mode 100644
index 00000000000..8bda7e983cb
--- /dev/null
+++ b/textproc/aha/DESCR
@@ -0,0 +1,5 @@
+aha - Ansi HTML Adapter
+
+aha takes SGR-colored Input and prints W3C conform HTML-Code.
+
+aha reads the Input from a file or stdin and writes HTML-Code to stdout.
diff --git a/textproc/aha/Makefile b/textproc/aha/Makefile
new file mode 100644
index 00000000000..8443fec3410
--- /dev/null
+++ b/textproc/aha/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2016/01/12 22:06:03 kamil Exp $
+
+DISTNAME= aha-0.4.8
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=theZiz/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= ${MASTER_SITE_GITHUB:=theZiz/aha/}
+COMMENT= Ansi HTML Adapter
+# It's not specified what version of LGPL
+LICENSE= mpl-1.1 OR gnu-lgpl-v2 OR gnu-lgpl-v2.1 OR gnu-lgpl-v3
+
+MAKE_ENV+= MANDIR=${PKGMANDIR}
+MAKE_ENV+= MANMODE=${MANMODE}
+MAKE_ENV+= BINMODE=${BINMODE}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/aha/PLIST b/textproc/aha/PLIST
new file mode 100644
index 00000000000..6c107528ee3
--- /dev/null
+++ b/textproc/aha/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/01/12 22:06:03 kamil Exp $
+bin/aha
+man/man1/aha.1
diff --git a/textproc/aha/distinfo b/textproc/aha/distinfo
new file mode 100644
index 00000000000..bfd5f84c72a
--- /dev/null
+++ b/textproc/aha/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/01/12 22:06:03 kamil Exp $
+
+SHA1 (aha-0.4.8.tar.gz) = 45d91e1cda8663e8bf0c5fa8b94e4d2290aa9895
+RMD160 (aha-0.4.8.tar.gz) = 423311d1dd79ada23c4a67daae1a064afeb76ca4
+SHA512 (aha-0.4.8.tar.gz) = 8d66ee7ec6d59873c1f0bedbc4deecd0c7b84c18069d2181d7b0563d9600821455c62c37c0af1774c7190ce08b14ec52f10bdf2c15a97fd29a2b6b095d5924fa
+Size (aha-0.4.8.tar.gz) = 6744 bytes
+SHA1 (patch-Makefile) = 286dff9d54aaf82c397d3e979e0f1b04fc29093d
diff --git a/textproc/aha/patches/patch-Makefile b/textproc/aha/patches/patch-Makefile
new file mode 100644
index 00000000000..3a9cb038084
--- /dev/null
+++ b/textproc/aha/patches/patch-Makefile
@@ -0,0 +1,48 @@
+$NetBSD: patch-Makefile,v 1.1 2016/01/12 22:06:03 kamil Exp $
+
+Sent upstream: https://github.com/theZiz/aha/pull/15
+
+Allow to overwrite MANDIR, it's OS specific and configurable in pkgsrc. It's
+usually share/man (GNU) or man (BSD).
+
+Files must be installed with specific file mode. Previously man-page was
+installed with executable bit.
+
+BIN:= and MAN:= didn't work well with overwrittable MANDIR, go for canonical
+way of using these paths.
+
+--- Makefile.orig 2015-01-24 12:12:35.000000000 +0000
++++ Makefile
+@@ -1,22 +1,22 @@
+ .PHONY: all clean install
+
+-ifndef PREFIX
+- PREFIX=/usr/local
+-endif
++PREFIX?=/usr/local
+
+-BIN:=$(DESTDIR)$(PREFIX)/bin
+-MAN:=$(DESTDIR)$(PREFIX)/man/man1
++MANDIR?=man
++
++BINMODE?=0755
++MANMODE?=644
+
+ all: aha
+
+ aha: aha.c
+- gcc -std=c99 $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) aha.c -o aha
++ $(CC) -std=c99 $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) aha.c -o aha
+
+ clean:
+ rm -f aha
+
+ install: aha
+- install -d $(BIN)
+- install aha $(BIN)
+- install -d $(MAN)
+- install aha.1 $(MAN)
++ install -d $(DESTDIR)$(PREFIX)/bin
++ install -m ${BINMODE} aha $(DESTDIR)$(PREFIX)/bin
++ install -d $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
++ install -m ${MANMODE} aha.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1