games/tetris-cli: import package

Tiny tetris game in a terminal.
This commit is contained in:
pin 2022-06-07 10:17:07 +00:00
parent bb5abbc581
commit 719631ec85
5 changed files with 188 additions and 0 deletions

1
games/tetris-cli/DESCR Normal file
View file

@ -0,0 +1 @@
Tiny tetris game in a terminal.

22
games/tetris-cli/Makefile Normal file
View file

@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.1 2022/06/07 10:17:07 pin Exp $
DISTNAME= tetris-cli-22.66.1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=blueOkiris/}
GITHUB_TAG= 1c9c45e8091484e073f179544798c902b93ef3d5
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/blueOkiris/tetris-cli/
COMMENT= Tetris in a terminal
LICENSE= gnu-gpl-v3
.include "cargo-depends.mk"
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/tetris-cli \
${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"

2
games/tetris-cli/PLIST Normal file
View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2022/06/07 10:17:07 pin Exp $
bin/tetris-cli

View file

@ -0,0 +1,41 @@
# $NetBSD: cargo-depends.mk,v 1.1 2022/06/07 10:17:07 pin Exp $
CARGO_CRATE_DEPENDS+= big_num-0.1.0
CARGO_CRATE_DEPENDS+= bitflags-1.3.2
CARGO_CRATE_DEPENDS+= cfg-if-0.1.10
CARGO_CRATE_DEPENDS+= cfg-if-1.0.0
CARGO_CRATE_DEPENDS+= confy-0.4.0
CARGO_CRATE_DEPENDS+= directories-2.0.2
CARGO_CRATE_DEPENDS+= dirs-sys-0.3.7
CARGO_CRATE_DEPENDS+= fuchsia-cprng-0.1.1
CARGO_CRATE_DEPENDS+= getrandom-0.2.6
CARGO_CRATE_DEPENDS+= lazy_static-1.4.0
CARGO_CRATE_DEPENDS+= libc-0.2.126
CARGO_CRATE_DEPENDS+= libmath-0.2.1
CARGO_CRATE_DEPENDS+= numtoa-0.1.0
CARGO_CRATE_DEPENDS+= ppv-lite86-0.2.16
CARGO_CRATE_DEPENDS+= proc-macro2-1.0.39
CARGO_CRATE_DEPENDS+= quote-1.0.18
CARGO_CRATE_DEPENDS+= rand-0.3.23
CARGO_CRATE_DEPENDS+= rand-0.4.6
CARGO_CRATE_DEPENDS+= rand-0.8.5
CARGO_CRATE_DEPENDS+= rand_chacha-0.3.1
CARGO_CRATE_DEPENDS+= rand_core-0.3.1
CARGO_CRATE_DEPENDS+= rand_core-0.4.2
CARGO_CRATE_DEPENDS+= rand_core-0.6.3
CARGO_CRATE_DEPENDS+= rdrand-0.4.0
CARGO_CRATE_DEPENDS+= redox_syscall-0.2.13
CARGO_CRATE_DEPENDS+= redox_termios-0.1.2
CARGO_CRATE_DEPENDS+= redox_users-0.4.3
CARGO_CRATE_DEPENDS+= serde-1.0.137
CARGO_CRATE_DEPENDS+= serde_derive-1.0.137
CARGO_CRATE_DEPENDS+= syn-1.0.96
CARGO_CRATE_DEPENDS+= termion-1.5.6
CARGO_CRATE_DEPENDS+= thiserror-1.0.31
CARGO_CRATE_DEPENDS+= thiserror-impl-1.0.31
CARGO_CRATE_DEPENDS+= toml-0.5.9
CARGO_CRATE_DEPENDS+= unicode-ident-1.0.0
CARGO_CRATE_DEPENDS+= wasi-0.10.2+wasi-snapshot-preview1
CARGO_CRATE_DEPENDS+= winapi-0.3.9
CARGO_CRATE_DEPENDS+= winapi-i686-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+= winapi-x86_64-pc-windows-gnu-0.4.0

122
games/tetris-cli/distinfo Normal file
View file

@ -0,0 +1,122 @@
$NetBSD: distinfo,v 1.1 2022/06/07 10:17:07 pin Exp $
BLAKE2s (big_num-0.1.0.crate) = 30bec4dd190ccfa4c71df9c2d9f10875a92a2fbc0b67b998d48c009a167274fe
SHA512 (big_num-0.1.0.crate) = 19199292fe11ead6238b0d70c650f55b8caa7f33efd9ef1ab48b34de2c2eb645d93da17542a68bd4f5c4059ed622675816d4de65ebb8f99ecf5a042a30747228
Size (big_num-0.1.0.crate) = 21623 bytes
BLAKE2s (bitflags-1.3.2.crate) = e3a3b45a4403823875a03dbda329ca16068fa8f847cef81987c6b780101f2415
SHA512 (bitflags-1.3.2.crate) = 3c698f757b5cc62f815f9a1cce365c3d2dd88e4db71f331dff8bba86c2865f755b81cb4c9bfc59bd86b7643b0943f9e09a7c4f8ad75eb2ab0e714803d0129f62
Size (bitflags-1.3.2.crate) = 23021 bytes
BLAKE2s (cfg-if-0.1.10.crate) = d12527b913127910287edf00421530370392c52aa1c8b43c447fc49ebd012225
SHA512 (cfg-if-0.1.10.crate) = 9d22616bfb4a75770a828a0a3cddac6787297a5fdc53eb17e25811cc94de717f2de8bd66d53c5d65ba1c83d8892aefee5ae758cf56a1ef0a0c3120f70b244339
Size (cfg-if-0.1.10.crate) = 7933 bytes
BLAKE2s (cfg-if-1.0.0.crate) = fbb02f63b24cc224b045ff2aac3aefd0a77cf7b578df4d5f9da9517a59aaf9bb
SHA512 (cfg-if-1.0.0.crate) = 0fb16a8882fd30e86b62c5143b1cb18ab564e84e75bd1f28fd12f24ffdc4a42e0d2e012a99abb606c12efe3c11061ff5bf8e24ab053e550ae083f7d90f6576ff
Size (cfg-if-1.0.0.crate) = 7934 bytes
BLAKE2s (confy-0.4.0.crate) = ce8e8ef78cbf2d203c18255706873f5c02fdf5b93a04f3c75fba6168c96626a7
SHA512 (confy-0.4.0.crate) = 552eff066f4ae3de4c864c0669133df07a6d1c70b13c5a51863c861cd6fcab88deecdc9d9aef4117a1e3ee33f49a31f70131737dbe881619ca8ce17e6e62b5de
Size (confy-0.4.0.crate) = 9136 bytes
BLAKE2s (directories-2.0.2.crate) = 815192a2904805e85171e7190e387dca3e2248a3d40b6ede58793ea794dd90fc
SHA512 (directories-2.0.2.crate) = d42ec9308b131c33fc779684ce067faae03135ad45064ed653dc1ee68a7f0ffc739ef82c0b54b869a3951d4d58210208975d5e564b7dad8f0570e7ad0cf1cce2
Size (directories-2.0.2.crate) = 15214 bytes
BLAKE2s (dirs-sys-0.3.7.crate) = baa17cbec722cdc7e6369057c06ac108e433fa039f1f41c76612a5ece7f163c8
SHA512 (dirs-sys-0.3.7.crate) = e630964e4c452950a475c10a490b49b2979dd7dfda48172b905cc789153ae4a0ba2d7d91f690705cbfff23737c4b4a339eb0c49e922efd7d68a92fe6368a929f
Size (dirs-sys-0.3.7.crate) = 10597 bytes
BLAKE2s (fuchsia-cprng-0.1.1.crate) = 1bc2fd5a4a533d5b8d16f500852428c4f128cd1b30ef7ec8addfe51d23c68d93
SHA512 (fuchsia-cprng-0.1.1.crate) = ea9f5beb0dfcb023c22cfc2b37ce52dfcf3a2cbbed0f79ffffc332878858386805c65dce8469a431002367562d857a6c064e075688540c27fcb4056a110059d2
Size (fuchsia-cprng-0.1.1.crate) = 2950 bytes
BLAKE2s (getrandom-0.2.6.crate) = 486b40b7949c95dd7fb8871f8948cdcb2708aec245ea20b1dfb9f073a899ae69
SHA512 (getrandom-0.2.6.crate) = 3fca26198bbab1a9e189fb45ad6cc7c7a18969eed6f68ca43407a2d463fe004955b1d199c1794a23a53ba21fedb61eff86d380d2bf49bfdb6c7055c11d543096
Size (getrandom-0.2.6.crate) = 28043 bytes
BLAKE2s (lazy_static-1.4.0.crate) = 0d5f7c2bcfe70610bc27bd6b339ea3e4ca3b7014149714db3a0c199ac6f07cd1
SHA512 (lazy_static-1.4.0.crate) = e124c0521ec7c950f3c4a066821918da7a9c6e711115d98009ae7c351928fdddead852e7596fea5937a9c30e4e4ce8eee7099b20248b5d6e3b2494b6a6d88cb8
Size (lazy_static-1.4.0.crate) = 10443 bytes
BLAKE2s (libc-0.2.126.crate) = e5ad668716e21545426b33f2344c5b94e6b6832ee47688a376e19f32d7568672
SHA512 (libc-0.2.126.crate) = 9bbb17f64a7503819616a71076ebe8ee317daf07b17b9fff783a4459da0439aecee535c09e7185bf148b1993e6fc958d182a490fc9c9a7b9fb635429c491ca44
Size (libc-0.2.126.crate) = 590481 bytes
BLAKE2s (libmath-0.2.1.crate) = 23599d8072602ccb1647b7e735c3b5c82b5d73acf3b28054f19a4e80f1c2a2bc
SHA512 (libmath-0.2.1.crate) = 7091c4778a26aa1a6ae6561961e20370c8cafc01e355e0b8505c39971835207da65cc127843daf933f535ecc03ba30d6472d069f5529dc7b5cc61d022d21f948
Size (libmath-0.2.1.crate) = 6132 bytes
BLAKE2s (numtoa-0.1.0.crate) = 60d075857c572bc8e06538cd0688bb78588cacf0271d1003983b9cc073938680
SHA512 (numtoa-0.1.0.crate) = 41b5c774048592c5867fba217c85d4ece4540e0f3ab0eea7dd1a6af340ba46dae42bbca62ea7fe3afdb258660f39a3d3082264c99dea67d3d1ae178d00a01354
Size (numtoa-0.1.0.crate) = 8999 bytes
BLAKE2s (ppv-lite86-0.2.16.crate) = bcec1a8bf0d1fac112f8d6ab00381ac5358660c24daf104f68ed3a16c3c0878a
SHA512 (ppv-lite86-0.2.16.crate) = 264b916f7d1bb6f1c0c0d3cc45f40b72b638abc7174416b49241c3663fe500409509ef6c8241a24515a21a20288c2ba508035b6b37972e4ae7ad02ad19118b74
Size (ppv-lite86-0.2.16.crate) = 22245 bytes
BLAKE2s (proc-macro2-1.0.39.crate) = d8b1aa859f1d82f35b0e67387af09996118e2983b40ffd5d3cbbcac9a9125a23
SHA512 (proc-macro2-1.0.39.crate) = cd1572831493f83eb51985eed06d8ef5c0ea96ce4231d5ce3be5af9db97e7dd24400332d3b80e0e9c808091fc11889340dd86d8783ff3d9681dc53b876f49a0e
Size (proc-macro2-1.0.39.crate) = 41663 bytes
BLAKE2s (quote-1.0.18.crate) = abd6d6f5c51b7e0f5a04d34954eab1e52c6a2ed8cdaeefd15a783d4fb9ce5c0f
SHA512 (quote-1.0.18.crate) = 3fa537aa96a8970104411471b0e4b7b9339583d552c1d9297737a59ef5301af41da105b92aeace87376e1395e379153f6551bfcfe9c740e6945064426f5f6f84
Size (quote-1.0.18.crate) = 28911 bytes
BLAKE2s (rand-0.3.23.crate) = 7d539407344e653f2fb2c007510e885bcc18b02676dcec82fabe7b9dc8d92dec
SHA512 (rand-0.3.23.crate) = a4f46fb7dfe39677dfc112eeb56fb3c28cec4cdaaf95f336f2a494f0b2b30fdf22ceb9ea956f90e13c7ffe711a68aef9fc1a80d9a911d93221ae263c243fb2c3
Size (rand-0.3.23.crate) = 11318 bytes
BLAKE2s (rand-0.4.6.crate) = b05813bcd03baa0c8fdaa1733b04ca44aa3efdbdb964755d825dfee707c7bb89
SHA512 (rand-0.4.6.crate) = a91c6da7188b426bf9cb832892ee2af87c4cd65fad505c34e9c63343da71efe8c0c67b75c405dca5345317b7940d1d0fc0b20be85afd6b3089203e5698d86f0a
Size (rand-0.4.6.crate) = 76401 bytes
BLAKE2s (rand-0.8.5.crate) = 12fbacd2e6f4743eb56bf132865ad6d2c58d567f1c689fd646b488b863b9eb38
SHA512 (rand-0.8.5.crate) = 8b33a8988906ba5e2057a9a84bdd11f867a5536c22f5056eec59ed4ec4e3a6da2fd773da4c0510d343762e5a4ea0f007db4c4a7cef87a47f90e36c1a84d86fb2
Size (rand-0.8.5.crate) = 87113 bytes
BLAKE2s (rand_chacha-0.3.1.crate) = 610f5bba921c6e9d0527a13b5bf3ac43ffcddbbfc58522a8c086baef788895c4
SHA512 (rand_chacha-0.3.1.crate) = 8198c580b1b9b0429758ffa49cd8138fa3ce724f0dcf73c767ea7e55611d6a2e4c7cad9950896510def500ce4062b594386c947ac3d89425b4e5c9b04d0b8075
Size (rand_chacha-0.3.1.crate) = 15251 bytes
BLAKE2s (rand_core-0.3.1.crate) = 8841b3bc27fad660e621e5eead7a3accbd33c0eda1bacf0afe6d14944fe5299a
SHA512 (rand_core-0.3.1.crate) = 5a7ae601124502bede760fd3179c2b28059ebc3b5983bfcb6b8fa62fb58df95cedc1aeb2734e792d894dfa4620801c13c29702f9cbee64243121575d4b6b9114
Size (rand_core-0.3.1.crate) = 15483 bytes
BLAKE2s (rand_core-0.4.2.crate) = 1d90a57288413d1dfda38432bbc103785e2e006a366de2211018fa28a0ec0a8e
SHA512 (rand_core-0.4.2.crate) = f7ae3b690e2cc1fbf2707ee04b752bc5472433f737ab581f9872f7c5660966bc6be45f0c5d2cd8771105df6d4a9d206c55f5cc6ffc1693b46e1ae03a2883b028
Size (rand_core-0.4.2.crate) = 20243 bytes
BLAKE2s (rand_core-0.6.3.crate) = 227719def6b8444614f9982b4f761c2d654e08f7f5147f7b9ba6a1468bd758f6
SHA512 (rand_core-0.6.3.crate) = 0fc31f96ca8ebba8c179367de01458e909265e1d627ec0c5620be7c8e83d2f9570471d6ec2cb2bc4bc531505b02fc31f1165708cc1357906791c87123b06ee87
Size (rand_core-0.6.3.crate) = 21938 bytes
BLAKE2s (rdrand-0.4.0.crate) = aa9ec3125d9646b82a616e90ab4bc7824baac14a2e827f5221f643a6a5dc0e9d
SHA512 (rdrand-0.4.0.crate) = 6476275d124bee28747191471e8d8f321a3b1c148c1f2a7ece4175f5244a7de90afe5f99d2eba5244d886b92e38232398864bf90e6d434b09494533942c8d894
Size (rdrand-0.4.0.crate) = 6456 bytes
BLAKE2s (redox_syscall-0.2.13.crate) = 89d3bcd8ceda7e2f3397bdeae2cc7118bdf1f2c33c8c07ff5adbea4174e17774
SHA512 (redox_syscall-0.2.13.crate) = 6551f503ba52c4edc0cb4a418ff212188ddc7be80dcb39eaf3bfb82faa9a76cdf359f604d6b32be6c6a335b54180c9399a0e32670333a5a08351957308486100
Size (redox_syscall-0.2.13.crate) = 23759 bytes
BLAKE2s (redox_termios-0.1.2.crate) = ec6a833f1d27407e659190cf298cdaa5587166306554fa07202d5f3f8988a387
SHA512 (redox_termios-0.1.2.crate) = d8624b2c78d02c5d3afcbecea9ad8d218bff508703cb50684d6ae05614a9f41bf2aa8c47440fbb7d964f01eb9085364222833fbf9c45984508e9d755dac563c1
Size (redox_termios-0.1.2.crate) = 3268 bytes
BLAKE2s (redox_users-0.4.3.crate) = fafe5c327db7de7f8b6340807a14fb60bdea5ac74634a60379b62c4793cb447b
SHA512 (redox_users-0.4.3.crate) = 0d3366e23cf93e1b0e025a29025eaebfcd1145bd158e2663b94fd952dc2d8a25566819e3a03c4136ca16a6408d37396e2ead0814c3f0c2bb10334dfd0b838fda
Size (redox_users-0.4.3.crate) = 15353 bytes
BLAKE2s (serde-1.0.137.crate) = 8da0adf36d80458a44dbcd0931620d46f29a72635f6a857c37e365be836df20f
SHA512 (serde-1.0.137.crate) = 28223488e18826f83a7e90029aebc0722e0cd238a2c0c021e5a162d0f5deaa494713fad10f7ac79c8e14de856af931b6d83cb3efcfd0885837fc71e35ee38a2b
Size (serde-1.0.137.crate) = 76182 bytes
BLAKE2s (serde_derive-1.0.137.crate) = b5fc715397167f9064d455df0e52a31d1eaddab010128a78f9d012f1d6f20b5d
SHA512 (serde_derive-1.0.137.crate) = ee47d3bad717ae16118c43e6f308a0e264bde80caab8f8649bef96ed3f7aa0f9b6a479311df22ecdc7bbcdade65f7b03b79100f8b86caf02f9a0bc77ce01035a
Size (serde_derive-1.0.137.crate) = 54831 bytes
BLAKE2s (syn-1.0.96.crate) = 7832c5936ffd4e94e7fc7d5bd9710a4a616a20f2a2f5678782e9c27b55ff6317
SHA512 (syn-1.0.96.crate) = f53b9e97b6b19d18a35d13aaa9c58b8fdd0da96443aaad76ed027e9ac7d438b574ae052b02b9bef410f25fbab851a5af3cc64fafaefffe47932827e6ca02209c
Size (syn-1.0.96.crate) = 236896 bytes
BLAKE2s (termion-1.5.6.crate) = b6d92242706c4be97dcded5161758bc66939a05349c99c250006e940f3c4f626
SHA512 (termion-1.5.6.crate) = 228b6fa7e2f280d6bfc7cef77e7a1d0d8f597178e66af0bde1b1fb6553857b511ba8a6786165815aac6d8a082fd37191f4ea35a47f1e1182f7f2c6086eb34a8c
Size (termion-1.5.6.crate) = 22677 bytes
BLAKE2s (tetris-cli-22.66.1-1c9c45e8091484e073f179544798c902b93ef3d5.tar.gz) = f15378cf4dc4a9204e256f39fb74c7ec73877adb67cdc31ef3fd78d3dd20870b
SHA512 (tetris-cli-22.66.1-1c9c45e8091484e073f179544798c902b93ef3d5.tar.gz) = fec7ee7093f206e51731b19e60199a1626a264c54b8cbdc734fd69f6a8e8b128fc2fd82bd17c9a1ffec1da78c92c8745d1facc7ab3b80fb588cd98ef461467fe
Size (tetris-cli-22.66.1-1c9c45e8091484e073f179544798c902b93ef3d5.tar.gz) = 21542 bytes
BLAKE2s (thiserror-1.0.31.crate) = 958b3137421029b2951de896df63aecbcbe6c6491a7e299ea19ff0111584b5f9
SHA512 (thiserror-1.0.31.crate) = 0e11aba54d38fc164c65b9357d1738ca96af2bc7bc2bcacfc4efc6f5c26a594effbb5e47aef46772ccafbe88871825a517920030572b79fae3d305550bfa6431
Size (thiserror-1.0.31.crate) = 18013 bytes
BLAKE2s (thiserror-impl-1.0.31.crate) = c5c28d6bb08a8e2bbb851b88791877e11d1912b0ae51ea255f4fbb06fae4869d
SHA512 (thiserror-impl-1.0.31.crate) = a265be50ae209775abb812f0e9b8c5af7a639514149d9f50f4a95bcedabd3666076bf7764351ea6f1836eb8a0e3c67c0b76abd26b27b0a853132fef011543e1e
Size (thiserror-impl-1.0.31.crate) = 15283 bytes
BLAKE2s (toml-0.5.9.crate) = 47ed3419b2f8ce5103881721e73fac378a7efd6ace9098234a02f518fabdf35e
SHA512 (toml-0.5.9.crate) = 7151bcafbe2bdb1d2bb91562daebd357c884819af047843f1b4a56bc3812d4153eaf70683d0f9bff51bd1048700920322d64d41da13ebb4cbf34f0f7822d7ce7
Size (toml-0.5.9.crate) = 55667 bytes
BLAKE2s (unicode-ident-1.0.0.crate) = 9ce51d7ca1d6aa69db417316fa73574c417fe43e9f002277f7a5731bc179fd6f
SHA512 (unicode-ident-1.0.0.crate) = ccdad29fc63f71c507cdf276b02a5bb7fad44dffa123bf04d5b1495eb9c26bd7ec42ad6e11717eb10dc6499693047952c6b766c40d7b0696bd011779649d5fc9
Size (unicode-ident-1.0.0.crate) = 34224 bytes
BLAKE2s (wasi-0.10.2+wasi-snapshot-preview1.crate) = a99255257c1a9724a1e5a6c5bde6fd95cc850c6bcd881d2030755acc62bb8c23
SHA512 (wasi-0.10.2+wasi-snapshot-preview1.crate) = 06977a294d76369a3867c45abdd8a87ea5c84e5a3681075ba0d14af1aee3114ff24495c7e7f7fe1e6e42230e65fba0e062898e69bc89e0209af62c2d14094ec7
Size (wasi-0.10.2+wasi-snapshot-preview1.crate) = 27505 bytes
BLAKE2s (winapi-0.3.9.crate) = 295083bd8c53c7decc4187da324a1284ad05cbccc9198d31facb6a42e34867ce
SHA512 (winapi-0.3.9.crate) = ff8b7b78065f3d8999ec03c725a0460ebc059771bf071c7a3df3f0ecd733edf3b0a2450024d4e24e1aedddaecd9038ce1376c0d8bbf45132068cf45cf4a53a97
Size (winapi-0.3.9.crate) = 1200382 bytes
BLAKE2s (winapi-i686-pc-windows-gnu-0.4.0.crate) = 3ef20321fea464773f9e73ac16ada3a0e8101a8c3c0ebab763049f2ab269eb1a
SHA512 (winapi-i686-pc-windows-gnu-0.4.0.crate) = a672ccefd0730a8166fef1d4e39f9034d9ae426a3f5e28d1f4169fa5c5790767693f281d890e7804773b34acdb0ae1febac33cde8c50c0044a5a6152c7209ec2
Size (winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815 bytes
BLAKE2s (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 85ecec73b9874f5f443e29d99f93a11889e74ddf5a4bfeb929e2355a7cee32f1
SHA512 (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513
Size (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998 bytes