1 # Copyright © 2020-2021 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
8 inherit autotools xdg-utils
12 DESCRIPTION="Schematic capture and netlist utilities (fork of gEDA:gaf)"
13 HOMEPAGE="https://github.com/lepton-eda/lepton-eda"
14 SRC_URI="$HOMEPAGE/releases/download/${PV/_p/-}/$MY_P.tar.gz"
18 KEYWORDS="~amd64 ~x86"
21 RDEPEND=">=dev-scheme/guile-2.0
22 >=x11-libs/gtk+-2.24:2
24 nls? ( virtual/libintl )
25 stroke? ( dev-libs/libstroke )"
27 doc? ( app-doc/doxygen )
28 nls? ( >=sys-devel/gettext-0.18 )
29 dev-util/desktop-file-utils
30 x11-misc/shared-mime-info
36 PATCHES=("$FILESDIR/$PN-precompile.patch")
45 $(use_enable doc doxygen) \
47 $(use_with stroke libstroke) \
48 --disable-update-xdg-database \
55 GUILE_AUTO_COMPILE=0 LEPTON_INHIBIT_RC_FILES=1 \
56 GUILE_LOAD_PATH=${ED%/}/usr/share/lepton-eda/scheme \
57 LIBLEPTONGUI=${ED%/}/usr/$(get_libdir)/libleptongui \
58 LIBLEPTON=${ED%/}/usr/$(get_libdir)/liblepton \
59 emake bindir="${ED%/}/usr/bin" datadir="${ED%/}/usr/share" precompile
63 xdg_desktop_database_update
64 xdg_mimeinfo_database_update