Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604506 - app-misc/i2bits: utility to convert hex or dec to binary format
Summary: app-misc/i2bits: utility to convert hex or dec to binary format
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrice Clement (RETIRED)
URL: https://bitbucket.org/PascalRD/i2bits/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2017-01-03 13:01 UTC by Pavel Balaev
Modified: 2017-01-09 22:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (i2bits-0.0.2.ebuild,491 bytes, text/plain)
2017-01-03 13:01 UTC, Pavel Balaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Balaev 2017-01-03 13:01:52 UTC
Created attachment 458522 [details]
ebuild

Hi!
This utility used to convert hex or dec to binary format and vice versa. I cannot find analog of this tool, only perl -e '...'.
So I wrote it by myself and find it useful.

Examples:

hex -> bin
$ i2bits 0xfe
00000000.00000000.00000000.11111110
dec -> bin
$ i2bits 4242
00000000.00000000.00010000.10010010
bin -> hex
$ i2bits -h 11111110
0xfe
bin -> dec
$ i2bits -d 1000010010010
4242

Tool is written in C. I suggest app-misc/i2bits. Ebuild file is attached.

Best regards, Pavel Balaev
Comment 1 Patrice Clement (RETIRED) gentoo-dev 2017-01-09 22:57:10 UTC
commit 2d7c8e3d689bedc8ed6b526e127444ea8938bbac (HEAD -> master, origin/master, origin/HEAD)
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: Mon Jan 9 23:56:15 2017 +0100
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Mon Jan 9 23:56:40 2017 +0100

app-misc/i2bits: new ebuild.

i2bits is an utility to convert hex or dec to binary format.

Gentoo-Bug: https://bugs.gentoo.org/604506

Package-Manager: portage-2.3.0

app-misc/i2bits/Manifest            |  1 +
app-misc/i2bits/i2bits-0.0.2.ebuild | 27 +++++++++++++++++++++++++++
app-misc/i2bits/metadata.xml        | 11 +++++++++++
3 files changed, 39 insertions(+)
create mode 100644 app-misc/i2bits/Manifest
create mode 100644 app-misc/i2bits/i2bits-0.0.2.ebuild
create mode 100644 app-misc/i2bits/metadata.xml

Thanks for your contribution!