sci-electronics/xnec2c: add 4.4.12

Adds support for >=dev-libs/glib-2.74

Bug: https://bugs.gentoo.org/872236
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Thomas Beierlein 2022-09-26 07:57:44 +02:00
parent b641558fa4
commit 3e2bc00da2
No known key found for this signature in database
GPG Key ID: AF4C8CF6B6C40570
2 changed files with 54 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST xnec2c-v4.4.11.tar.gz 1061014 BLAKE2B f7af594a1f97b0ad9d93b57235afaf04a8500768396c49608c96849b761828206f2c48afbdb067c9a4138732d4d4e6ad7f6f90a5a547487928efdfe77d3bad88 SHA512 9b5bf71ae45b4d70030eb78793d54d2aa8691afcfcb398b8b23be6508d77a510e5e8a26b6c978b9ea6031fbf5903fd765263d4b19691011187daf58feac612e2
DIST xnec2c-v4.4.12.tar.gz 1496988 BLAKE2B dbcea1e24382b9f2bb6e881007b44dcf99b9caa7f970ecbb1363e1a0e232d9d1bda6fe68f90622d81cdc69b3b9ff6019dd4b123d6a79f8c6bd088dbd804354b8 SHA512 0d1711260d7f69633d9e6bb559f3b56c2a25414f75ed913c643c0aaad5e4062834ce6c7c7816741f65436173b331e6f8f957c4a624a77214414865bac94ab7e8

View File

@ -0,0 +1,53 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools xdg-utils
MY_P=${PN}-v${PV}
DESCRIPTION="A GTK+ graphical interactive version of nec2c"
HOMEPAGE="https://www.xnec2c.org"
SRC_URI="https://www.xnec2c.org/releases/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
RDEPEND="dev-libs/glib:2
x11-libs/gtk+:3"
DEPEND="${RDEPEND}
sys-devel/gettext"
S="${WORKDIR}/${MY_P}"
src_prepare() {
eapply_user
eautoreconf
}
src_install() {
default
docompress -x /usr/share/man
rm -R "${D}/usr/share/doc/${P}" || die
dodoc AUTHORS README.md doc/*.txt
use doc && dodoc -r doc/*.html doc/images
if ! use examples ; then
rm -R "${D}/usr/share/${PN}/examples" || die
fi
}
pkg_postinst() {
xdg_mimeinfo_database_update
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_mimeinfo_database_update
xdg_icon_cache_update
xdg_desktop_database_update
}