Skip to content

Commit

Permalink
sci-electronics/vcd: new package, add 221217
Browse files Browse the repository at this point in the history
Signed-off-by: Huang Rui <[email protected]>
  • Loading branch information
vowstar committed Aug 8, 2024
1 parent 6541e98 commit 9291c43
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions sci-electronics/vcd/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST vcd-221217.tar.gz 114311 BLAKE2B 1376b09a4f03323c7b861b2e470618fc4da699a09111a958789c7614c893d6878c3d9477256bb1ade9b36224ae36a662f6badf332d217bafe0d529e9b1bda0d8 SHA512 69accc131047d9d37e201c26cf001b0bd74c4a93a1ddba3bf1e5805a3926942b360bbbf3303b49125ecab6395a30083620da2099b7d2a63c7dbb4824177a9bcc
30 changes: 30 additions & 0 deletions sci-electronics/vcd/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Huang Rui</name>
</maintainer>
<upstream>
<remote-id type="github">yne/vcd</remote-id>
</upstream>
<longdescription lang="en">
The VCD (Value Change Dump) project on GitHub is a command line viewer
for VCD files, compatible with Windows, Linux, and MacOS.
It enables users to view and analyze waveform data from digital
simulations. The tool provides customization options for waveform
display and supports various output formats including YAML.
Installation is available via prebuilt binaries, source compilation, or
package managers.
The project is actively maintained and includes sample files and
detailed usage instructions. The repository is licensed under MIT and
supports CLI operations for efficient waveform analysis.
</longdescription>
<longdescription lang="zh">
VCD (Value Change Dump) 项目是一个命令行查看器,适用于 Windows、Linux 和
MacOS。它允许用户查看和分析数字仿真的波形数据。该工具提供波形显示的
自定义选项,并支持 YAML 等多种输出格式。用户可以通过预构建的二进制文件、
源代码编译或包管理器进行安装。该项目积极维护,包含示例文件和详细的使用
说明。该仓库采用 MIT 许可证,支持 CLI 操作以提高波形分析的效率。
</longdescription>
</pkgmetadata>
19 changes: 19 additions & 0 deletions sci-electronics/vcd/vcd-221217.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="VCD file (Value Change Dump) command line viewer"
HOMEPAGE="https://github.com/yne/vcd"

if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/yne/${PN}.git"
else
SRC_URI="https://github.com/yne/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"

This comment has been minimized.

Copy link
@stkw0

stkw0 Aug 8, 2024

Contributor

Did you test it in all this architectures? Only the ones you have tested should be added (even if upstream claims to support them)

This comment has been minimized.

Copy link
@vowstar

vowstar Aug 9, 2024

Author Contributor

Thank you for your kind reminder.

I have collected Lichee Pi 4A, LS3A, and Raspberry Pi 4 development boards because of my hobbies. I tested riscv64, loong(loongarch64), arm64(aarch64) on them, and then tested i386 in the qemu environment. It looks normal during the compilation phase, and simple demos(https://github.com/yne/vcd/tree/master/samples) can be eaten correctly during the running phase. However, I have not tested more complex situations.

This comment has been minimized.

Copy link
@stkw0

stkw0 Aug 9, 2024

Contributor

Sorry, it seemed unusual. Thank you very much :)

S="${WORKDIR}/${P}"
fi

LICENSE="MIT"
SLOT="0"

2 comments on commit 9291c43

@antecrescent
Copy link
Contributor

@antecrescent antecrescent commented on 9291c43 Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • src_compile needs tc-export CC and export CFLAGS to avoid https://bugs.gentoo.org/243502 and to make the user's CFLAGS available to make.
  • DESTDIR="${ED}"

@vowstar
Copy link
Contributor Author

@vowstar vowstar commented on 9291c43 Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • DESTDIR="${ED}"

Thanks for the review, fixed in b1c2517

Please sign in to comment.