nyancat [recipe] (#3434)

This commit is contained in:
Bach Nguyen
2019-08-10 10:49:48 -05:00
committed by waddlesplash
parent da2e32fd3e
commit 5759ec7e66
2 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
Copyright (c) 2011-2018 K. Lange. All rights reserved.
Developed by: K. Lange
http://github.com/klange/nyancat
http://nyancat.dakko.us
40-column support by: Peter Hazenberg
http://github.com/Peetz0r/nyancat
http://peter.haas-en-berg.nl
Build tools unified by: Aaron Peschel
https://github.com/apeschel
For a complete listing of contributors, please see the git commit history.
This is a simple telnet server / standalone application which renders the
classic Nyan Cat (or "poptart cat") to your terminal.
It makes use of various ANSI escape sequences to render color, or in the case
of a VT220, simply dumps text to the screen.
For more information, please see:
http://nyancat.dakko.us
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal with the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimers.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimers in the
documentation and/or other materials provided with the distribution.
3. Neither the names of the Association for Computing Machinery, K.
Lange, nor the names of its contributors may be used to endorse
or promote products derived from ths Software without specific prior
written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
WITH THE SOFTWARE.

View File

@@ -0,0 +1,50 @@
SUMMARY="Your own Nyancat in your terminal"
DESCRIPTION="Nyancat is a CLI application that displays a poptart cat \
in your terminal. You can simply run the binary standalone or use the \
telnet server version of the CLI by adding the \"-t\" option."
HOMEPAGE="https://nyancat.dakko.us/"
COPYRIGHT="2011-2018 Kevin Lange"
LICENSE="UIUC"
REVISION="1"
SOURCE_URI="https://github.com/klange/nyancat/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="88cdcaa9c7134503dd0364a97fa860da3381a09cb555c3aae9918360827c2032"
SOURCE_FILENAME="nyancat-$portVersion.tar.gz"
SOURCE_DIR="nyancat-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
nyancat$secondaryArchSuffix = $portVersion
cmd:nyancat$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
make
}
INSTALL()
{
install -m 755 -d "$commandBinDir" "$manDir"/man1
install -m 755 -t "$commandBinDir" src/nyancat
install -m 644 -t "$manDir"/man1 nyancat.1
}