diff options
author | kamil <kamil@pkgsrc.org> | 2016-01-12 22:06:03 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2016-01-12 22:06:03 +0000 |
commit | c610ebf5c8c83e8635234602d0991f6967c5b51b (patch) | |
tree | a2624b6d97e950d9d3dd65f89f0317013f5cfa38 /textproc | |
parent | ca4760e26c40bf7109d5fc5881253b23ad295e14 (diff) | |
download | pkgsrc-c610ebf5c8c83e8635234602d0991f6967c5b51b.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/DESCR | 5 | ||||
-rw-r--r-- | textproc/aha/Makefile | 17 | ||||
-rw-r--r-- | textproc/aha/PLIST | 3 | ||||
-rw-r--r-- | textproc/aha/distinfo | 7 | ||||
-rw-r--r-- | textproc/aha/patches/patch-Makefile | 48 |
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 |