diff options
author | Sam James <sam@gentoo.org> | 2023-03-22 02:52:30 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-03-22 02:52:30 +0000 |
commit | fc6c5de1364a6d64688926e4e61a08771504b0ce (patch) | |
tree | 94f336bc06e0338d54d7e5e00f068ace724852b8 /sys-fs/mtools/mtools-4.0.43.ebuild | |
parent | net-proxy/3proxy: add 0.9.4 (diff) | |
download | gentoo-fc6c5de1364a6d64688926e4e61a08771504b0ce.tar.gz gentoo-fc6c5de1364a6d64688926e4e61a08771504b0ce.tar.bz2 gentoo-fc6c5de1364a6d64688926e4e61a08771504b0ce.zip |
sys-fs/mtools: add 4.0.43
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-fs/mtools/mtools-4.0.43.ebuild')
-rw-r--r-- | sys-fs/mtools/mtools-4.0.43.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sys-fs/mtools/mtools-4.0.43.ebuild b/sys-fs/mtools/mtools-4.0.43.ebuild new file mode 100644 index 000000000000..071c11e37af3 --- /dev/null +++ b/sys-fs/mtools/mtools-4.0.43.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="Utilities to access MS-DOS disks from Unix without mounting them" +HOMEPAGE="https://www.gnu.org/software/mtools/ https://savannah.gnu.org/projects/mtools" +SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos ~x64-solaris" +IUSE="gui" + +RDEPEND=" + virtual/libiconv + gui? ( + x11-libs/libICE + x11-libs/libXau + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXt + ) +" +DEPEND="${RDEPEND}" + +src_configure() { + if ! use elibc_glibc && ! use elibc_musl ; then + # bug #447688 + append-libs "-liconv" + fi + + local myeconfargs=( + --sysconfdir="${EPREFIX}"/etc/mtools + $(use_with gui x) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + local -a DOCS=( README* Release.notes ) + + default + + insinto /etc/mtools + doins mtools.conf + + # Default is fine + sed -i -e '/^SAMPLE FILE$/s:^:#:' "${ED}"/etc/mtools/mtools.conf || die +} |