-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1252 from vaxxabait/feature/gentoo_overlay
Update Gentoo ebuild
- Loading branch information
Showing
9 changed files
with
298 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
qucs_s | ||
=============== | ||
|
||
Gentoo overlay with ebuild for Qucs-S package | ||
|
||
To use, follow https://wiki.gentoo.org/wiki/Creating_an_ebuild_repository | ||
and copy content of this folder to new repository | ||
|
||
=============== | ||
TODO list: | ||
|
||
to Science project (sci-electronics) | ||
|
||
docs examples test USE flags ? | ||
lib as separate package ? with meta like kicad-meta ? | ||
qucsatorrf - separate ebuild ? | ||
|
||
qucs - qucsator ebuild | ||
gnucsator - gnucap based - ebuild | ||
|
||
openvaf - ebuild ? | ||
|
||
xyce ebuild ? | ||
spiceopus ebuild ? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
masters = gentoo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
qucs_s |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DIST qucs-s-24.4.1.tar.gz 4659723 BLAKE2B aeb2b3613f8ea2aeaeabfe3aa18fc0aca70bd7acecd862aac81cbc53e5c5ef671db7c76ebcaaf9ec4e15a2d1bf2fbc373f18d96e67fd228e683a412b87102f5d SHA512 ef96395c9932e4f90f718d1515a1f8550650005c5ba263580d911ae827bf22c63c7b8d6bac0f46f35bb4946ee17f587f424c60d0bf0fb53602383b8d375a3e19 | ||
DIST qucs-s-25.1.0.tar.gz 4690986 BLAKE2B 285d475bd61e1fb807d8d25edb9b437fb8aa43c590257ce02bec61ac0cd09c3c62b116262372113bf1d319f68837a17bbcb2b5c528a0d561f5ffb5c7b10ab08c SHA512 3ce980491685974dae9cea5d2758d6b227dde0e427152001520f1b46bcd0a4841c27ddd1256a9f3a1bb2742f039271bf0f45d1ab8986864f2168af17f414a815 | ||
EBUILD qucs_s-24.4.1.ebuild 1341 BLAKE2B 60c34a9e9448d1c62c42809621ab238398b8cd3a986999d36082ff286a1d1cc6add75e83b85d2d75dc2294c8804d1c734bec474bb5f11fe8c3086f30cd9dd8e3 SHA512 43cf52a729500785db06aa645089e01fc8f8cdde2794139740e9312da8e5b76cdb17551485c7294f0b94e5bb443c61778b15b96878289360eeb9d4ec831b5a9f | ||
EBUILD qucs_s-25.1.0.ebuild 1325 BLAKE2B 9469756e62eeb2a97736d19648223d6ad73dd638f4352bf61564a5afcd34be9e96b311c56c57b687ec7619a6298ac2123307297dc7db36239b7e2b31f3c92c4d SHA512 e0c0bbee39f6085c2f6f7a6451ae821c5bd2b06befb3407085124ff8196fbe05375720ddab882f8c923abde4f696414b98e147c91f87adfbdb23af80c4896907 | ||
EBUILD qucs_s-9999.ebuild 1325 BLAKE2B 9469756e62eeb2a97736d19648223d6ad73dd638f4352bf61564a5afcd34be9e96b311c56c57b687ec7619a6298ac2123307297dc7db36239b7e2b31f3c92c4d SHA512 e0c0bbee39f6085c2f6f7a6451ae821c5bd2b06befb3407085124ff8196fbe05375720ddab882f8c923abde4f696414b98e147c91f87adfbdb23af80c4896907 | ||
MISC metadata.xml 5020 BLAKE2B e4a4aea13d1b47cfc598fb9849c5e8adeb6f0b420bc006fed43ff8ff8294de0aabadfb2c8490b5cb9c9ee4b3bf8733f27f25e0a8249c09965f3d3b3573ae9205 SHA512 bb4c2d6f2e7b65a65e491883d48239ea0567a0dcd88c23e86af8ce635be6216ceeb9401c51cd8acc2bbcdbf8937821925242b9fe34cd92157282a12733084ae0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
<name>Vadim Kuznetsov</name> | ||
<email>ra3xdh@gmail.com</email> | ||
</maintainer> | ||
<maintainer type="project"> | ||
<name>Proxy Maintainers</name> | ||
<email>proxy-maint@gentoo.org</email> | ||
</maintainer> | ||
<longdescription lang="en"> | ||
Qucs-S is a circuit simulation program based on Qucs circuit simulator. The "S" letter indicates SPICE. | ||
The purpose of the Qucs-S project is to use free circuit simulation kernels (Ngspice, Qucsator, Xyce) | ||
with the unified GUI based on Qt6 toolkit. It merges the power of SPICE and the simplicity of the Qucs GUI. | ||
Qucs-S is not a simulator by itself, but it requires to use an external simulation backend with it. | ||
Qucs-S allows to use the following open-source simulation kernels: | ||
|
||
<pkg>sci-electronics/ngspice</pkg> is recommended to use. | ||
Ngspice is powerful mixed-level/mixed-signal circuit simulator. The most of industrial SPICE models | ||
are compatible with Ngspice. It has an excellent simulation performance and powerful postprocessor. | ||
Google Skywater 130nm PDK supports Ngspice. | ||
|
||
XYCE is a new SPICE-compatible circuit simulator written by Sandia from the scratch. It supports | ||
basic SPICE simulation types and has an advanced RF simulation features such as Harmonic balance simulation. | ||
|
||
QucsatorRF for RF and microwave circuits design. It provides advanced models for such devices microstrip | ||
lines and waveguides. QucsatorRF is not SPICE compatible. The general purpose circuits simulation is | ||
also possible but not recommended. | ||
|
||
SpiceOpus is developed by the Faculty of Electrical Engineering of the Ljubljana University. It based on | ||
the SPICE-3f5 code | ||
</longdescription> | ||
<longdescription lang="ru"> | ||
Qucs-S - это кроссплатформенная программа с открытым исходным кодом для аналогового моделирования | ||
электронных схем с графическим интерфейсом, написанная на С++ на базе библиотек Qt6. | ||
|
||
Qucs-S основан как форк проекта Qucs, а буква "S" обозначает SPICE - стандарт де-факто в аналоговом | ||
моделировании. Он объединяет мощь разных SPICE-симуляторов с универсальным и простым в использовании | ||
интерфейсом Qucs. | ||
|
||
Qucs-S не моделирует схему сам по себе, а использует внешний симулятор: | ||
|
||
<pkg>sci-electronics/ngspice</pkg> - рекомендуется как наиболее распространённый симулятор | ||
с открытым исходным кодом. Большая часть доступных SPICE-моделей компонентов совместима с Ngspice. | ||
У него отличная скорость работы, а также мощный и гибкий постпроцессор обработки результатов. | ||
Как один из примеров, Google Skywater 130nm PDK, библиотека компонентов для разработки микросхем | ||
от Google, включает модели для Ngspice. | ||
|
||
QucsatorRF - предназначен для радиочастотного моделирования. Несовместим с SPICE-моделями, зато имеет | ||
продвинутые модели для микрополосковых линий и волноводов. Также способен моделировать обычные схемы, | ||
но это не рекомендуется. | ||
Не требует отдельной установки, поскольку входит в комплект Qucs-S. | ||
|
||
XYCE - новый SPICE-симулятор, написаный с руля, от Sandia National Laboratories. Поддерживает | ||
как стандартные типы моделей SPICE, так и продвинутые функции для радиочастотного моделирования, | ||
к примеру метод гармонического баланса. | ||
|
||
SpiceOpus - бесплатный симулятор с закрытым исходным кодом от инженерного факультета университета Любляны. | ||
Основан на оигинальном коде SPICE-3f5 с различными улучшениями и расширениями. | ||
</longdescription> | ||
<upstream> | ||
<maintainer status="active"> | ||
<name>Vadim Kuznetsov</name> | ||
<email>ra3xdh@gmail.com</email> | ||
</maintainer> | ||
<changelog>https://github.com/ra3xdh/qucs_s/releases</changelog> | ||
<doc lang="en">https://ra3xdh.github.io/pdf/qucs_s_tutorial.pdf</doc> | ||
<bugs-to>mailto:ra3xdh@gmail.com</bugs-to> | ||
<remote-id type="github">ra3xdh/qucs_s</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
65 changes: 65 additions & 0 deletions
65
contrib/gentoo/sci-electronics/qucs_s/qucs_s-24.4.1.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Copyright 1999-2025 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake-multilib optfeature xdg | ||
|
||
DESCRIPTION="Quite universal circuit simulator with SPICE" | ||
HOMEPAGE="https://github.com/ra3xdh/qucs_s" | ||
|
||
MY_PN="qucs-s" | ||
MY_P=${MY_PN}-${PV} | ||
|
||
if [[ ${PV} == 9999 ]]; then | ||
EGIT_REPO_URI="https://github.com/ra3xdh/${PN}.git" | ||
inherit git-r3 | ||
else | ||
SRC_URI="https://github.com/ra3xdh/${PN}/releases/download/${PV}/${MY_P}.tar.gz" | ||
KEYWORDS="~amd64 ~x86" | ||
fi | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
DEPEND=" | ||
dev-qt/qtbase:6[gui,widgets] | ||
dev-qt/qtsvg:6 | ||
" | ||
RDEPEND="${DEPEND}" | ||
BDEPEND=" | ||
dev-qt/qttools:6[linguist] | ||
sys-devel/flex | ||
sys-devel/bison | ||
dev-util/gperf | ||
app-text/dos2unix | ||
" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
DOCS="${S}/AUTHORS ${S}/ChangeLog ${S}/debian/changelog ${S}/CONTRIBUTING.md ${S}/NEWS.md ${S}/NEWS_qucs ${S}/README.md ${S}/README_qucs ${S}/THANKS ${S}/TODO" | ||
|
||
multilib_src_configure() { | ||
local mycmakeargs=( | ||
-DWITH_QT6=ON | ||
-DCMAKE_INSTALL_PREFIX=/usr | ||
) | ||
cmake_src_configure | ||
} | ||
|
||
pkg_preinst() { | ||
xdg_pkg_preinst | ||
} | ||
|
||
pkg_postinst() { | ||
optfeature "Result postprocessing in Octave" sci-mathematics/octave | ||
|
||
optfeature_header "Install optonal simulator backends:" | ||
optfeature "Ngspice" sci-electronics/ngspice | ||
|
||
xdg_pkg_postinst | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_pkg_postrm | ||
} |
64 changes: 64 additions & 0 deletions
64
contrib/gentoo/sci-electronics/qucs_s/qucs_s-25.1.0.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 1999-2025 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake-multilib optfeature xdg | ||
|
||
DESCRIPTION="Quite universal circuit simulator with SPICE" | ||
HOMEPAGE="https://github.com/ra3xdh/qucs_s" | ||
|
||
MY_PN="qucs-s" | ||
MY_P=${MY_PN}-${PV} | ||
|
||
if [[ ${PV} == 9999 ]]; then | ||
EGIT_REPO_URI="https://github.com/ra3xdh/${PN}.git" | ||
inherit git-r3 | ||
else | ||
SRC_URI="https://github.com/ra3xdh/${PN}/releases/download/${PV}/${MY_P}.tar.gz" | ||
KEYWORDS="~amd64 ~x86" | ||
fi | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
DEPEND=" | ||
dev-qt/qtbase:6[gui,widgets] | ||
dev-qt/qtsvg:6 | ||
" | ||
RDEPEND="${DEPEND}" | ||
BDEPEND=" | ||
dev-qt/qttools:6[linguist] | ||
sys-devel/flex | ||
sys-devel/bison | ||
dev-util/gperf | ||
app-text/dos2unix | ||
" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
DOCS="${S}/AUTHORS ${S}/ChangeLog ${S}/debian/changelog ${S}/CONTRIBUTING.md ${S}/NEWS.md ${S}/NEWS_qucs ${S}/README.md ${S}/README_qucs ${S}/THANKS ${S}/TODO" | ||
|
||
multilib_src_configure() { | ||
local mycmakeargs=( | ||
-DCMAKE_INSTALL_PREFIX=/usr | ||
) | ||
cmake_src_configure | ||
} | ||
|
||
pkg_preinst() { | ||
xdg_pkg_preinst | ||
} | ||
|
||
pkg_postinst() { | ||
optfeature "Result postprocessing in Octave" sci-mathematics/octave | ||
|
||
optfeature_header "Install optonal simulator backends:" | ||
optfeature "Ngspice" sci-electronics/ngspice | ||
|
||
xdg_pkg_postinst | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_pkg_postrm | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 1999-2025 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake-multilib optfeature xdg | ||
|
||
DESCRIPTION="Quite universal circuit simulator with SPICE" | ||
HOMEPAGE="https://github.com/ra3xdh/qucs_s" | ||
|
||
MY_PN="qucs-s" | ||
MY_P=${MY_PN}-${PV} | ||
|
||
if [[ ${PV} == 9999 ]]; then | ||
EGIT_REPO_URI="https://github.com/ra3xdh/${PN}.git" | ||
inherit git-r3 | ||
else | ||
SRC_URI="https://github.com/ra3xdh/${PN}/releases/download/${PV}/${MY_P}.tar.gz" | ||
KEYWORDS="~amd64 ~x86" | ||
fi | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
DEPEND=" | ||
dev-qt/qtbase:6[gui,widgets] | ||
dev-qt/qtsvg:6 | ||
" | ||
RDEPEND="${DEPEND}" | ||
BDEPEND=" | ||
dev-qt/qttools:6[linguist] | ||
sys-devel/flex | ||
sys-devel/bison | ||
dev-util/gperf | ||
app-text/dos2unix | ||
" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
DOCS="${S}/AUTHORS ${S}/ChangeLog ${S}/debian/changelog ${S}/CONTRIBUTING.md ${S}/NEWS.md ${S}/NEWS_qucs ${S}/README.md ${S}/README_qucs ${S}/THANKS ${S}/TODO" | ||
|
||
multilib_src_configure() { | ||
local mycmakeargs=( | ||
-DCMAKE_INSTALL_PREFIX=/usr | ||
) | ||
cmake_src_configure | ||
} | ||
|
||
pkg_preinst() { | ||
xdg_pkg_preinst | ||
} | ||
|
||
pkg_postinst() { | ||
optfeature "Result postprocessing in Octave" sci-mathematics/octave | ||
|
||
optfeature_header "Install optonal simulator backends:" | ||
optfeature "Ngspice" sci-electronics/ngspice | ||
|
||
xdg_pkg_postinst | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_pkg_postrm | ||
} |