FreeBSD Bugzilla – Attachment 174392 Details for
Bug 212278
[NEW PORT] games/bunnysay: Bunny Sign for terminals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Shell archive of new port - bunnysay
bunnysay.shar (text/plain), 3.78 KB, created by
Ben Lavery-Griffiths
on 2016-09-05 19:15:31 UTC
(
hide
)
Description:
Shell archive of new port - bunnysay
Filename:
MIME Type:
Creator:
Ben Lavery-Griffiths
Created:
2016-09-05 19:15:31 UTC
Size:
3.78 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># bunnysay ># bunnysay/distinfo ># bunnysay/Makefile ># bunnysay/pkg-descr ># bunnysay/files ># bunnysay/files/patch-src_BunnySay.h ># bunnysay/files/patch-src_BunnySay.cpp ># >echo c - bunnysay >mkdir -p bunnysay > /dev/null 2>&1 >echo x - bunnysay/distinfo >sed 's/^X//' >bunnysay/distinfo << '95ed8524420ed956da75e8525b87a85f' >XTIMESTAMP = 1472632793 >XSHA256 (bunnysay/co60ca-bunnysay-v1.0_GH0.tar.gz) = 81fe0b57fb307d6e6ae8ab660f0f7720a16f83b271c477812af84a3c23081e77 >XSIZE (bunnysay/co60ca-bunnysay-v1.0_GH0.tar.gz) = 14703 >95ed8524420ed956da75e8525b87a85f >echo x - bunnysay/Makefile >sed 's/^X//' >bunnysay/Makefile << '4ffad5b68667b84c1abd34de016ff5ec' >X# $FreeBSD$ >X >XPORTNAME= bunnysay >XPORTVERSION= 1.0 >XDISTVERSIONPREFIX= v >XCATEGORIES= games >XDIST_SUBDIR= ${PORTNAME} >X >XMAINTAINER= ben.lavery@hashbang0.com >XCOMMENT= Bunny Sign for terminals >X >XLICENSE= GPLv3 >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XBUILD_DEPENDS= cmake>=3.6.1:devel/cmake >X >XUSES= cmake dos2unix compiler:c++11-lang >XDOS2UNIX_FILES= src/BunnySay.cpp src/BunnySay.h >X >XUSE_GITHUB= yes >XGH_ACCOUNT= co60ca >XGH_PROJECT= bunnysay >X >XPLIST_FILES= bin/bunnysay >X >X.include <bsd.port.pre.mk> >X >X.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 >XBUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++ >XCFLAGS+= -isystem${LOCALBASE}/include/c++/v1 >XCXXFLAGS+= -isystem${LOCALBASE}/include/c++/v1 >XLDFLAGS+= -L${LOCALBASE}/lib/c++ >X.endif >X >Xdo-build: >X @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} Makefile ${_MAKE_JOBS} ${MAKE_ARGS} >X >Xdo-install: >X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME} >X >X.include <bsd.port.post.mk> >4ffad5b68667b84c1abd34de016ff5ec >echo x - bunnysay/pkg-descr >sed 's/^X//' >bunnysay/pkg-descr << '167494a9cf671370407068044f7f2702' >Xbunnysay is an ASCII bunny that holds up a sign with a message that is piped in. >XIt operates similarly to cowsay and figlet. >X >XWWW: https://github.com/co60ca/bunnysay >167494a9cf671370407068044f7f2702 >echo c - bunnysay/files >mkdir -p bunnysay/files > /dev/null 2>&1 >echo x - bunnysay/files/patch-src_BunnySay.h >sed 's/^X//' >bunnysay/files/patch-src_BunnySay.h << '324fa9a2f38bb67204ce368fc352f39a' >X--- src/BunnySay.h.orig 2016-08-31 12:47:32 UTC >X+++ src/BunnySay.h >X@@ -30,6 +30,7 @@ >X #include <stack> >X #include <vector> >X #include <sstream> >X+#include <codecvt> >X namespace bunnysay { >X >X class BunnySay { >324fa9a2f38bb67204ce368fc352f39a >echo x - bunnysay/files/patch-src_BunnySay.cpp >sed 's/^X//' >bunnysay/files/patch-src_BunnySay.cpp << 'f33929d4d56502f6528bf9873b57a22c' >X--- src/BunnySay.cpp.orig 2016-08-31 12:47:32 UTC >X+++ src/BunnySay.cpp >X@@ -34,8 +34,9 @@ L"/ ã ã¥"; >X // Writes wstring input to the stdout after chunking it and converting >X // all characters to their wide counterparts in unicode >X void BunnySay::writeBunnySay(std::wstring input) { >X+ std::wstring_convert<std::codecvt_utf8<wchar_t>,wchar_t> convert; >X input = replaceString(input); >X- std::wcout << bunny; >X+ std::cout << convert.to_bytes(bunny); >X bool left = true; >X std::vector<std::wstring> vs; >X vs = splitAtWidth(input + L"ã", width); >X@@ -54,9 +55,9 @@ void BunnySay::writeBunnySay(std::wstrin >X >X // Add the pipes >X curstring = L"ï½" + curstring + L"ï½\n"; >X- std::wcout << curstring; >X+ std::cout << convert.to_bytes(curstring); >X } >X- std::wcout << bunny2 << std::endl; >X+ std::cout << convert.to_bytes(bunny2) << std::endl; >X } >X // Helper function to split a sentance delimited with fixed-width spaces >X // into strings 10 chars or less >f33929d4d56502f6528bf9873b57a22c >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 212278
:
174243
|
174250
|
174324
|
174386
|
174392
|
174480