summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-11 23:39:24 +0100
committerSam James <sam@gentoo.org>2022-04-12 00:22:31 +0100
commitab9d6c283ae4002956dfe591c1d0c2edf67cb54e (patch)
tree1ccc5602786b1cd9bf9c8af6f183f8194a665996 /sys-fs/mtools/mtools-4.0.39.ebuild
parentx11-terms/kitty: sync live (diff)
downloadgentoo-ab9d6c283ae4002956dfe591c1d0c2edf67cb54e.tar.gz
gentoo-ab9d6c283ae4002956dfe591c1d0c2edf67cb54e.tar.bz2
gentoo-ab9d6c283ae4002956dfe591c1d0c2edf67cb54e.zip
sys-fs/mtools: add 4.0.39
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-fs/mtools/mtools-4.0.39.ebuild')
-rw-r--r--sys-fs/mtools/mtools-4.0.39.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/sys-fs/mtools/mtools-4.0.39.ebuild b/sys-fs/mtools/mtools-4.0.39.ebuild
new file mode 100644
index 000000000000..78c11df773a0
--- /dev/null
+++ b/sys-fs/mtools/mtools-4.0.39.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools 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 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x64-solaris"
+IUSE="X"
+
+RDEPEND="!elibc_glibc? ( virtual/libiconv )
+ X? (
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXt
+ )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+
+ # Only needed for strtoi patch
+ eautoreconf
+}
+
+src_configure() {
+ if ! use elibc_glibc && ! use elibc_musl ; then
+ # bug #447688
+ append-libs "-liconv"
+ fi
+
+ local myeconfargs=(
+ --sysconfdir="${EPREFIX}"/etc/mtools
+ $(use_with X 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
+}