summaryrefslogtreecommitdiff
path: root/misc/nyancat
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-07-26 18:01:53 +0000
committerkamil <kamil@pkgsrc.org>2016-07-26 18:01:53 +0000
commit0c1d95a0b9908e89b33babe770917750fba51b4e (patch)
tree05d811b045404dc766fe3e83377828352fc08205 /misc/nyancat
parent32466aa627c03ad8c56a4d8bf8d55262ca810c53 (diff)
downloadpkgsrc-0c1d95a0b9908e89b33babe770917750fba51b4e.tar.gz
Import nyancat-1.5.1 as misc/nyancat
nyancat is an animated, color, ANSI-text program that renders a loop of the classic Nyan Cat animation. nyancat makes use of various ANSI escape sequences to render color, or in the case of a VT220, simply dumps text to the screen. Originally packaged in pkgsrc-wip by: - Frederic Cambus and - myself.
Diffstat (limited to 'misc/nyancat')
-rw-r--r--misc/nyancat/DESCR5
-rw-r--r--misc/nyancat/Makefile16
-rw-r--r--misc/nyancat/PLIST3
-rw-r--r--misc/nyancat/distinfo7
-rw-r--r--misc/nyancat/patches/patch-Makefile28
5 files changed, 59 insertions, 0 deletions
diff --git a/misc/nyancat/DESCR b/misc/nyancat/DESCR
new file mode 100644
index 00000000000..5299bac4f47
--- /dev/null
+++ b/misc/nyancat/DESCR
@@ -0,0 +1,5 @@
+nyancat is an animated, color, ANSI-text program that renders a loop of
+the classic Nyan Cat animation.
+
+nyancat makes use of various ANSI escape sequences to render color, or
+in the case of a VT220, simply dumps text to the screen.
diff --git a/misc/nyancat/Makefile b/misc/nyancat/Makefile
new file mode 100644
index 00000000000..72b022a8226
--- /dev/null
+++ b/misc/nyancat/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2016/07/26 18:01:53 kamil Exp $
+
+DISTNAME= nyancat-1.5.1
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=klange/}
+
+MAINTAINER= fred@statdns.com
+HOMEPAGE= http://nyancat.dakko.us/
+COMMENT= Nyancat in your terminal
+LICENSE= modified-bsd
+
+INSTALL_MAKE_FLAGS+= MANDIR=${PKGMANDIR}
+
+MANCOMPRESSED= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/nyancat/PLIST b/misc/nyancat/PLIST
new file mode 100644
index 00000000000..bd89692df26
--- /dev/null
+++ b/misc/nyancat/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/26 18:01:53 kamil Exp $
+bin/nyancat
+man/man1/nyancat.1
diff --git a/misc/nyancat/distinfo b/misc/nyancat/distinfo
new file mode 100644
index 00000000000..fe1dd1e0ad3
--- /dev/null
+++ b/misc/nyancat/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/07/26 18:01:53 kamil Exp $
+
+SHA1 (nyancat-1.5.1.tar.gz) = fd59f53f29a7164246c6fe3c29657b65493b7e0c
+RMD160 (nyancat-1.5.1.tar.gz) = d6cef020e4dd7aeed727ed6d95da29b7abaf7e7f
+SHA512 (nyancat-1.5.1.tar.gz) = 0a45bd0b1a9b9f85650a986c7f9f8120441f6b0bd346281fb44a5470382484738e660dffe17b95088332c50b6aed3feb4b2f949f15f37dd9c1b1885f345e157d
+Size (nyancat-1.5.1.tar.gz) = 15124 bytes
+SHA1 (patch-Makefile) = 81ff0d28036fcd24351dffd68e97610d26b17c01
diff --git a/misc/nyancat/patches/patch-Makefile b/misc/nyancat/patches/patch-Makefile
new file mode 100644
index 00000000000..6650466ff0c
--- /dev/null
+++ b/misc/nyancat/patches/patch-Makefile
@@ -0,0 +1,28 @@
+$NetBSD: patch-Makefile,v 1.1 2016/07/26 18:01:53 kamil Exp $
+
+Adapt install target for pkgsrc.
+
+--- Makefile.orig 2015-11-24 05:05:00.000000000 +0000
++++ Makefile
+@@ -3,6 +3,9 @@ version = 1.5.1
+ tarname = $(package)
+ distdir = $(tarname)-$(version)
+
++DESTDIR?=
++MANDIR?=share/man
++
+ all clean check nyancat:
+ cd src && $(MAKE) $@
+
+@@ -33,7 +36,9 @@ distcheck: $(distdir).tar.gz
+ @echo "*** Package $(distdir).tar.gz is ready for distribution."
+
+ install: all
+- install src/nyancat /usr/bin/${package}
+- gzip -9 -c < nyancat.1 > /usr/share/man/man1/nyancat.1.gz
++ install -d $(DESTDIR)$(PREFIX)/bin/
++ install src/nyancat $(DESTDIR)$(PREFIX)/bin/${package}
++ install -d $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
++ gzip -9 -c < nyancat.1 > $(DESTDIR)$(PREFIX)/$(MANDIR)/man1/nyancat.1.gz
+
+ .PHONY: FORCE all clean check dist distcheck install