]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
sci-electronics/lepton-eda: Bump to version 1.9.14_p20210407
authorNick Bowler <nbowler@draconx.ca>
Fri, 7 May 2021 00:59:11 +0000 (20:59 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 7 May 2021 01:40:39 +0000 (21:40 -0400)
And precompile scheme sources when installing to speed up first startup.

sci-electronics/lepton-eda/Manifest
sci-electronics/lepton-eda/files/lepton-eda-precompile.patch [new file with mode: 0644]
sci-electronics/lepton-eda/lepton-eda-1.9.14_p20210407.ebuild [new file with mode: 0644]

index 93ddaa292312e7b945d0287429888926b8a50718..7351e74b66689473bd2096f818d82eae5a9081ac 100644 (file)
@@ -1,2 +1,5 @@
+AUX lepton-eda-precompile.patch 378 BLAKE2B 5f82f8439e111c2f49e70bec826fe73a7b08e85d22b80f48ea92da0e27e097f27613c718ad6bca792f145ef2110aec734754a03ae44ca8920af7200e053260b6 SHA512 460ab24db58e12b21513a072d1271c6b31175a402d23f7899febe33d1bf74ac6f6d1d188eabeabf786b7b065c51281f68b98007bc729c61e5c5031ef6698d33f
 DIST lepton-eda-1.9.11.tar.gz 10117191 BLAKE2B 9324b0abe639d5d2d8ca0baeda42b0e87b5ff670e40c17ea5fc8a409e6bf215cfcb4b160c14392ecc42171f35f26407973cd67e1deb4ac5cf3798ebf19199410 SHA512 208e6954ab74a0df7dd56ae775a880410e943666f582dbd86704e86b5579915ea62454aa3a1c1d921fd52dea736fc2079116fdd1b479f62c3a2d752ef37ad457
+DIST lepton-eda-1.9.14.tar.gz 9958773 BLAKE2B 1835c3d9fe9b0028f0954c8ed0f7d851faf89bd48c2922288f101cb1ba0b4095b3e26fc43fdd969d29164d8de0a35efa6931b51d1ae552d1861cc56be544a617 SHA512 50cc9641d80486d77aff2ae1daf57e5560c4b66ff17ad95edaaeeff1166e3f5957aca65e65d7a0e01f82e4681a6fe5cf5874c62756ca37018cbd29db011ec1ec
 EBUILD lepton-eda-1.9.11_p20200604.ebuild 1149 BLAKE2B 5cbec10fa5661513e3f68bf618b38de5f14744f4d5af96ef9bfaf4f5fb173790961b2c8700bdebe934d9421517a2ec0f1b2c83c2f7c765155db5eb4b03871a8b SHA512 8fb7d870371e74c57a50a85521498444c69b44b96103871394954d7b8621ff6ef308bf1e2c1db9da975c752556f1c4789df4545988c45616104fbde4c357d5d4
+EBUILD lepton-eda-1.9.14_p20210407.ebuild 1583 BLAKE2B d54fbac15f76ef57f74d7945d657a54b13713aae76ff7db91f3958f22c68fbb33d562859d28787df4477f3d76a7c73bb78493f6a069d7369d20df82363f77f10 SHA512 2587fb491ad8524a9fadefea0ac2ff013e15cc0f286770b0d8bb11599725ddf5ce5e2a64816153db8f7463383e5e23ec4061aeeb1888abc2712a622ee5372119
diff --git a/sci-electronics/lepton-eda/files/lepton-eda-precompile.patch b/sci-electronics/lepton-eda/files/lepton-eda-precompile.patch
new file mode 100644 (file)
index 0000000..180e457
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/Makefile.am b/Makefile.am
+index 689a13ea9..f9277d36d 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -100,7 +100,7 @@ precompile:
+       LEPTON_SCM_PRECOMPILE_OUT_DIR=$(datadir)/lepton-eda/ccache \
+       LEPTON_SCM_PRECOMPILE_RECURSIVE=1 \
+       LEPTON_SCM_PRECOMPILE_FNAME_EXT=.scm \
+-      $(bindir)/lepton-schematic
++      $(GUILE) -s $(bindir)/lepton-schematic
+ install-data-local:
diff --git a/sci-electronics/lepton-eda/lepton-eda-1.9.14_p20210407.ebuild b/sci-electronics/lepton-eda/lepton-eda-1.9.14_p20210407.ebuild
new file mode 100644 (file)
index 0000000..46cbfe0
--- /dev/null
@@ -0,0 +1,70 @@
+# Copyright © 2020-2021 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or any later version.
+# This is free software: you are free to change and redistribute it.
+# There is NO WARRANTY, to the extent permitted by law.
+
+EAPI=7
+
+inherit autotools xdg-utils
+
+MY_P=$PN-${PV%_p*}
+
+DESCRIPTION="Schematic capture and netlist utilities (fork of gEDA:gaf)"
+HOMEPAGE="https://github.com/lepton-eda/lepton-eda"
+SRC_URI="$HOMEPAGE/releases/download/${PV/_p/-}/$MY_P.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc nls stroke"
+
+RDEPEND=">=dev-scheme/guile-2.0
+       >=x11-libs/gtk+-2.24:2
+       x11-libs/gtkextra
+       nls? ( virtual/libintl )
+       stroke? ( dev-libs/libstroke )"
+DEPEND="$RDEPEND
+       doc? ( app-doc/doxygen )
+       nls? ( >=sys-devel/gettext-0.18 )
+       dev-util/desktop-file-utils
+       x11-misc/shared-mime-info
+       sys-apps/groff
+       virtual/pkgconfig"
+
+S=$WORKDIR/$MY_P
+
+PATCHES=("$FILESDIR/$PN-precompile.patch")
+
+src_prepare () {
+       default
+       eautoreconf
+}
+
+src_configure () {
+       econf \
+               $(use_enable doc doxygen) \
+               $(use_enable nls) \
+               $(use_with stroke libstroke) \
+               --disable-update-xdg-database \
+               --disable-rpath
+}
+
+src_install () {
+       default
+
+       GUILE_AUTO_COMPILE=0 LEPTON_INHIBIT_RC_FILES=1 \
+               GUILE_LOAD_PATH=${ED%/}/usr/share/lepton-eda/scheme \
+               LIBLEPTONGUI=${ED%/}/usr/$(get_libdir)/libleptongui \
+               LIBLEPTON=${ED%/}/usr/$(get_libdir)/liblepton \
+               emake bindir="${ED%/}/usr/bin" datadir="${ED%/}/usr/share" precompile
+}
+
+pkg_postinst () {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+       xdg_icon_cache_update
+}
+
+pkg_postrm () {
+       pkg_postinst
+}