Skip to content

dev-util/gowin-eda: add Gowin EDA FPGA design suite#10478

Open
semes1 wants to merge 1 commit into
gentoo-zh:masterfrom
semes1:master
Open

dev-util/gowin-eda: add Gowin EDA FPGA design suite#10478
semes1 wants to merge 1 commit into
gentoo-zh:masterfrom
semes1:master

Conversation

@semes1

@semes1 semes1 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
  • Add gowin-eda (standard version) 1.9.12.02
  • Add gowin-eda-edu (education version) 1.9.11.03
  • Both support IDE and Programmer via USE flags
  • Education version uses *_edu suffixed commands to avoid conflicts

- Add gowin-eda (standard version) 1.9.12.02
- Add gowin-eda-edu (education version) 1.9.11.03
- Both support IDE and Programmer via USE flags
- Education version uses *_edu suffixed commands to avoid conflicts

@peeweep peeweep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

这两个 ebuild 是 AI 生成的吗,用了很多少见的写法

  1. 可以根据 CI 的报错补充一下依赖
  2. 可否用在线或者 tarball里边提供的 png ,不单独放在 files 下边

Comment on lines +49 to +52
find "${D}${dest}" -type f -name "*.so" -exec chmod 755 {} \;
find "${D}${dest}/bin" -type f -executable -exec chmod 755 {} \;
find "${D}${dest}/bin" -type f ! -executable -exec chmod 644 {} \;
chmod 666 "${D}${dest}/bin/gwlicense.ini" 2>/dev/null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

标准的做法是使用 fperms 设置权限,并且要对每一个文件单独设置权限而不是 find -type f

einfo "Installing IDE (Education version)..."
local dest="/opt/${PN}-ide"
dodir "${dest}"
cp -a ide/* "${D}${dest}/" || die

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

insinto + doins -r

Comment on lines +62 to +73
exeinto /usr/bin
cat > "${T}/gw_edu_ide" <<-EOF
#!/bin/sh
export LD_LIBRARY_PATH=${dest}/lib
exec ${dest}/bin/gw_ide "\$@"
EOF
cat > "${T}/gw_edu_sh" <<-EOF
#!/bin/sh
export LD_LIBRARY_PATH=${dest}/lib
exec ${dest}/bin/gw_sh "\$@"
EOF
doexe "${T}/gw_edu_ide" "${T}/gw_edu_sh"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

exeinto doexe 可以用 dobin 替代

Comment on lines +8 to +11
MY_PV="1.9.12.03"
MY_PN="Gowin_V${MY_PV}_linux"

SRC_URI="http://cdn.gowinsemi.com.cn/${MY_PN}.tar.gz"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
MY_PV="1.9.12.03"
MY_PN="Gowin_V${MY_PV}_linux"
SRC_URI="http://cdn.gowinsemi.com.cn/${MY_PN}.tar.gz"
SRC_URI="http://cdn.gowinsemi.com.cn/Gowin_V${PV}_linux.tar.gz"

Comment on lines +8 to +11
MY_PV="1.9.11.03"
MY_PN="Gowin_V${MY_PV}_Education_Linux"

SRC_URI="http://cdn.gowinsemi.com.cn/${MY_PN}.tar.gz"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
MY_PV="1.9.11.03"
MY_PN="Gowin_V${MY_PV}_Education_Linux"
SRC_URI="http://cdn.gowinsemi.com.cn/${MY_PN}.tar.gz"
SRC_URI="http://cdn.gowinsemi.com.cn/Gowin_V${PV}_Education_Linux.tar.gz"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants