Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

338.5. horizon-eda-2.7.2

Schematic capture and PCB layout around a pool of parts with unique identities

Version 2.7.2, release 2
Shelf eda — Electronics: schematic and PCB, circuit simulation, antenna modelling, FPGA synthesis and simulation, logic analysers and bench instruments
Phase 44_apps (Applications), 72 of 422 in build order
Licence GPL-3.0-only
Homepage https://horizon-eda.org/
Build time 31.0 SBU
Installed size 50.2 MiB in 12 files
Recipe ports/core/eda/horizon-eda/kpkgbuild

About

Horizon EDA designs printed circuit boards: schematic capture, board layout, and Gerber, ODB++, PDF and STEP export. Its parts live in a pool in which every unit, symbol, package and part has a unique identity, so a project refers to a part by that identity rather than by a library path. horizon-eda is the pool and project manager that opens the editors; horizon-imp is the editor program itself. Its 3D board view reads STEP models through opencascade.

Sources

Dependencies

Depends on: meson, ninja, cmake, pkgconf, python3, gtk3, gtkmm3, glibmm2.66, cairomm1.14, libpng, libepoxy, sqlite, util-linux, libgit2, zeromq, cppzmq, curl, librsvg, libarchive, opencascade, libspnav, glm, podofo.

Required by: no port names it.

Patches

build.sh applies these; kpkg applies nothing by itself.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install horizon-eda'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/eda/horizon-eda.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/eda/horizon-eda
echo '6b605f7e4c46d894a64997e0f60eba937e7d68d908b4d715cd2dde3364bd79a2  horizon-eda-2.7.2.tar.gz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/horizon-eda
SRC=$SRC_ROOT/horizon-eda-2.7.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf horizon-eda-2.7.2.tar.gz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 -i "$PORT_SRC/podofo-1.patch"
patch -p1 -i "$PORT_SRC/app-id.patch"

meson setup build --prefix=/usr --sysconfdir=/etc --libdir=lib \
	--buildtype=release
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

cat > "$PKG/usr/share/applications/org.horizon_eda.HorizonEDA.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Horizon EDA
GenericName=PCB Design
Comment=Schematic capture and PCB layout around a pool of parts
Exec=horizon-eda %U
Icon=org.horizon_eda.HorizonEDA
Terminal=false
Categories=GTK;Development;Engineering;Electronics;
Keywords=pcb;schematic;eda;electronics;layout;gerber;
StartupWMClass=org.horizon_eda.HorizonEDA
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.horizon_eda.HorizonEDA.desktop"

test -x "$PKG/usr/bin/horizon-eda"
test -x "$PKG/usr/bin/horizon-imp"
test -f "$PKG/usr/share/icons/hicolor/64x64/apps/org.horizon_eda.HorizonEDA.png"
grep -q 'HAVE_SPNAV' build/compile_commands.json

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/horizon-eda, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf horizon-eda-2.7.2-2.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/horizon-eda, and runs the triggers its paths call for.

Contents

Installed programs: horizon-eda, horizon-imp.

Installed directories: /usr/share/licenses/horizon-eda.

Short descriptions

horizon-eda EDA layout and schematic application
horizon-imp horizon EDA interactive manipulator

Notes

The podofo port is a 1.x release, and Horizon’s PDF export is written against the older podofo interface; podofo-1.patch is upstream’s commit that compiles it against both.

app-id.patch sets the program name, which GTK gives a window as its Wayland app id, to org.horizon_eda.HorizonEDA in the project manager and the editor alike: the entry’s file name, its StartupWMClass and the metainfo’s launchable. Upstream sets horizon-eda in the editor and leaves the manager on its executable’s name, and KWin finds a Wayland window’s icon only in the entry whose file name is its app id. The patch is to be offered upstream.

The build has no option file. Every dependency is found by pkg-config, and OpenCASCADE through its CMake package, which is why cmake is in depends of a meson build. 3D mouse support compiles in only when libspnav is found, and its absence passes without a word, so the last line of build.sh fails the build unless HAVE_SPNAV reached the compile commands.

The parts pool is not part of the package. The project manager downloads one from its pools window, so on a machine with no network it has no pool until one is copied in.